Documentation ¶
Index ¶
- type WOFFeature
- func (wof WOFFeature) Body() *gabs.Container
- func (wof WOFFeature) Contains(latitude float64, longitude float64) bool
- func (wof WOFFeature) Deprecated() bool
- func (wof WOFFeature) DumpCoords(poly []interface{}) geo.Polygon
- func (wof WOFFeature) DumpMultiPolygon(coordinates []interface{}) []*WOFPolygon
- func (wof WOFFeature) DumpPolygon(coordinates []interface{}) *WOFPolygon
- func (wof WOFFeature) Dumps() string
- func (wof WOFFeature) EnSpatialize() (*WOFSpatial, error)
- func (wof WOFFeature) EnSpatializeGeom() ([]*WOFSpatial, error)
- func (wof WOFFeature) GeomToPolygons() []*WOFPolygon
- func (wof WOFFeature) Hierarchy() []map[string]int
- func (wof WOFFeature) Id() int
- func (wof WOFFeature) IntProperty(prop string) (int, bool)
- func (wof WOFFeature) IntValue(path string) (int, bool)
- func (wof WOFFeature) Name() string
- func (wof WOFFeature) Placetype() string
- func (wof WOFFeature) StringProperty(prop string) (string, bool)
- func (wof WOFFeature) StringValue(path string) (string, bool)
- func (wof WOFFeature) Superseded() bool
- type WOFPolygon
- type WOFSpatial
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WOFFeature ¶
func UnmarshalFeature ¶
func UnmarshalFeature(raw []byte) (*WOFFeature, error)
func UnmarshalFeatureCollection ¶
func UnmarshalFeatureCollection(raw []byte) ([]*WOFFeature, error)
func UnmarshalFile ¶
func UnmarshalFile(path string) (*WOFFeature, error)
func (WOFFeature) Body ¶
func (wof WOFFeature) Body() *gabs.Container
func (WOFFeature) Contains ¶
func (wof WOFFeature) Contains(latitude float64, longitude float64) bool
func (WOFFeature) Deprecated ¶
func (wof WOFFeature) Deprecated() bool
func (WOFFeature) DumpCoords ¶
func (wof WOFFeature) DumpCoords(poly []interface{}) geo.Polygon
func (WOFFeature) DumpMultiPolygon ¶
func (wof WOFFeature) DumpMultiPolygon(coordinates []interface{}) []*WOFPolygon
func (WOFFeature) DumpPolygon ¶
func (wof WOFFeature) DumpPolygon(coordinates []interface{}) *WOFPolygon
func (WOFFeature) Dumps ¶
func (wof WOFFeature) Dumps() string
func (WOFFeature) EnSpatialize ¶
func (wof WOFFeature) EnSpatialize() (*WOFSpatial, error)
func (WOFFeature) EnSpatializeGeom ¶
func (wof WOFFeature) EnSpatializeGeom() ([]*WOFSpatial, error)
func (WOFFeature) GeomToPolygons ¶
func (wof WOFFeature) GeomToPolygons() []*WOFPolygon
func (WOFFeature) Hierarchy ¶
func (wof WOFFeature) Hierarchy() []map[string]int
func (WOFFeature) Id ¶
func (wof WOFFeature) Id() int
func (WOFFeature) IntProperty ¶
func (wof WOFFeature) IntProperty(prop string) (int, bool)
func (WOFFeature) Name ¶
func (wof WOFFeature) Name() string
func (WOFFeature) Placetype ¶
func (wof WOFFeature) Placetype() string
func (WOFFeature) StringProperty ¶
func (wof WOFFeature) StringProperty(prop string) (string, bool)
func (WOFFeature) StringValue ¶
func (wof WOFFeature) StringValue(path string) (string, bool)
func (WOFFeature) Superseded ¶
func (wof WOFFeature) Superseded() bool
type WOFPolygon ¶
func (*WOFPolygon) Contains ¶
func (p *WOFPolygon) Contains(latitude float64, longitude float64) bool
func (*WOFPolygon) CountPoints ¶
func (p *WOFPolygon) CountPoints() int
type WOFSpatial ¶
type WOFSpatial struct { Id int Name string Placetype string Offset int // used when calling EnSpatializeGeom in order to know which polygon we care about Deprecated bool Superseded bool // contains filtered or unexported fields }
func (WOFSpatial) Bounds ¶
func (sp WOFSpatial) Bounds() *rtreego.Rect
Click to show internal directories.
Click to hide internal directories.