feature

package
v0.10.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2021 License: BSD-3-Clause Imports: 20 Imported by: 26

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureWOFFeature

func EnsureWOFFeature(body []byte) error

func LoadFeature

func LoadFeature(body []byte) (geojson.Feature, error)

func LoadFeatureFromFile

func LoadFeatureFromFile(path string) (geojson.Feature, error)

func LoadFeatureFromReader

func LoadFeatureFromReader(fh io.Reader) (geojson.Feature, error)

func LoadGeoJSONFeatureFromFile

func LoadGeoJSONFeatureFromFile(path string) (geojson.Feature, error)

func LoadGeoJSONFeatureFromReader

func LoadGeoJSONFeatureFromReader(fh io.Reader) (geojson.Feature, error)

func LoadWOFFeatureFromFile

func LoadWOFFeatureFromFile(path string) (geojson.Feature, error)

func LoadWOFFeatureFromReader

func LoadWOFFeatureFromReader(fh io.Reader) (geojson.Feature, error)

func NewGeoJSONFeature

func NewGeoJSONFeature(body []byte) (geojson.Feature, error)

func NewWOFFeature

func NewWOFFeature(body []byte) (geojson.Feature, error)

func UnmarshalFeature

func UnmarshalFeature(body []byte) ([]byte, error)

func UnmarshalFeatureFromFile

func UnmarshalFeatureFromFile(path string) ([]byte, error)

func UnmarshalFeatureFromReader

func UnmarshalFeatureFromReader(fh io.Reader) ([]byte, error)

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 (*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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL