gpkg

package
v0.57.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

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

func ParseGeometry(data []byte) (Geometry, error)

ParseGeometry validates and splits an OGC GeoPackageBinary geometry.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL