[gdal-dev] ogr2ogr zfield behavior

Fde_G . federicogodan2000 at hotmail.com
Tue Jan 12 12:23:28 PST 2016


Hi, whats the default behaviour of ogr2ogr when zfield specied unexistent field?
I try run:
ogr2ogr -f "PostgreSQL" PG:"host=localhost user=postgres dbname=database password=postgres" -zfield fakeField file.shp
file.shp with fields:param1 : textparam2 : integerparam3 : geom (X Y Z)
Testing, I can see that the shp is imported to the database, creating a table with geometry type GeometryZ with the correct Z value included in geom...
gdalinfo --versionGDAL 1.10.1, released 2013/08/26
postgis version:"POSTGIS="2.1.2 r12389" GEOS="3.4.2-CAPI-1.8.2 r3921" PROJ="Rel. 4.8.0, 6 March 2012" GDAL="GDAL 1.10.1, released 2013/08/26" LIBXML="2.9.1" LIBJSON="UNKNOWN" RASTER"
postgres version:"PostgreSQL 9.3.10 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2, 64-bit"
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20160112/f44a0333/attachment.html>


More information about the gdal-dev mailing list