Documentation ¶
Index ¶
- func EnsureWOFAltFeature(body []byte) error
- func EnsureWOFFeature(body []byte) error
- func LoadFeature(body []byte) (geojson.Feature, error)
- func LoadFeatureFromFile(path string) (geojson.Feature, error)
- func LoadFeatureFromReader(fh io.Reader) (geojson.Feature, error)
- func LoadGeoJSONFeatureFromFile(path string) (geojson.Feature, error)
- func LoadGeoJSONFeatureFromReader(fh io.Reader) (geojson.Feature, error)
- func LoadWOFAltFeatureFromFile(path string) (geojson.Feature, error)
- func LoadWOFAltFeatureFromReader(fh io.Reader) (geojson.Feature, error)
- func LoadWOFFeatureFromFile(path string) (geojson.Feature, error)
- func LoadWOFFeatureFromReader(fh io.Reader) (geojson.Feature, error)
- func NewGeoJSONFeature(body []byte) (geojson.Feature, error)
- func NewWOFAltFeature(body []byte) (geojson.Feature, error)
- func NewWOFFeature(body []byte) (geojson.Feature, error)
- func UnmarshalFeature(body []byte) ([]byte, error)
- func UnmarshalFeatureFromFile(path string) ([]byte, error)
- func UnmarshalFeatureFromReader(fh io.Reader) ([]byte, error)
- type GeoJSONFeature
- func (f *GeoJSONFeature) BoundingBoxes() (geojson.BoundingBoxes, error)
- func (f *GeoJSONFeature) Bytes() []byte
- func (f *GeoJSONFeature) ContainsCoord(c geom.Coord) (bool, error)
- func (f *GeoJSONFeature) Id() string
- func (f *GeoJSONFeature) Name() string
- func (f *GeoJSONFeature) Placetype() string
- func (f *GeoJSONFeature) Polygons() ([]geojson.Polygon, error)
- func (f *GeoJSONFeature) SPR() (spr.StandardPlacesResult, error)
- func (f *GeoJSONFeature) String() string
- type GeoJSONStandardPlacesResult
- func (spr *GeoJSONStandardPlacesResult) Country() string
- func (spr *GeoJSONStandardPlacesResult) Id() string
- func (spr *GeoJSONStandardPlacesResult) IsCeased() flags.ExistentialFlag
- func (spr *GeoJSONStandardPlacesResult) IsCurrent() flags.ExistentialFlag
- func (spr *GeoJSONStandardPlacesResult) IsDeprecated() flags.ExistentialFlag
- func (spr *GeoJSONStandardPlacesResult) IsSuperseded() flags.ExistentialFlag
- func (spr *GeoJSONStandardPlacesResult) IsSuperseding() flags.ExistentialFlag
- func (spr *GeoJSONStandardPlacesResult) LastModified() int64
- func (spr *GeoJSONStandardPlacesResult) Latitude() float64
- func (spr *GeoJSONStandardPlacesResult) Longitude() float64
- func (spr *GeoJSONStandardPlacesResult) MaxLatitude() float64
- func (spr *GeoJSONStandardPlacesResult) MaxLongitude() float64
- func (spr *GeoJSONStandardPlacesResult) MinLatitude() float64
- func (spr *GeoJSONStandardPlacesResult) MinLongitude() float64
- func (spr *GeoJSONStandardPlacesResult) Name() string
- func (spr *GeoJSONStandardPlacesResult) ParentId() string
- func (spr *GeoJSONStandardPlacesResult) Path() string
- func (spr *GeoJSONStandardPlacesResult) Placetype() string
- func (spr *GeoJSONStandardPlacesResult) Repo() string
- func (spr *GeoJSONStandardPlacesResult) SupersededBy() []int64
- func (spr *GeoJSONStandardPlacesResult) Supersedes() []int64
- func (spr *GeoJSONStandardPlacesResult) URI() string
- type WOFAltFeature
- func (f *WOFAltFeature) BoundingBoxes() (geojson.BoundingBoxes, error)
- func (f *WOFAltFeature) Bytes() []byte
- func (f *WOFAltFeature) ContainsCoord(c geom.Coord) (bool, error)
- func (f *WOFAltFeature) Id() string
- func (f *WOFAltFeature) Name() string
- func (f *WOFAltFeature) Placetype() string
- func (f *WOFAltFeature) Polygons() ([]geojson.Polygon, error)
- func (f *WOFAltFeature) SPR() (spr.StandardPlacesResult, error)
- func (f *WOFAltFeature) String() string
- type WOFAltStandardPlacesResult
- func (spr *WOFAltStandardPlacesResult) Country() string
- func (spr *WOFAltStandardPlacesResult) Id() string
- func (spr *WOFAltStandardPlacesResult) IsCeased() flags.ExistentialFlag
- func (spr *WOFAltStandardPlacesResult) IsCurrent() flags.ExistentialFlag
- func (spr *WOFAltStandardPlacesResult) IsDeprecated() flags.ExistentialFlag
- func (spr *WOFAltStandardPlacesResult) IsSuperseded() flags.ExistentialFlag
- func (spr *WOFAltStandardPlacesResult) IsSuperseding() flags.ExistentialFlag
- func (spr *WOFAltStandardPlacesResult) LastModified() int64
- func (spr *WOFAltStandardPlacesResult) Latitude() float64
- func (spr *WOFAltStandardPlacesResult) Longitude() float64
- func (spr *WOFAltStandardPlacesResult) MaxLatitude() float64
- func (spr *WOFAltStandardPlacesResult) MaxLongitude() float64
- func (spr *WOFAltStandardPlacesResult) MinLatitude() float64
- func (spr *WOFAltStandardPlacesResult) MinLongitude() float64
- func (spr *WOFAltStandardPlacesResult) Name() string
- func (spr *WOFAltStandardPlacesResult) ParentId() string
- func (spr *WOFAltStandardPlacesResult) Path() string
- func (spr *WOFAltStandardPlacesResult) Placetype() string
- func (spr *WOFAltStandardPlacesResult) Repo() string
- func (spr *WOFAltStandardPlacesResult) SupersededBy() []int64
- func (spr *WOFAltStandardPlacesResult) Supersedes() []int64
- func (spr *WOFAltStandardPlacesResult) URI() string
- type WOFFeature
- func (f *WOFFeature) BoundingBoxes() (geojson.BoundingBoxes, error)
- func (f *WOFFeature) Bytes() []byte
- func (f *WOFFeature) ContainsCoord(c geom.Coord) (bool, error)
- func (f *WOFFeature) Id() string
- func (f *WOFFeature) Name() string
- func (f *WOFFeature) Placetype() string
- func (f *WOFFeature) Polygons() ([]geojson.Polygon, error)
- func (f *WOFFeature) SPR() (spr.StandardPlacesResult, error)
- func (f *WOFFeature) String() string
- type WOFStandardPlacesResult
- func (spr *WOFStandardPlacesResult) Country() string
- func (spr *WOFStandardPlacesResult) Id() string
- func (spr *WOFStandardPlacesResult) IsCeased() flags.ExistentialFlag
- func (spr *WOFStandardPlacesResult) IsCurrent() flags.ExistentialFlag
- func (spr *WOFStandardPlacesResult) IsDeprecated() flags.ExistentialFlag
- func (spr *WOFStandardPlacesResult) IsSuperseded() flags.ExistentialFlag
- func (spr *WOFStandardPlacesResult) IsSuperseding() flags.ExistentialFlag
- func (spr *WOFStandardPlacesResult) LastModified() int64
- func (spr *WOFStandardPlacesResult) Latitude() float64
- func (spr *WOFStandardPlacesResult) Longitude() float64
- func (spr *WOFStandardPlacesResult) MaxLatitude() float64
- func (spr *WOFStandardPlacesResult) MaxLongitude() float64
- func (spr *WOFStandardPlacesResult) MinLatitude() float64
- func (spr *WOFStandardPlacesResult) MinLongitude() float64
- func (spr *WOFStandardPlacesResult) Name() string
- func (spr *WOFStandardPlacesResult) ParentId() string
- func (spr *WOFStandardPlacesResult) Path() string
- func (spr *WOFStandardPlacesResult) Placetype() string
- func (spr *WOFStandardPlacesResult) Repo() string
- func (spr *WOFStandardPlacesResult) SupersededBy() []int64
- func (spr *WOFStandardPlacesResult) Supersedes() []int64
- func (spr *WOFStandardPlacesResult) URI() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureWOFAltFeature ¶ added in v0.12.0
func EnsureWOFFeature ¶
func LoadFeature ¶
func LoadFeatureFromFile ¶
func LoadFeatureFromReader ¶
func LoadWOFAltFeatureFromFile ¶ added in v0.12.0
func LoadWOFAltFeatureFromReader ¶ added in v0.12.0
func LoadWOFFeatureFromFile ¶
func NewGeoJSONFeature ¶
func NewWOFAltFeature ¶ added in v0.12.0
func NewWOFFeature ¶
func UnmarshalFeature ¶
Types ¶
type GeoJSONFeature ¶
type GeoJSONFeature struct { geojson.Feature // contains filtered or unexported fields }
func (*GeoJSONFeature) BoundingBoxes ¶
func (f *GeoJSONFeature) BoundingBoxes() (geojson.BoundingBoxes, error)
func (*GeoJSONFeature) Bytes ¶
func (f *GeoJSONFeature) Bytes() []byte
func (*GeoJSONFeature) ContainsCoord ¶
func (f *GeoJSONFeature) ContainsCoord(c geom.Coord) (bool, error)
func (*GeoJSONFeature) Id ¶
func (f *GeoJSONFeature) Id() string
func (*GeoJSONFeature) Name ¶
func (f *GeoJSONFeature) Name() string
func (*GeoJSONFeature) Placetype ¶
func (f *GeoJSONFeature) Placetype() string
func (*GeoJSONFeature) Polygons ¶
func (f *GeoJSONFeature) Polygons() ([]geojson.Polygon, error)
func (*GeoJSONFeature) SPR ¶
func (f *GeoJSONFeature) SPR() (spr.StandardPlacesResult, error)
func (*GeoJSONFeature) String ¶
func (f *GeoJSONFeature) String() string
type GeoJSONStandardPlacesResult ¶
type GeoJSONStandardPlacesResult struct { spr.StandardPlacesResult `json:",omitempty"` SPRId string `json:"spr:id"` SPRName string `json:"spr:name"` SPRPlacetype string `json:"spr:placetype"` SPRLatitude float64 `json:"spr:latitude"` SPRLongitude float64 `json:"spr:longitude"` SPRMinLatitude float64 `json:"spr:min_latitude"` SPRMinLongitude float64 `json:"spr:min_longitude"` SPRMaxLatitude float64 `json:"spr:max_latitude"` SPRMaxLongitude float64 `json:"spr:max_longitude"` }
func (*GeoJSONStandardPlacesResult) Country ¶
func (spr *GeoJSONStandardPlacesResult) Country() string
func (*GeoJSONStandardPlacesResult) Id ¶
func (spr *GeoJSONStandardPlacesResult) Id() string
func (*GeoJSONStandardPlacesResult) IsCeased ¶
func (spr *GeoJSONStandardPlacesResult) IsCeased() flags.ExistentialFlag
func (*GeoJSONStandardPlacesResult) IsCurrent ¶
func (spr *GeoJSONStandardPlacesResult) IsCurrent() flags.ExistentialFlag
func (*GeoJSONStandardPlacesResult) IsDeprecated ¶
func (spr *GeoJSONStandardPlacesResult) IsDeprecated() flags.ExistentialFlag
func (*GeoJSONStandardPlacesResult) IsSuperseded ¶
func (spr *GeoJSONStandardPlacesResult) IsSuperseded() flags.ExistentialFlag
func (*GeoJSONStandardPlacesResult) IsSuperseding ¶
func (spr *GeoJSONStandardPlacesResult) IsSuperseding() flags.ExistentialFlag
func (*GeoJSONStandardPlacesResult) LastModified ¶
func (spr *GeoJSONStandardPlacesResult) LastModified() int64
func (*GeoJSONStandardPlacesResult) Latitude ¶
func (spr *GeoJSONStandardPlacesResult) Latitude() float64
func (*GeoJSONStandardPlacesResult) Longitude ¶
func (spr *GeoJSONStandardPlacesResult) Longitude() float64
func (*GeoJSONStandardPlacesResult) MaxLatitude ¶
func (spr *GeoJSONStandardPlacesResult) MaxLatitude() float64
func (*GeoJSONStandardPlacesResult) MaxLongitude ¶
func (spr *GeoJSONStandardPlacesResult) MaxLongitude() float64
func (*GeoJSONStandardPlacesResult) MinLatitude ¶
func (spr *GeoJSONStandardPlacesResult) MinLatitude() float64
func (*GeoJSONStandardPlacesResult) MinLongitude ¶
func (spr *GeoJSONStandardPlacesResult) MinLongitude() float64
func (*GeoJSONStandardPlacesResult) Name ¶
func (spr *GeoJSONStandardPlacesResult) Name() string
func (*GeoJSONStandardPlacesResult) ParentId ¶
func (spr *GeoJSONStandardPlacesResult) ParentId() string
func (*GeoJSONStandardPlacesResult) Path ¶
func (spr *GeoJSONStandardPlacesResult) Path() string
func (*GeoJSONStandardPlacesResult) Placetype ¶
func (spr *GeoJSONStandardPlacesResult) Placetype() string
func (*GeoJSONStandardPlacesResult) Repo ¶
func (spr *GeoJSONStandardPlacesResult) Repo() string
func (*GeoJSONStandardPlacesResult) SupersededBy ¶
func (spr *GeoJSONStandardPlacesResult) SupersededBy() []int64
func (*GeoJSONStandardPlacesResult) Supersedes ¶
func (spr *GeoJSONStandardPlacesResult) Supersedes() []int64
func (*GeoJSONStandardPlacesResult) URI ¶
func (spr *GeoJSONStandardPlacesResult) URI() string
type WOFAltFeature ¶ added in v0.12.0
type WOFAltFeature struct { geojson.Feature // contains filtered or unexported fields }
func (*WOFAltFeature) BoundingBoxes ¶ added in v0.12.0
func (f *WOFAltFeature) BoundingBoxes() (geojson.BoundingBoxes, error)
func (*WOFAltFeature) Bytes ¶ added in v0.12.0
func (f *WOFAltFeature) Bytes() []byte
func (*WOFAltFeature) ContainsCoord ¶ added in v0.12.0
func (f *WOFAltFeature) ContainsCoord(c geom.Coord) (bool, error)
func (*WOFAltFeature) Id ¶ added in v0.12.0
func (f *WOFAltFeature) Id() string
func (*WOFAltFeature) Name ¶ added in v0.12.0
func (f *WOFAltFeature) Name() string
func (*WOFAltFeature) Placetype ¶ added in v0.12.0
func (f *WOFAltFeature) Placetype() string
func (*WOFAltFeature) Polygons ¶ added in v0.12.0
func (f *WOFAltFeature) Polygons() ([]geojson.Polygon, error)
func (*WOFAltFeature) SPR ¶ added in v0.12.0
func (f *WOFAltFeature) SPR() (spr.StandardPlacesResult, error)
func (*WOFAltFeature) String ¶ added in v0.12.0
func (f *WOFAltFeature) String() string
type WOFAltStandardPlacesResult ¶ added in v0.12.0
type WOFAltStandardPlacesResult struct { spr.StandardPlacesResult `json:",omitempty"` SPRId string `json:"spr:id"` SPRName string `json:"spr:name"` SPRPlacetype string `json:"spr:placetype"` SPRLatitude float64 `json:"spr:latitude"` SPRLongitude float64 `json:"spr:longitude"` SPRMinLatitude float64 `json:"spr:min_latitude"` SPRMinLongitude float64 `json:"spr:min_longitude"` SPRMaxLatitude float64 `json:"spr:max_latitude"` SPRMaxLongitude float64 `json:"spr:max_longitude"` }
func (*WOFAltStandardPlacesResult) Country ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) Country() string
func (*WOFAltStandardPlacesResult) Id ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) Id() string
func (*WOFAltStandardPlacesResult) IsCeased ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) IsCeased() flags.ExistentialFlag
func (*WOFAltStandardPlacesResult) IsCurrent ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) IsCurrent() flags.ExistentialFlag
func (*WOFAltStandardPlacesResult) IsDeprecated ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) IsDeprecated() flags.ExistentialFlag
func (*WOFAltStandardPlacesResult) IsSuperseded ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) IsSuperseded() flags.ExistentialFlag
func (*WOFAltStandardPlacesResult) IsSuperseding ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) IsSuperseding() flags.ExistentialFlag
func (*WOFAltStandardPlacesResult) LastModified ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) LastModified() int64
func (*WOFAltStandardPlacesResult) Latitude ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) Latitude() float64
func (*WOFAltStandardPlacesResult) Longitude ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) Longitude() float64
func (*WOFAltStandardPlacesResult) MaxLatitude ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) MaxLatitude() float64
func (*WOFAltStandardPlacesResult) MaxLongitude ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) MaxLongitude() float64
func (*WOFAltStandardPlacesResult) MinLatitude ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) MinLatitude() float64
func (*WOFAltStandardPlacesResult) MinLongitude ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) MinLongitude() float64
func (*WOFAltStandardPlacesResult) Name ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) Name() string
func (*WOFAltStandardPlacesResult) ParentId ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) ParentId() string
func (*WOFAltStandardPlacesResult) Path ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) Path() string
func (*WOFAltStandardPlacesResult) Placetype ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) Placetype() string
func (*WOFAltStandardPlacesResult) Repo ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) Repo() string
func (*WOFAltStandardPlacesResult) SupersededBy ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) SupersededBy() []int64
func (*WOFAltStandardPlacesResult) Supersedes ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) Supersedes() []int64
func (*WOFAltStandardPlacesResult) URI ¶ added in v0.12.0
func (spr *WOFAltStandardPlacesResult) URI() string
type WOFFeature ¶
type WOFFeature struct { geojson.Feature // contains filtered or unexported fields }
func (*WOFFeature) BoundingBoxes ¶
func (f *WOFFeature) BoundingBoxes() (geojson.BoundingBoxes, error)
func (*WOFFeature) Bytes ¶
func (f *WOFFeature) Bytes() []byte
func (*WOFFeature) ContainsCoord ¶
func (f *WOFFeature) ContainsCoord(c geom.Coord) (bool, error)
func (*WOFFeature) Id ¶
func (f *WOFFeature) Id() string
func (*WOFFeature) Name ¶
func (f *WOFFeature) Name() string
func (*WOFFeature) Placetype ¶
func (f *WOFFeature) Placetype() string
func (*WOFFeature) Polygons ¶
func (f *WOFFeature) Polygons() ([]geojson.Polygon, error)
func (*WOFFeature) SPR ¶
func (f *WOFFeature) SPR() (spr.StandardPlacesResult, error)
func (*WOFFeature) String ¶
func (f *WOFFeature) String() string
type WOFStandardPlacesResult ¶
type WOFStandardPlacesResult struct { spr.StandardPlacesResult `json:",omitempty"` WOFId int64 `json:"wof:id"` WOFParentId int64 `json:"wof:parent_id"` WOFName string `json:"wof:name"` WOFPlacetype string `json:"wof:placetype"` WOFCountry string `json:"wof:country"` WOFRepo string `json:"wof:repo"` WOFPath string `json:"wof:path"` WOFSupersededBy []int64 `json:"wof:superseded_by"` WOFSupersedes []int64 `json:"wof:supersedes"` MZURI string `json:"mz:uri"` MZLatitude float64 `json:"mz:latitude"` MZLongitude float64 `json:"mz:longitude"` MZMinLatitude float64 `json:"mz:min_latitude"` MZMinLongitude float64 `json:"mz:min_longitude"` MZMaxLatitude float64 `json:"mz:max_latitude"` MZMaxLongitude float64 `json:"mz:max_longitude"` MZIsCurrent int64 `json:"mz:is_current"` MZIsCeased int64 `json:"mz:is_ceased"` MZIsDeprecated int64 `json:"mz:is_deprecated"` MZIsSuperseded int64 `json:"mz:is_superseded"` MZIsSuperseding int64 `json:"mz:is_superseding"` WOFLastModified int64 `json:"wof:lastmodified"` }
func (*WOFStandardPlacesResult) Country ¶
func (spr *WOFStandardPlacesResult) Country() string
func (*WOFStandardPlacesResult) Id ¶
func (spr *WOFStandardPlacesResult) Id() string
func (*WOFStandardPlacesResult) IsCeased ¶
func (spr *WOFStandardPlacesResult) IsCeased() flags.ExistentialFlag
func (*WOFStandardPlacesResult) IsCurrent ¶
func (spr *WOFStandardPlacesResult) IsCurrent() flags.ExistentialFlag
func (*WOFStandardPlacesResult) IsDeprecated ¶
func (spr *WOFStandardPlacesResult) IsDeprecated() flags.ExistentialFlag
func (*WOFStandardPlacesResult) IsSuperseded ¶
func (spr *WOFStandardPlacesResult) IsSuperseded() flags.ExistentialFlag
func (*WOFStandardPlacesResult) IsSuperseding ¶
func (spr *WOFStandardPlacesResult) IsSuperseding() flags.ExistentialFlag
func (*WOFStandardPlacesResult) LastModified ¶
func (spr *WOFStandardPlacesResult) LastModified() int64
func (*WOFStandardPlacesResult) Latitude ¶
func (spr *WOFStandardPlacesResult) Latitude() float64
func (*WOFStandardPlacesResult) Longitude ¶
func (spr *WOFStandardPlacesResult) Longitude() float64
func (*WOFStandardPlacesResult) MaxLatitude ¶
func (spr *WOFStandardPlacesResult) MaxLatitude() float64
func (*WOFStandardPlacesResult) MaxLongitude ¶
func (spr *WOFStandardPlacesResult) MaxLongitude() float64
func (*WOFStandardPlacesResult) MinLatitude ¶
func (spr *WOFStandardPlacesResult) MinLatitude() float64
func (*WOFStandardPlacesResult) MinLongitude ¶
func (spr *WOFStandardPlacesResult) MinLongitude() float64
func (*WOFStandardPlacesResult) Name ¶
func (spr *WOFStandardPlacesResult) Name() string
func (*WOFStandardPlacesResult) ParentId ¶
func (spr *WOFStandardPlacesResult) ParentId() string
func (*WOFStandardPlacesResult) Path ¶
func (spr *WOFStandardPlacesResult) Path() string
func (*WOFStandardPlacesResult) Placetype ¶
func (spr *WOFStandardPlacesResult) Placetype() string
func (*WOFStandardPlacesResult) Repo ¶
func (spr *WOFStandardPlacesResult) Repo() string
func (*WOFStandardPlacesResult) SupersededBy ¶
func (spr *WOFStandardPlacesResult) SupersededBy() []int64
func (*WOFStandardPlacesResult) Supersedes ¶
func (spr *WOFStandardPlacesResult) Supersedes() []int64
func (*WOFStandardPlacesResult) URI ¶
func (spr *WOFStandardPlacesResult) URI() string
Click to show internal directories.
Click to hide internal directories.