Documentation
¶
Index ¶
- func NewSQLiteSpatialDatabase(ctx context.Context, uri string) (database.SpatialDatabase, error)
- type RTreeSpatialIndex
- 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) (*geojson.GeoJSONFeatureCollection, error)
- func (r *SQLiteSpatialDatabase) PointInPolygonCandidatesWithChannels(ctx context.Context, coord *geom.Coord, rsp_ch chan geojson.GeoJSONFeature, ...)
- func (r *SQLiteSpatialDatabase) PointInPolygonWithChannels(ctx context.Context, coord *geom.Coord, filters filter.Filter, ...)
- func (db *SQLiteSpatialDatabase) StandardPlacesResultsToFeatureCollection(ctx context.Context, results spr.StandardPlacesResults) (*geojson.GeoJSONFeatureCollection, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RTreeSpatialIndex ¶
type RTreeSpatialIndex struct {
Id string
// contains filtered or unexported fields
}
func (RTreeSpatialIndex) Bounds ¶
func (sp RTreeSpatialIndex) Bounds() geom.Rect
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
// 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 (r *SQLiteSpatialDatabase) PointInPolygonCandidates(ctx context.Context, coord *geom.Coord) (*geojson.GeoJSONFeatureCollection, error)
func (*SQLiteSpatialDatabase) PointInPolygonCandidatesWithChannels ¶
func (r *SQLiteSpatialDatabase) PointInPolygonCandidatesWithChannels(ctx context.Context, coord *geom.Coord, rsp_ch chan geojson.GeoJSONFeature, err_ch chan error, done_ch chan bool)
func (*SQLiteSpatialDatabase) PointInPolygonWithChannels ¶
func (*SQLiteSpatialDatabase) StandardPlacesResultsToFeatureCollection ¶
func (db *SQLiteSpatialDatabase) StandardPlacesResultsToFeatureCollection(ctx context.Context, results spr.StandardPlacesResults) (*geojson.GeoJSONFeatureCollection, error)
Click to show internal directories.
Click to hide internal directories.