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=localhost user=spatial_user port=5432 does not support layer creation option RFC7946
How to fix this issue ?
Versions:
- GDAL 3.4.1, released 2021/12/27
- PostgresSQL version 14
- Ubuntu Linux 22/04