Documentation
¶
Index ¶
- func NewSQLitePropertiesReader(ctx context.Context, uri string) (spatial_properties.PropertiesReader, error)
- func NewSQLiteSpatialDatabase(ctx context.Context, uri string) (database.SpatialDatabase, error)
- type RTreeSpatialIndex
- type SQLitePropertiesReader
- func (pr *SQLitePropertiesReader) Close(ctx context.Context) error
- func (pr *SQLitePropertiesReader) IndexFeature(ctx context.Context, f wof_geojson.Feature) error
- func (pr *SQLitePropertiesReader) PropertiesResponseResultsWithStandardPlacesResults(ctx context.Context, results spr.StandardPlacesResults, properties []string) (*spatial.PropertiesResponseResults, error)
- type SQLiteResults
- type SQLiteSpatialDatabase
- func (r *SQLiteSpatialDatabase) Close(ctx context.Context) error
- func (r *SQLiteSpatialDatabase) IndexFeature(ctx context.Context, f wof_geojson.Feature) error
- func (r *SQLiteSpatialDatabase) PointInPolygon(ctx context.Context, coord *geom.Coord, filters ...filter.Filter) (spr.StandardPlacesResults, error)
- func (r *SQLiteSpatialDatabase) PointInPolygonCandidates(ctx context.Context, coord *geom.Coord, filters ...filter.Filter) ([]*spatial.PointInPolygonCandidate, error)
- func (r *SQLiteSpatialDatabase) PointInPolygonCandidatesWithChannels(ctx context.Context, rsp_ch chan *spatial.PointInPolygonCandidate, ...)
- func (r *SQLiteSpatialDatabase) PointInPolygonWithChannels(ctx context.Context, rsp_ch chan spr.StandardPlacesResult, err_ch chan error, ...)
- type SQLiteStandardPlacesResult
- func (spr *SQLiteStandardPlacesResult) Country() string
- func (spr *SQLiteStandardPlacesResult) Id() string
- func (spr *SQLiteStandardPlacesResult) IsCeased() flags.ExistentialFlag
- func (spr *SQLiteStandardPlacesResult) IsCurrent() flags.ExistentialFlag
- func (spr *SQLiteStandardPlacesResult) IsDeprecated() flags.ExistentialFlag
- func (spr *SQLiteStandardPlacesResult) IsSuperseded() flags.ExistentialFlag
- func (spr *SQLiteStandardPlacesResult) IsSuperseding() flags.ExistentialFlag
- func (spr *SQLiteStandardPlacesResult) LastModified() int64
- func (spr *SQLiteStandardPlacesResult) Latitude() float64
- func (spr *SQLiteStandardPlacesResult) Longitude() float64
- func (spr *SQLiteStandardPlacesResult) MaxLatitude() float64
- func (spr *SQLiteStandardPlacesResult) MaxLongitude() float64
- func (spr *SQLiteStandardPlacesResult) MinLatitude() float64
- func (spr *SQLiteStandardPlacesResult) MinLongitude() float64
- func (spr *SQLiteStandardPlacesResult) Name() string
- func (spr *SQLiteStandardPlacesResult) ParentId() string
- func (spr *SQLiteStandardPlacesResult) Path() string
- func (spr *SQLiteStandardPlacesResult) Placetype() string
- func (spr *SQLiteStandardPlacesResult) Repo() string
- func (spr *SQLiteStandardPlacesResult) SupersededBy() []int64
- func (spr *SQLiteStandardPlacesResult) Supersedes() []int64
- func (spr *SQLiteStandardPlacesResult) URI() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSQLitePropertiesReader ¶
func NewSQLitePropertiesReader(ctx context.Context, uri string) (spatial_properties.PropertiesReader, error)
Types ¶
type RTreeSpatialIndex ¶
type RTreeSpatialIndex struct {
Id string
WOFId int64
IsAlt bool
AltLabel string
// contains filtered or unexported fields
}
func (RTreeSpatialIndex) Bounds ¶
func (sp RTreeSpatialIndex) Bounds() geom.Rect
func (RTreeSpatialIndex) Path ¶ added in v0.0.6
func (sp RTreeSpatialIndex) Path() string
type SQLitePropertiesReader ¶
type SQLitePropertiesReader struct {
spatial_properties.PropertiesReader
// contains filtered or unexported fields
}
func (*SQLitePropertiesReader) Close ¶
func (pr *SQLitePropertiesReader) Close(ctx context.Context) error
func (*SQLitePropertiesReader) IndexFeature ¶
func (pr *SQLitePropertiesReader) IndexFeature(ctx context.Context, f wof_geojson.Feature) error
func (*SQLitePropertiesReader) PropertiesResponseResultsWithStandardPlacesResults ¶
func (pr *SQLitePropertiesReader) PropertiesResponseResultsWithStandardPlacesResults(ctx context.Context, results spr.StandardPlacesResults, properties []string) (*spatial.PropertiesResponseResults, error)
type SQLiteResults ¶
type SQLiteResults struct {
spr.StandardPlacesResults `json:",omitempty"`
Places []spr.StandardPlacesResult `json:"places"`
}
func (*SQLiteResults) Results ¶
func (r *SQLiteResults) Results() []spr.StandardPlacesResult
type SQLiteSpatialDatabase ¶
type SQLiteSpatialDatabase struct {
database.SpatialDatabase
Logger *log.WOFLogger
Timer *timer.Timer
// contains filtered or unexported fields
}
func (*SQLiteSpatialDatabase) Close ¶
func (r *SQLiteSpatialDatabase) Close(ctx context.Context) error
func (*SQLiteSpatialDatabase) IndexFeature ¶
func (r *SQLiteSpatialDatabase) IndexFeature(ctx context.Context, f wof_geojson.Feature) error
func (*SQLiteSpatialDatabase) PointInPolygon ¶
func (*SQLiteSpatialDatabase) PointInPolygonCandidates ¶
func (*SQLiteSpatialDatabase) PointInPolygonCandidatesWithChannels ¶
type SQLiteStandardPlacesResult ¶ added in v0.0.8
type SQLiteStandardPlacesResult struct {
spr.StandardPlacesResult `json:",omitempty"`
WOFId string `json:"wof:id"`
WOFParentId string `json:"wof:parent_id"`
WOFName string `json:"wof:name"`
WOFCountry string `json:"wof:country"`
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"`
MZIsCurrent int64 `json:"mz:is_current"`
MZIsDeprecated int64 `json:"mz:is_deprecated"`
MZIsCeased int64 `json:"mz:is_ceased"`
MZIsSuperseded int64 `json:"mz:is_superseded"`
MZIsSuperseding int64 `json:"mz:is_superseding"`
WOFPath string `json:"wof:path"`
WOFRepo string `json:"wof:repo"`
WOFLastModified int64 `json:"wof:lastmodified"`
}
func (*SQLiteStandardPlacesResult) Country ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) Country() string
func (*SQLiteStandardPlacesResult) Id ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) Id() string
func (*SQLiteStandardPlacesResult) IsCeased ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) IsCeased() flags.ExistentialFlag
func (*SQLiteStandardPlacesResult) IsCurrent ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) IsCurrent() flags.ExistentialFlag
func (*SQLiteStandardPlacesResult) IsDeprecated ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) IsDeprecated() flags.ExistentialFlag
func (*SQLiteStandardPlacesResult) IsSuperseded ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) IsSuperseded() flags.ExistentialFlag
func (*SQLiteStandardPlacesResult) IsSuperseding ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) IsSuperseding() flags.ExistentialFlag
func (*SQLiteStandardPlacesResult) LastModified ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) LastModified() int64
func (*SQLiteStandardPlacesResult) Latitude ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) Latitude() float64
func (*SQLiteStandardPlacesResult) Longitude ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) Longitude() float64
func (*SQLiteStandardPlacesResult) MaxLatitude ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) MaxLatitude() float64
func (*SQLiteStandardPlacesResult) MaxLongitude ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) MaxLongitude() float64
func (*SQLiteStandardPlacesResult) MinLatitude ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) MinLatitude() float64
func (*SQLiteStandardPlacesResult) MinLongitude ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) MinLongitude() float64
func (*SQLiteStandardPlacesResult) Name ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) Name() string
func (*SQLiteStandardPlacesResult) ParentId ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) ParentId() string
func (*SQLiteStandardPlacesResult) Path ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) Path() string
func (*SQLiteStandardPlacesResult) Placetype ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) Placetype() string
func (*SQLiteStandardPlacesResult) Repo ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) Repo() string
func (*SQLiteStandardPlacesResult) SupersededBy ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) SupersededBy() []int64
func (*SQLiteStandardPlacesResult) Supersedes ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) Supersedes() []int64
func (*SQLiteStandardPlacesResult) URI ¶ added in v0.0.8
func (spr *SQLiteStandardPlacesResult) URI() string
Click to show internal directories.
Click to hide internal directories.