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) AppendPropertiesWithFeatureCollection(ctx context.Context, fc *geojson.GeoJSONFeatureCollection, properties []string) error
- 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_properties.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) (*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, rsp_ch chan spr.StandardPlacesResult, err_ch chan error, ...)
- func (db *SQLiteSpatialDatabase) StandardPlacesResultsToFeatureCollection(ctx context.Context, results spr.StandardPlacesResults) (*geojson.GeoJSONFeatureCollection, error)
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
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) AppendPropertiesWithFeatureCollection ¶
func (pr *SQLitePropertiesReader) AppendPropertiesWithFeatureCollection(ctx context.Context, fc *geojson.GeoJSONFeatureCollection, properties []string) error
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_properties.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
// 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.