ShapefileRecord

One parsed shapefile record. Records of all shape types are represented by this single class; the shapeType field discriminates. Geometry is exposed as a list of "parts", each part an interleaved [x0, y0, x1, y1, …] DoubleArray matching the on-disk coordinate order (longitude, latitude for geographic shapefiles).

Properties

Link copied to clipboard

Attributes from the sidecar DBF, keyed by column name. Empty when no DBF is provided or when the row was deleted in the source.

Link copied to clipboard

[minY, maxY, minX, maxX], or null for Null records.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

[mMin, mMax] when the file carries measures and they were present.

Link copied to clipboard

One M value per point when present.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Per-part geometry. Empty for ShapefileShapeType.NULL records.

Link copied to clipboard

Per-part type codes for MultiPatch records. null for every other shape type.

Link copied to clipboard

One-based ordinal position in the .shp file.

Link copied to clipboard

Shape type as declared by the file header.

Link copied to clipboard

[zMin, zMax] when ShapefileShapeType.isZ; otherwise null.

Link copied to clipboard

One Z value per point when ShapefileShapeType.isZ; otherwise null.

Functions

Link copied to clipboard
fun pointBuffer(partNumber: Int): DoubleArray?

Returns the points of the requested part as an interleaved [x0, y0, x1, y1, …] DoubleArray, or null if partNumber is out of range.