feat(OGRProvider): allow to use 'geom_field' in the config for OGR pr… (#1141)
* feat(OGRProvider): allow to use 'geom_field' in the config for OGR provider * docs: show an example of using OGR for publishing data from a PostGIS database * fix: does not check for empty geometry in this PR * docs: add back ESRIJSON source_type
This commit is contained in:
@@ -195,6 +195,20 @@ The OGR provider requires a recent (3+) version of GDAL to be installed.
|
||||
id_field: BGS_ID
|
||||
layer: ESRIJSON
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
providers:
|
||||
- type: feature
|
||||
name: OGR
|
||||
data:
|
||||
source_type: PostgreSQL
|
||||
source: "PG: host=127.0.0.1 dbname=test user=postgres password=postgres"
|
||||
source_srs: EPSG:4326
|
||||
target_srs: EPSG:4326 # Can be used to transform/reproject the data
|
||||
id_field: osm_id
|
||||
layer: osm.hotosm_bdi_waterways # Value follows a 'my_schema.my_table' structure
|
||||
geom_field: foo_geom
|
||||
|
||||
|
||||
|
||||
MongoDB
|
||||
|
||||
Reference in New Issue
Block a user