feature

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: BSD-3-Clause Imports: 23 Imported by: 17

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureWOFAltFeature added in v0.12.0

func EnsureWOFAltFeature(body []byte) error

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 LoadWOFAltFeatureFromFile added in v0.12.0

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

func LoadWOFAltFeatureFromReader added in v0.12.0

func LoadWOFAltFeatureFromReader(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 NewWOFAltFeature added in v0.12.0

func NewWOFAltFeature(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) BelongsTo added in v0.16.2

func (spr *GeoJSONStandardPlacesResult) BelongsTo() []int64

func (*GeoJSONStandardPlacesResult) Cessation added in v0.16.0

func (spr *GeoJSONStandardPlacesResult) Cessation() *edtf.EDTFDate

func (*GeoJSONStandardPlacesResult) Country

func (spr *GeoJSONStandardPlacesResult) Country() string

func (*GeoJSONStandardPlacesResult) Id

func (*GeoJSONStandardPlacesResult) Inception added in v0.16.0

func (spr *GeoJSONStandardPlacesResult) Inception() *edtf.EDTFDate

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 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"`
	WOFId                    string  `json:"wof:id"`
	WOFName                  string  `json:"wof:name"`
	WOFPlacetype             string  `json:"wof:placetype"`
	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"`
	WOFPath                  string  `json:"wof:path"`
	WOFRepo                  string  `json:"wof:repo"`
}

func (*WOFAltStandardPlacesResult) BelongsTo added in v0.16.2

func (spr *WOFAltStandardPlacesResult) BelongsTo() []int64

func (*WOFAltStandardPlacesResult) Cessation added in v0.16.0

func (spr *WOFAltStandardPlacesResult) Cessation() *edtf.EDTFDate

func (*WOFAltStandardPlacesResult) Country added in v0.12.0

func (spr *WOFAltStandardPlacesResult) Country() string

func (*WOFAltStandardPlacesResult) Id added in v0.12.0

func (*WOFAltStandardPlacesResult) Inception added in v0.16.0

func (spr *WOFAltStandardPlacesResult) Inception() *edtf.EDTFDate

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

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"`
	EDTFInception            string  `json:"edtf:inception"`
	EDTFCessation            string  `json:"edtf:cessation"`
	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"`
	WOFBelongsTo             []int64 `json:"wof:belongsto"`
	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) BelongsTo added in v0.16.2

func (spr *WOFStandardPlacesResult) BelongsTo() []int64

func (*WOFStandardPlacesResult) Cessation added in v0.16.0

func (spr *WOFStandardPlacesResult) Cessation() *edtf.EDTFDate

func (*WOFStandardPlacesResult) Country

func (spr *WOFStandardPlacesResult) Country() string

func (*WOFStandardPlacesResult) Id

func (spr *WOFStandardPlacesResult) Id() string

func (*WOFStandardPlacesResult) Inception added in v0.16.0

func (spr *WOFStandardPlacesResult) Inception() *edtf.EDTFDate

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