Documentation
¶
Index ¶
- Constants
- func DecodeGeometry(value any, encoding string) (*orbjson.Geometry, error)
- type DatasetStats
- func (i *DatasetStats) AddBounds(name string, bounds *orb.Bound)
- func (i *DatasetStats) AddCollection(name string)
- func (i *DatasetStats) AddTypes(name string, types []string)
- func (i *DatasetStats) Bounds(name string) *orb.Bound
- func (i *DatasetStats) HasCollection(name string) bool
- func (i *DatasetStats) NumCollections() int
- func (i *DatasetStats) Types(name string) []string
- type Feature
- type FeatureCollection
- type GeometryStats
Constants ¶
View Source
const ( EncodingWKB = "WKB" EncodingWKT = "WKT" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DatasetStats ¶ added in v0.15.0
type DatasetStats struct {
// contains filtered or unexported fields
}
func NewDatasetStats ¶ added in v0.15.0
func NewDatasetStats(concurrent bool) *DatasetStats
func (*DatasetStats) AddBounds ¶ added in v0.15.0
func (i *DatasetStats) AddBounds(name string, bounds *orb.Bound)
func (*DatasetStats) AddCollection ¶ added in v0.15.0
func (i *DatasetStats) AddCollection(name string)
func (*DatasetStats) AddTypes ¶ added in v0.15.0
func (i *DatasetStats) AddTypes(name string, types []string)
func (*DatasetStats) Bounds ¶ added in v0.15.0
func (i *DatasetStats) Bounds(name string) *orb.Bound
func (*DatasetStats) HasCollection ¶ added in v0.15.0
func (i *DatasetStats) HasCollection(name string) bool
func (*DatasetStats) NumCollections ¶ added in v0.15.0
func (i *DatasetStats) NumCollections() int
func (*DatasetStats) Types ¶ added in v0.15.0
func (i *DatasetStats) Types(name string) []string
type Feature ¶
type Feature struct { Id any `json:"id,omitempty"` Type string `json:"type"` Geometry orb.Geometry `json:"geometry"` Properties map[string]any `json:"properties"` }
func (*Feature) MarshalJSON ¶
func (*Feature) UnmarshalJSON ¶
type FeatureCollection ¶ added in v0.15.0
func (*FeatureCollection) MarshalJSON ¶ added in v0.15.0
func (c *FeatureCollection) MarshalJSON() ([]byte, error)
type GeometryStats ¶ added in v0.15.0
type GeometryStats struct {
// contains filtered or unexported fields
}
func NewGeometryStats ¶ added in v0.15.0
func NewGeometryStats(concurrent bool) *GeometryStats
func (*GeometryStats) AddBounds ¶ added in v0.15.0
func (i *GeometryStats) AddBounds(bounds *orb.Bound)
func (*GeometryStats) AddType ¶ added in v0.15.0
func (i *GeometryStats) AddType(typ string)
func (*GeometryStats) AddTypes ¶ added in v0.15.0
func (i *GeometryStats) AddTypes(types []string)
func (*GeometryStats) Bounds ¶ added in v0.15.0
func (i *GeometryStats) Bounds() *orb.Bound
func (*GeometryStats) Types ¶ added in v0.15.0
func (i *GeometryStats) Types() []string
Click to show internal directories.
Click to hide internal directories.