Documentation ¶
Index ¶
- type GenericGeometry
- type GeometryCollection
- type GeometryCollectionData
- type GeometryType
- type LineString
- type LineStringData
- type MultiLineString
- type MultiLineStringData
- type MultiPoint
- type MultiPointData
- type MultiPolygon
- type MultiPolygonData
- type Point
- type PointData
- type Polygon
- type PolygonData
- type Srid
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericGeometry ¶
type GenericGeometry struct { PointData *PointData LineStringData *LineStringData PolygonData *PolygonData MultiPointData *MultiPointData MultiLineStringData *MultiLineStringData MultiPolygonData *MultiPolygonData GeometryCollectionData *GeometryCollectionData // contains filtered or unexported fields }
func NewGenericGeometry ¶
func NewGenericGeometry(srid Srid, typ GeometryType) *GenericGeometry
func (*GenericGeometry) Decode ¶
func (g *GenericGeometry) Decode(data []byte) error
func (*GenericGeometry) Encode ¶
func (g *GenericGeometry) Encode() []byte
func (*GenericGeometry) Type ¶
func (g *GenericGeometry) Type() GeometryType
type GeometryCollection ¶
type GeometryCollection struct { Data GeometryCollectionData // contains filtered or unexported fields }
func NewGeometryCollection ¶
func NewGeometryCollection(srid Srid) *GeometryCollection
func (*GeometryCollection) Decode ¶
func (c *GeometryCollection) Decode(data []byte) error
func (*GeometryCollection) Encode ¶
func (c *GeometryCollection) Encode() []byte
type GeometryCollectionData ¶
type GeometryCollectionData []GenericGeometry
type GeometryType ¶
type GeometryType uint32
const ( GEOMETRY_TYPE_GENERIC GeometryType = iota GEOMETRY_TYPE_POINT GEOMETRY_TYPE_LINE_STRING GEOMETRY_TYPE_POLYGON GEOMETRY_TYPE_MULTI_POINT GEOMETRY_TYPE_MULTI_LINE_STRING GEOMETRY_TYPE_MULTI_POLYGON GEOMETRY_TYPE_COLLECTION )
type LineString ¶
type LineString struct { Data LineStringData // contains filtered or unexported fields }
func NewLineString ¶
func NewLineString(srid Srid) *LineString
func (*LineString) Decode ¶
func (l *LineString) Decode(data []byte) error
func (*LineString) Encode ¶
func (l *LineString) Encode() []byte
type LineStringData ¶
type LineStringData []PointData
type MultiLineString ¶
type MultiLineString struct { Data MultiLineStringData // contains filtered or unexported fields }
func NewMultiLineString ¶
func NewMultiLineString(srid Srid) *MultiLineString
func (*MultiLineString) Decode ¶
func (ml *MultiLineString) Decode(data []byte) error
func (*MultiLineString) Encode ¶
func (ml *MultiLineString) Encode() []byte
type MultiLineStringData ¶
type MultiLineStringData []LineStringData
type MultiPoint ¶
type MultiPoint struct { Data MultiPointData // contains filtered or unexported fields }
func NewMultiPoint ¶
func NewMultiPoint(srid Srid) *MultiPoint
func (*MultiPoint) Decode ¶
func (mp *MultiPoint) Decode(data []byte) error
func (*MultiPoint) Encode ¶
func (mp *MultiPoint) Encode() []byte
type MultiPointData ¶
type MultiPointData []PointData
type MultiPolygon ¶
type MultiPolygon struct { Data MultiPolygonData // contains filtered or unexported fields }
func NewMultiPolygon ¶
func NewMultiPolygon(srid Srid) *MultiPolygon
func (*MultiPolygon) Decode ¶
func (mp *MultiPolygon) Decode(data []byte) error
func (*MultiPolygon) Encode ¶
func (mp *MultiPolygon) Encode() []byte
type MultiPolygonData ¶
type MultiPolygonData []PolygonData
type Polygon ¶
type Polygon struct { Data PolygonData // contains filtered or unexported fields }
func NewPolygon ¶
type PolygonData ¶
type PolygonData []LineStringData
Click to show internal directories.
Click to hide internal directories.