Documentation ¶
Index ¶
- func Decode(data []byte) (geom.T, error)
- func Encode(g geom.T) ([]byte, error)
- func FromGeoJSON(geom Geometry) (g geom.T, err error)
- func ToGeoJSON(t geom.T) (interface{}, error)
- type Feature
- type FeatureCollection
- type Geometry
- type InsufficientElementsError
- type InsufficientPointsError
- type InvalidGeometryError
- type UnsupportedGeometryError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FeatureCollection ¶
type Geometry ¶
type Geometry struct { Type string `json:"type"` Coordinates interface{} `json:"coordinates"` }
type InsufficientElementsError ¶
type InsufficientElementsError struct {
ElementCount int
}
func (InsufficientElementsError) Error ¶
func (e InsufficientElementsError) Error() string
type InsufficientPointsError ¶
type InsufficientPointsError struct {
PointCount int
}
func (InsufficientPointsError) Error ¶
func (e InsufficientPointsError) Error() string
type InvalidGeometryError ¶
type InvalidGeometryError struct{}
func (InvalidGeometryError) Error ¶
func (e InvalidGeometryError) Error() string
type UnsupportedGeometryError ¶
type UnsupportedGeometryError struct {
Type string
}
func (UnsupportedGeometryError) Error ¶
func (e UnsupportedGeometryError) Error() string
Click to show internal directories.
Click to hide internal directories.