Versions in this module Expand all Collapse all v0 v0.0.4 Oct 31, 2023 v0.0.3 Oct 31, 2023 v0.0.2 Oct 31, 2023 v0.0.1 Oct 31, 2023 Changes in this version + const ApplicationID + const DataTypeAttributes + const DataTypeFeatures + const DataTypeTitles + const EnvelopeTypeInvalid + const EnvelopeTypeNone + const EnvelopeTypeXY + const EnvelopeTypeXYM + const EnvelopeTypeXYZ + const EnvelopeTypeXYZM + const ErrEnvelopeEnvelopeTypeMismatch + const ErrInsufficentBytes + const ErrInvalidEnvelopeType + const ErrInvalidMagicNumber + const ErrNilHandler + const ErrNilStandardBinary + const Geometry + const GeometryCollection + const Linestring + const Mandatory + const Maybe + const MultiLinestring + const MultiPoint + const MultiPolygon + const No + const OREPSG + const ORNone + const Optional + const Point + const Polygon + const Prohibited + const SPATIALITE + const TableContentsSQL + const TableExtensionsSQL + const TableGeometryColumnsSQL + const TableSpatialRefSysSQL + const UserVersion + const Yes + var KnownSRS = map[int32]SpatialReferenceSystem + var Magic = [2]byte + func EncodeHeaderFlags(byteOrder binary.ByteOrder, envelope EnvelopeType, extendGeom bool, ...) headerFlags + type BinaryHeader struct + func DecodeBinaryHeader(data []byte) (*BinaryHeader, error) + func NewBinaryHeader(byteOrder binary.ByteOrder, srsid int32, envelope []float64, et EnvelopeType, ...) (*BinaryHeader, error) + func (h *BinaryHeader) Encode() ([]byte, error) + func (h *BinaryHeader) EncodeTo(data *bytes.Buffer) error + func (h *BinaryHeader) Endian() binary.ByteOrder + func (h *BinaryHeader) Envelope() []float64 + func (h *BinaryHeader) EnvelopeType() EnvelopeType + func (h *BinaryHeader) IsGeometryEmpty() bool + func (h *BinaryHeader) IsStandardGeometry() bool + func (h *BinaryHeader) Magic() [2]byte + func (h *BinaryHeader) SRSID() int32 + func (h *BinaryHeader) Size() int + func (h *BinaryHeader) Version() uint8 + type EnvelopeType uint8 + func (et EnvelopeType) NumberOfElements() int + func (et EnvelopeType) String() string + type GeometryType uint8 + func TypeForGeometry(g geom.Geometry) GeometryType + func (gt GeometryType) Empty() (geom.Geometry, error) + func (gt GeometryType) String() string + type Handle struct + func New(filename string) (*Handle, error) + func Open(filename string) (*Handle, error) + func (h *Handle) AddGeometryTable(table TableDescription) error + func (h *Handle) CalculateGeometryExtent(tablename string) (*geom.Extent, error) + func (h *Handle) UpdateGeometryExtent(tablename string, extent *geom.Extent) error + func (h *Handle) UpdateSRS(srss ...SpatialReferenceSystem) error + type MaybeBool int8 + func (mbe MaybeBool) False() bool + func (mbe MaybeBool) True() bool + type SpatialReferenceSystem struct + Definition string + Description string + ID int + Name string + Organization string + OrganizationCoordsysID int + type StandardBinary struct + Geometry geom.Geometry + Header *BinaryHeader + SRSID int32 + func DecodeGeometry(bytes []byte) (*StandardBinary, error) + func NewBinary(srs int32, geo geom.Geometry) (*StandardBinary, error) + func (sb *StandardBinary) Extent() *geom.Extent + func (sb *StandardBinary) Scan(value interface{}) error + func (sb *StandardBinary) Value() (driver.Value, error) + func (sb StandardBinary) Encode() ([]byte, error) + type TableDescription struct + Description string + GeometryField string + GeometryType GeometryType + M MaybeBool + Name string + SRS int32 + ShortName string + Z MaybeBool