Documentation
¶
Overview ¶
Package gpkg implements the service-independent binary parts of the OGC GeoPackage standard. It deliberately has no SQLite dependency: callers can inspect a GeoPackageBinary geometry received from a database, file, message, or SQL BLOB in exactly the same way.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Geometry ¶
type Geometry struct {
Version byte
SRID int32
Empty bool
Extended bool
Envelope []float64
BBox []float64
WKB []byte
HeaderLen int
}
Geometry is a parsed GeoPackageBinary header plus its embedded OGC WKB. Envelope preserves the standard's on-wire order (minx,maxx,miny,maxy[,minz,maxz][,minm,maxm]); BBox exposes the conventional [minx,miny,maxx,maxy] order used by GeoJSON, TileJSON, and tinySQL.
func ParseGeometry ¶
ParseGeometry validates and splits an OGC GeoPackageBinary geometry.
Click to show internal directories.
Click to hide internal directories.