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 ¶
type DatasetStats struct {
// contains filtered or unexported fields
}
func NewDatasetStats ¶
func NewDatasetStats(concurrent bool) *DatasetStats
func (*DatasetStats) AddCollection ¶
func (i *DatasetStats) AddCollection(name string)
func (*DatasetStats) AddTypes ¶
func (i *DatasetStats) AddTypes(name string, types []string)
func (*DatasetStats) HasCollection ¶
func (i *DatasetStats) HasCollection(name string) bool
func (*DatasetStats) NumCollections ¶
func (i *DatasetStats) NumCollections() int
func (*DatasetStats) Types ¶
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 ¶
func (*FeatureCollection) MarshalJSON ¶
func (c *FeatureCollection) MarshalJSON() ([]byte, error)
type GeometryStats ¶
type GeometryStats struct {
// contains filtered or unexported fields
}
func NewGeometryStats ¶
func NewGeometryStats(concurrent bool) *GeometryStats
func (*GeometryStats) AddBounds ¶
func (i *GeometryStats) AddBounds(bounds *orb.Bound)
func (*GeometryStats) AddType ¶
func (i *GeometryStats) AddType(typ string)
func (*GeometryStats) AddTypes ¶
func (i *GeometryStats) AddTypes(types []string)
func (*GeometryStats) Bounds ¶
func (i *GeometryStats) Bounds() *orb.Bound
func (*GeometryStats) Types ¶
func (i *GeometryStats) Types() []string
Click to show internal directories.
Click to hide internal directories.