Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadMapView ¶
func LoadMapView(ctx context.Context, db bun.DB, mr *geo.MapRequest, fc *geo.FeatureCollection) error
Types ¶
type GeoObject ¶
type GeoObject struct { bun.BaseModel `bun:"table:geo_objects"` ID int64 `bun:"id,pk,autoincrement"` QuadKey int64 `bun:"quad_key,notnull"` Lat float64 `bun:"lat,notnull"` Lon float64 `bun:"lon,notnull"` Properties map[string]interface{} `bun:"properties"` Point *geo.GeographicPoint `bun:"point,type:geography(POINT,4326)"` }
type PostGISDataSource ¶
func NewPostGISDataSource ¶
func NewPostGISDataSource(ctx context.Context, dsn string, gs *geo.GeographicSystem, mapper PropertiesMapper) (*PostGISDataSource, error)
func (*PostGISDataSource) LoadMapView ¶
func (p *PostGISDataSource) LoadMapView(ctx context.Context, mr *geo.MapRequest, fc *geo.FeatureCollection) error
func (*PostGISDataSource) StoreGeoData ¶
func (p *PostGISDataSource) StoreGeoData(ctx context.Context, d interface{}) error
type PropertiesMapper ¶
Click to show internal directories.
Click to hide internal directories.