Quantcast
Channel: ogr2ogr: Unable to import shapefile with '-lco RFC7946=YES' parameter to the PostGIS db - Geographic Information Systems Stack Exchange
Viewing all articles
Browse latest Browse all 2

ogr2ogr: Unable to import shapefile with '-lco RFC7946=YES' parameter to the PostGIS db

$
0
0

I'm trying to convert multipolygon to in the right-hand format so that Leaflet can use it on the front end.

ogr2ogr -nln [target_table] -nlt PROMOTE_TO_MULTI -lco GEOMETRY_NAME=geom -lco FID=gid -lco RFC7946=YES -lco PRECISION=NO Pg:"dbname=[taget_db] host=localhost user=spatial_user port=5432" source_sub_counties.shp

Import is done but there is warning:

Warning 6: dataset Pg:dbname=[target_db} host=localhostuser=spatial_user port=5432 does not support layer creation optionRFC7946

How to fix this issue ?

Versions:

  • GDAL 3.4.1, released 2021/12/27
  • PostgresSQL version 14
  • Ubuntu Linux 22/04

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images