DK for Java | tatukgis.jdk.TGIS_Shape | Classes | Constructors | Fields | Methods | Properties
Abstract base class for vector shapes stored in a TGIS_LayerVector.
// Java public class TGIS_Shape extends TGIS_ShapeAbstract { };
// Oxygene type TGIS_Shape = public class( TGIS_ShapeAbstract ) end;
→ TGIS_Object → TGIS_ShapeAbstract
| Name | Visibility | Description | |
|---|---|---|---|
| TGIS_Shape() | public | Create a shape instance. | |
| TGIS_Shape(TGIS_DimensionType) | public | Create a shape instance with the specified coordinate dimension type. | |
| TGIS_Shape(TGIS_Shape, TGIS_Bytes, bool, long, TGIS_LayerVector) | public | Create a 2D shape instance from an existing shape or from raw internal geometry data. | |
| TGIS_Shape(TGIS_Shape, TGIS_Bytes, bool, long, TGIS_LayerVector, TGIS_DimensionType) | public | Create a shape instance from an existing shape or from raw internal geometry data with an explicit dimension type. | |
| Name | Visibility | Description | |
|---|---|---|---|
| FCursor | protected | Identifier of the cursor that currently owns this shape instance. | |
| FDimension | protected | Dimensions supported by a shape. | |
| FGeometryChanged | protected | True if the shape geometry has changed. | |
| FIsDeleted | protected | True if the shape is marked for deletion and remains present only until the next save. | |
| FIsEditable | protected | True if the shape is editable. | |
| FIsEmpty | protected | True if the shape geometry is empty. | |
| FIsFixed | protected | True if the shape winding order has already been checked and corrected. | |
| FIsHidden | protected | True if the shape is hidden and should be treated as turned off. | |
| FIsMapped | protected | True if geometry not allocated but mapped to a file. | |
| FIsModified | protected | True if the shape geometry or attribute fields have been modified. | |
| FIsNewShape | protected | True if the shape is an independent in-memory object rather than a mirror of a disk-based shape. | |
| FIsReverted | protected | True if the shape must be reverted to the version stored in the underlying file. | |
| FLayer | protected | Layer that owns this shape. | |
| FManageRTree | protected | True if the shape must update the layer R-Tree spatial index. | |
| FParams | protected | Rendering and styling parameters for the shape. | |
| FParent | protected | Parent shape handle. | |
| FParts | protected | Internal storage for part offsets, closely matching the Shapefile representation for efficient mapped-file access. | |
| FPartTypes | protected | Internal storage for part types, closely matching the Shapefile representation for efficient mapped-file access. | |
| FPoints | protected | Internal storage for XY point coordinates, closely matching the Shapefile representation for efficient mapped-file access. | |
| FPointsM | protected | Internal storage for M values, closely matching the Shapefile representation for efficient mapped-file access. | |
| FPointsMMax | protected | Maximum M value. | |
| FPointsMMin | protected | Minimum M value. | |
| FPointsZ | protected | Internal storage for Z coordinates, closely matching the Shapefile representation for efficient mapped-file access. | |
| FPointsZMax | protected | Maximum Z value. | |
| FPointsZMin | protected | Minimum Z value. | |
| FShape3D | protected | True if the shape stores 3D geometry with Z coordinates. | |
| FShapeType | protected | Shape geometry type. | |
| FTag | protected | User-defined integer tag value associated with the shape. | |
| FTagInternal | protected | Internal integer tag value reserved for framework use. | |
| FTagPointer | protected | User-defined pointer or object tag associated with the shape. | |
| FUid | protected | Unique identifier across a single layer. | |
| indexDist2PartCS | protected | Internal index used to limit Distance2PartCS to the neighborhood of a specific point. | |
| mappedFields | protected | List of mapped attribute fields for the shape. | |
| oldIndexExtent | protected | Previous extent of the shape before editing, used when updating the spatial index. | |
| Name | Visibility | Description | |
|---|---|---|---|
| AddPart | public | Starts a new part in a multipart shape geometry. | |
| AddPoint | public | Adds a 2D vertex to the current part of the shape. | |
| AddPoint3D | public | Adds a 3D vertex with elevation to the current part of the shape. | |
| AddPointBearing(double, double) | public | Adds a point using a map-space bearing and distance measured from the last vertex. | |
| AddPointBearing(double, double, bool) | public | Adds a point using a bearing and distance measured from the last vertex, with optional compass interpretation. | |
| AddPointBearingCS | public | Adds a point using geodetic bearing and distance measured in meters from the last vertex. | |
| AddToIndex | public | Add the shape extent to the spatial index to enable fast spatial queries. | |
| AddToLayer | public | Clone the shape into its layer and assign a new unique identifier. | |
| AppendGeometry | public | Appends geometry from another shape to this shape. | |
| Area | public | Calculates the planar area enclosed by the shape. | |
| AreaCS | public | Calculates geodetic area using the WGS84 (World Geodetic System 1984, EPSG:4326) model. | |
| AsArc | public | Convert the shape to a TGIS_ShapeArc representing line geometry. | |
| AsMultiPoint | public | Convert the shape to a TGIS_ShapeMultiPoint containing all shape vertices. | |
| AsPoint | public | Convert the shape to a TGIS_ShapePoint. | |
| AsPolygon | public | Convert the shape to a TGIS_ShapePolygon. | |
| Assign | public | Copy geometry and attribute data from another shape. | |
| Centroid | public | Calculates the geometric centroid of the shape. | |
| ChangeWinding | public | Reverses the vertex order of a specified shape part or polygon ring. | |
| checkIsEmpty | protected | Determines whether the shape geometry is empty and contains no usable vertices. | |
| Combine(TGIS_Shape, TGIS_TopologyCombineType) | public | Performs a boolean geometry operation between this shape and another shape. | |
| Combine(TGIS_Shape, TGIS_TopologyCombineType, bool) | public | Performs a boolean geometry operation between this shape and another shape, optionally returning a new object or modifying this shape. | |
| Contains | public | Tests whether this shape contains another shape using the DE-9IM (Dimensionally Extended 9-Intersection Model) topology relation. | |
| CopyFields | public | Copies field definitions from another shape without copying field values. | |
| CopyGeometry | public | Replaces this shape's geometry with geometry copied from another shape. | |
| CreateCopy | public | Create an independent deep copy of the shape geometry, attributes, and style state. | |
| CreateCopyCS | public | Create an independent copy of the shape reprojected to a target CRS (Coordinate Reference System). | |
| CreateFromEWKB | public | Parses Extended Well-Known Binary (EWKB) geometry with optional PostGIS Spatial Reference Identifier (SRID) metadata. | |
| CreateFromEWKT | public | Parses Extended Well-Known Text (EWKT) geometry with optional PostGIS Spatial Reference Identifier (SRID) metadata. | |
| CreateFromGDO | public | Parses geometry from GeoMedia Database Object (GDO) binary format. | |
| CreateFromGML | public | Parses geometry from Geography Markup Language (GML) XML text. | |
| CreateFromJSON | public | Parses geometry from GeoJSON (Geographic JSON) text. | |
| CreateFromWKB | public | Parses geometry from Well-Known Binary (WKB), the OGC (Open Geospatial Consortium) standard binary representation. | |
| CreateFromWKT | public | Parses geometry from Well-Known Text (WKT), the OGC (Open Geospatial Consortium) standard text representation. | |
| Cross | public | Tests whether two shapes cross using the DE-9IM (Dimensionally Extended 9-Intersection Model) topology relation. | |
| Delete | public | Mark the shape as deleted without immediately removing it from the layer. | |
| Difference(TGIS_Shape) | public | Computes the difference between this shape and another shape. | |
| Difference(TGIS_Shape, bool) | public | Computes the difference between this shape and another shape, optionally returning a new object or modifying this shape. | |
| Disjoint | public | Tests whether this shape is spatially disjoint from another shape. | |
| Distance | public | Calculates planar (2D map-space) distance from a point to the shape. | |
| Distance2Part | public | Calculates distance from a point to the nearest element of a specific shape part and optionally returns the projection point. | |
| Distance2PartCS | public | Calculates geodetic distance from a point to a specific shape part using the WGS84 (World Geodetic System 1984, EPSG:4326) model. | |
| Distance2Shape(TGIS_Shape) | public | Calculates the minimum planar distance between two shapes. | |
| Distance2Shape(TGIS_Shape, TGIS_Line) | public | Calculates the minimum planar distance between two shapes and returns the shortest connecting line segment. | |
| Distance2ShapeCS | public | Calculates geodetic distance between two shapes using the WGS84 (World Geodetic System 1984, EPSG:4326) model. | |
| DistanceCS | public | Calculates geodetic distance from a point to the shape using the WGS84 (World Geodetic System 1984, EPSG:4326) ellipsoid model. | |
| Draw | public | Renders the shape using the default single-pass rendering mode. | |
| Draw(TGIS_RendererMultipassMode) | public | Render the shape using the specified multipass rendering mode. | |
| DrawChart | public | Renders the chart associated with the shape using the current layer chart settings. | |
| DrawLabel | public | Renders the shape label using the current layer labeling settings. | |
| DrawLabel(TPoint[]) | public | Renders the shape label and returns the label outline points used for bounds or hit-testing operations. | |
| DrawSpecial | public | Renders the shape using the default special rendering pass. | |
| DrawSpecial(TGIS_RendererMultipassMode) | public | Renders the shape using a special multipass mode intended primarily for line outline cleanup. | |
| DrawTrackingPoints | public | Renders shape tracking points used for interactive geometry editing. | |
| Equality | public | Tests whether this shape is geometrically equal to another shape. | |
| ExportToEWKB | public | Exports the current geometry to Extended Well-Known Binary (EWKB) with Spatial Reference Identifier (SRID) metadata. | |
| ExportToEWKT | public | Exports the current geometry to Extended Well-Known Text (EWKT) with Spatial Reference Identifier (SRID) metadata. | |
| ExportToGDO | public | Exports the current geometry to GeoMedia Database Object (GDO) binary format. | |
| ExportToGML | public | Exports the current geometry to Geography Markup Language (GML) XML text. | |
| ExportToJSON | public | Exports shape geometry to GeoJSON (Geographic JSON, RFC 7946) text for web and service interoperability. | |
| ExportToVAR | public | Exports shape geometry to the internal Variant-based binary format used by DK11 shape serialization. | |
| ExportToWKB | public | Exports the current geometry to Well-Known Binary (WKB). | |
| ExportToWKT | public | Exports the current geometry to Well-Known Text (WKT). | |
| Flash | public | Flashes the shape in the viewer using default timing parameters. | |
| Flash(int, int) | public | Flashes the shape in the viewer using custom repetition and delay values. | |
| GetAngle | public | Returns the direction angle defined by the shape endpoints. | |
| GetCrossings | public | Finds all points where shape segments intersect another shape. | |
| GetCrossings3D | public | Finds all 3D points where shape segments intersect another shape. | |
| GetField | public | Returns the current shape field value, substituting the field default when the stored value is NULL. | |
| GetFieldEx(java.lang.String) | public | Returns the raw field value from the current shape, preserving NULL values. | |
| GetFieldEx(java.lang.String, bool) | public | Returns the raw field value from the current shape with optional field-rule evaluation. | |
| GetFieldEx(java.lang.String, int) | public | Returns the raw field value for the shape at the specified cursor position, preserving NULL values. | |
| GetFieldEx(java.lang.String, int, bool) | public | Returns the raw field value for the shape at the specified cursor position with optional field-rule evaluation. | |
| GetFirstPoint | public | Returns the first 2D vertex of the shape. | |
| GetFirstPoint3D | public | Returns the first 3D vertex of the shape. | |
| GetIntersection(TGIS_Extent) | public | Returns the portion of the shape that intersects the specified extent as a precise normalized result. | |
| GetIntersection(TGIS_Extent, bool) | public | Returns the portion of the shape that intersects the specified extent, with optional draft clipping. | |
| GetLabel | public | Returns the formatted label text for the current shape, including markup generated by the labeling expression. | |
| GetLabelPlain | public | Returns the current shape label as plain text with formatting markup removed. | |
| GetLastPoint | public | Returns the last 2D vertex of the shape. | |
| GetLastPoint3D | public | Retrieve the ending vertex of 3D geometry including elevation. | |
| GetNumParts | public | Return the number of geometry parts in the shape. | |
| GetNumPoints | public | Return the total number of vertices across all parts of the shape. | |
| getPartOffset | protected | Calculates the starting point offset for the specified part within the shape geometry. | |
| GetPartSize | public | Return the vertex count within a single geometry part. | |
| GetPartType | public | Return the topology type of a geometry part, such as an exterior ring or interior hole. | |
| GetPoint | public | Returns the 2D vertex at the specified part and position. | |
| GetPoint3D | public | Returns the 3D vertex at the specified part and position. | |
| GetPoint3DEx | public | Returns the full point coordinates at the specified part and position through output parameters. | |
| GetPointEx | public | Returns the 2D vertex at the specified part and position through output parameters. | |
| GetPointEx2 | public | Returns point coordinates from the specified shape part and vertex position through output parameters. | |
| GetSnapPoint | public | Find the nearest snap point on the shape geometry to a target location. | |
| GetSnapPoint3D | public | Find the nearest snap point on 3D shape geometry, including elevation. | |
| ImportFromEWKB | public | Replaces the current geometry by parsing Extended Well-Known Binary (EWKB) in place. | |
| ImportFromEWKT | public | Replaces the current geometry by parsing Extended Well-Known Text (EWKT) in place. | |
| ImportFromGDO | public | Replaces the current geometry by parsing GeoMedia Database Object (GDO) binary content in place. | |
| ImportFromGML | public | Replaces the current geometry by parsing Geography Markup Language (GML) XML text in place. | |
| ImportFromJSON | public | Replaces the current geometry by parsing GeoJSON (Geographic JSON) text in place. | |
| ImportFromVAR | public | Replaces shape geometry with the internal Variant-based format. | |
| ImportFromWKB | public | Replaces the current geometry by parsing Well-Known Binary (WKB) in place. | |
| ImportFromWKT | public | Replaces the current geometry by parsing Well-Known Text (WKT) in place. | |
| Intersect | public | Tests whether two shapes intersect using the DE9IM (Dimensionally Extended Nine-Intersection Model) topology relation. | |
| Intersection(TGIS_Shape) | public | Computes the intersection of this shape and another shape. | |
| Intersection(TGIS_Shape, bool) | public | Computes the intersection of this shape and another shape, optionally returning a new object or modifying this shape. | |
| Invalidate | public | Invalidates cached rendering state for the shape and forces a redraw on the next paint operation. | |
| IsCommonPoint | public | Tests whether this shape and another shape share any common point. | |
| IsFieldModified | public | Returns whether the specified field has been modified in the current shape editing context. | |
| IsFieldModifiedEx | public | Returns whether the field at the specified zero-based index has been modified in the current shape editing context. | |
| IsInsideCircle | public | Tests whether the shape is completely or partially inside circular bounds defined by a center point and radius. | |
| IsInsideExtent | public | Tests whether the shape is completely or partially inside an axis-aligned rectangular extent. | |
| IsInsidePolygon | public | Tests whether the shape is completely or partially inside a polygon shape, depending on the requested containment mode. | |
| Join(TGIS_Shape) | public | Joins this shape with another shape and returns the combined shape. | |
| Join(TGIS_Shape, bool) | public | Joins this shape with another shape, either in place or by creating a new result shape. | |
| Length | public | Calculates planar length of the shape. | |
| LengthCS | public | Calculates geodetic length using the WGS84 (World Geodetic System 1984, EPSG:4326) model. | |
| Lock | public | Locks the shape for batch geometry updates to defer expensive recalculations. | |
| MakeEditable | public | Make the shape editable by materializing mutable shape data when necessary. | |
| Overlap | public | Tests whether two shapes overlap using the DE-9IM (Dimensionally Extended 9-Intersection Model) topology relation. | |
| ParamsAsDrawn | public | Retrieves the effective vector rendering parameters used to draw the shape in the current layer and viewer context. | |
| PartLength | public | Calculates planar length of a single shape part. | |
| PartLengthCS | public | Calculates geodetic length of a single shape part using the WGS84 (World Geodetic System 1984, EPSG:4326) model. | |
| PointOnShape | public | Calculates a point guaranteed to lie on the shape geometry. | |
| PrepareContourInternal | public | Prepares a rasterized contour bitmap for internal polygon topology operations by converting vector geometry to a pixel grid. | |
| PrepareExportShape | public | Prepare a shape for export by optionally reprojecting it, clipping it to an extent, and copying field values. | |
| Recreate(TGIS_Shape, TGIS_Bytes, bool, long, TGIS_LayerVector) | public | Reinitialize an existing shape instance from another shape or from raw internal geometry data. | |
| Recreate(TGIS_Shape, TGIS_Bytes, bool, long, TGIS_LayerVector, TGIS_DimensionType) | public | Reinitialize an existing shape instance from another shape or from raw internal geometry data with an explicit dimension type. | |
| Relate | public | Tests the spatial relationship to another shape using a DE9IM (Dimensionally Extended Nine-Intersection Model) pattern. | |
| Reset | public | Clear all geometry from the shape and reset it to an empty state. | |
| ResetModified | public | Clear the IsModified flag and mark the shape as unmodified. | |
| Reverse | public | Reverses the order of parts in a multipart shape and returns the resulting shape. | |
| Reverse(bool) | public | Reverses the order of parts in a multipart shape, either in place or by creating a new result shape. | |
| RevertParams | public | Discard local rendering parameters and revert the shape to layer default styling. | |
| SetField | public | Sets the value of a field in the current shape editing context. | |
| SetFieldsDefaulRuleValue | public | Applies default values defined by field rules to the current shape. | |
| SetParamsInternal | public | Sets internal vector-parameter section for this shape. | |
| SetPartType | public | Set the topology type of a geometry part, such as an exterior ring or interior hole. | |
| SetPosition | public | Moves the shape to a new position, optionally snapping to geometry in a reference vector layer. | |
| Simplify(double) | public | Simplifies the shape using the Douglas-Peucker algorithm. | |
| Simplify(double, bool) | public | Simplifies the shape using the Douglas-Peucker algorithm, either in place or by creating a new result shape. | |
| Smooth(int) | public | Smooths the shape using Catmull-Rom spline interpolation. | |
| Smooth(int, bool) | public | Smooths the shape using Catmull-Rom spline interpolation, either in place or by creating a new result shape. | |
| Split | public | Splits a multipart shape into a list of separate single-part shapes. | |
| StrokeArc(TGIS_Point3D, double, double, double, double, double) | public | Adds vertices approximating an elliptical arc between start and stop angles to the current shape. | |
| StrokeArc(TGIS_Point3D, double, double, double, double, double, int) | public | Adds vertices approximating an elliptical arc with explicit segment count control. | |
| SymmetricalDifference(TGIS_Shape) | public | Computes the symmetrical difference between this shape and another shape. | |
| SymmetricalDifference(TGIS_Shape, bool) | public | Computes the symmetrical difference between this shape and another shape, optionally returning a new object or modifying this shape. | |
| ToString | public | ||
| Touch | public | Tests whether two shapes touch at their boundaries using the DE-9IM (Dimensionally Extended 9-Intersection Model) topology relation. | |
| Transform(TGIS_Point3D, double, double, double, double, double, double, double, double, double, double, double, double) | public | Transforms shape geometry using a 3x3 matrix and translation vector, returning a new transformed shape. | |
| Transform(TGIS_Point3D, double, double, double, double, double, double, double, double, double, double, double, double, bool) | public | Transforms shape geometry using a 3x3 matrix and translation vector, either in place or as a new shape. | |
| Union(TGIS_Shape) | public | Computes the union of this shape and another shape. | |
| Union(TGIS_Shape, bool) | public | Computes the union of this shape and another shape, optionally returning a new object or modifying this shape. | |
| Unlock | public | Unlocks the shape and applies deferred geometry updates. | |
| UpdateIndex | public | Update the shape entry in the spatial index after geometry changes. | |
| UpdatePoint | public | Updates the 2D coordinates of a vertex at the specified part and position within the shape. | |
| UpdatePoint3D | public | Updates the 3D coordinates of a vertex at the specified part and position within the shape. | |
| Within | public | Tests whether this shape is within another shape using the DE-9IM (Dimensionally Extended 9-Intersection Model) topology relation. | |
| Name | Visibility | Description | |
|---|---|---|---|
| Dimension | public | Shape dimensionality: 2D (X/Y), 3D (X/Y/Z), or 4D (X/Y/Z/M). | |
| Extent | public | Axis-aligned 2D bounding extent of the shape geometry. | |
| Extent3D | public | Axis-aligned 3D bounding extent of the shape geometry. | |
| FieldChanged | public | Indicates whether the shape attribute data has changed. | |
| GeometryChanged | public | Indicates whether the shape geometry has changed. | |
| GeometrySize | public | Total size in bytes of entire shape geometry (parts + points + Z + M). | |
| IsDeleted | public | Shape is marked for deletion. | |
| IsEditable | public | Indicates whether the shape geometry can be edited. | |
| IsEmpty | public | Geometry contains no coordinates. | |
| IsFixed | public | Indicates whether polygon ring winding has been checked and corrected. | |
| IsHidden | public | Shape is hidden from rendering. | |
| IsMapped | public | Geometry is memory-mapped to a file instead of being fully loaded into memory. | |
| IsModified | public | Shape geometry or attributes have been modified since load or creation. | |
| IsNewShape | public | Shape is newly created in memory and was not loaded from stored layer data. | |
| IsReverted | public | Indicates that the shape geometry should be reverted to the saved file version. | |
| IsSelected | public | Shape is selected in the layer. | |
| Layer | public | Gets or sets the parent vector layer that owns the shape. | |
| LocalParams | public | Indicates whether the shape uses private rendering parameters instead of shared layer parameters. | |
| LockLevel | public | Lock mode/state for concurrent access control. | |
| ManageRTree | public | Indicates whether the shape participates in framework-managed R-Tree spatial indexing. | |
| Params | public | Shape-specific rendering parameters such as colors, fills, and symbols. | |
| ParentShape | public | Parent shape for hierarchical or composite geometry structures. | |
| Parts | public | Raw internal storage of shape part offsets in SHP-compatible form. | |
| PartsSize | public | Size in bytes of the raw part-offset buffer. | |
| PartTypes | public | Raw internal storage of shape part types. | |
| PartTypesSize | public | Size in bytes of the raw part-type buffer. | |
| Points | public | Raw internal storage of XY vertex coordinates in SHP-compatible form. | |
| PointsM | public | Raw internal storage of M (measure) coordinates in SHP-compatible form. | |
| PointsMMax | public | Maximum M (measure) value across all vertices in the shape. | |
| PointsMMin | public | Minimum M (measure) value across all vertices in the shape. | |
| PointsMSize | public | Size in bytes of the raw M coordinate buffer. | |
| PointsSize | public | Size in bytes of the raw XY coordinate buffer. | |
| PointsZ | public | Raw internal storage of Z coordinates in SHP-compatible form. | |
| PointsZMax | public | Maximum Z value across all vertices in the shape. | |
| PointsZMin | public | Minimum Z value across all vertices in the shape. | |
| PointsZSize | public | Size in bytes of the raw Z coordinate buffer. | |
| ProjectedExtent | public | Bounding extent of the shape after projection to the viewer coordinate system. | |
| ShapeType | public | Geometry type of the shape. | |
| SmartSize | public | Visual size of shape for display purposes. | |
| Tag | public | Application-defined integer tag for storing custom shape metadata or state. | |
| TagInternal | public | Internal framework tag reserved for TatukGIS processing and not for application use. | |
| TagPointer | public | Application-defined pointer or object reference for storing custom shape context. | |
| Uid | public | Unique identifier of the shape within its layer. | |
| Viewer | public | Gets the viewer context associated with the shape. | |