Documentation ¶
Index ¶
- 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 LoadWOFFeatureFromFile(path string) (geojson.Feature, error)
- func LoadWOFFeatureFromReader(fh io.Reader) (geojson.Feature, error)
- func NewGeoJSONFeature(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 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 EnsureWOFFeature ¶
func LoadFeature ¶
func LoadFeatureFromFile ¶
func LoadFeatureFromReader ¶
func LoadWOFFeatureFromFile ¶
func NewGeoJSONFeature ¶
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 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.