github.com/PDOK/gokoala@v0.50.6/internal/ogc/features/datasources/postgis/postgis.go (about) 1 package postgis 2 3 import ( 4 "context" 5 "log" 6 7 "github.com/PDOK/gokoala/internal/ogc/features/datasources" 8 "github.com/PDOK/gokoala/internal/ogc/features/domain" 9 ) 10 11 // PostGIS !!! Placeholder implementation, for future reference !!! 12 type PostGIS struct { 13 } 14 15 func NewPostGIS() *PostGIS { 16 return &PostGIS{} 17 } 18 19 func (PostGIS) Close() { 20 // noop 21 } 22 23 func (pg PostGIS) GetFeatureIDs(_ context.Context, _ string, _ datasources.FeaturesCriteria) ([]int64, domain.Cursors, error) { 24 log.Println("PostGIS support is not implemented yet, this just serves to demonstrate that we can support multiple types of datasources") 25 return []int64{}, domain.Cursors{}, nil 26 } 27 28 func (pg PostGIS) GetFeaturesByID(_ context.Context, _ string, _ []int64) (*domain.FeatureCollection, error) { 29 log.Println("PostGIS support is not implemented yet, this just serves to demonstrate that we can support multiple types of datasources") 30 return &domain.FeatureCollection{}, nil 31 } 32 33 func (pg PostGIS) GetFeatures(_ context.Context, _ string, _ datasources.FeaturesCriteria) (*domain.FeatureCollection, domain.Cursors, error) { 34 log.Println("PostGIS support is not implemented yet, this just serves to demonstrate that we can support multiple types of datasources") 35 return nil, domain.Cursors{}, nil 36 } 37 38 func (pg PostGIS) GetFeature(_ context.Context, _ string, _ int64) (*domain.Feature, error) { 39 log.Println("PostGIS support is not implemented yet, this just serves to demonstrate that we can support multiple types of datasources") 40 return nil, nil 41 } 42 43 func (pg PostGIS) GetFeatureTableMetadata(_ string) (datasources.FeatureTableMetadata, error) { 44 log.Println("PostGIS support is not implemented yet, this just serves to demonstrate that we can support multiple types of datasources") 45 return nil, nil 46 }