geoencoding

package
v0.49.0 Latest Latest
Warning

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

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

Documentation

Overview

Package geoencoding contains service- and storage-independent geospatial wire-format codecs shared by SQL functions and file importers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WKBResult

type WKBResult struct {
	Geometry map[string]any
	SRIDs    []uint32
}

WKBResult contains a decoded GeoJSON-shaped geometry and every EWKB SRID encountered in its top-level or nested geometry headers. Plain OGC/ISO WKB has no embedded SRID and leaves SRIDs empty.

func DecodeWKB

func DecodeWKB(data []byte) (WKBResult, error)

DecodeWKB decodes OGC WKB, EWKB flags, and ISO SQL/MM Z/M/ZM type offsets. Z is preserved and M is consumed but dropped because GeoJSON has no measure ordinate.

Jump to

Keyboard shortcuts

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