Hello

I use GDAL(https://github.com/OSGeo/gdal) with python bindings. I am
importing GeoJSON to PostgreSQL (PostGIS). I know how to import only
geometry to the table. I dont know how to import geometry with others
columns to one table. I need to import geometry to "wkt_geometry" column
and his name to "name" column.
Can you help me please?

Here is how I import only geometry column:
* ogr2ogr.main(["", "-f", "PostgreSQL", "-s_srs", * *"+proj=longlat
+datum=WGS84 +no_defs", "-t_srs", "EPSG:3857", "PG:dbname='test'
host='127.0.0.1' port='5432' user='user1' password='password1'", "-nln",
"table1"])*

Thanks

Best Regards
Peter
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to