<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi, whats the default behaviour of ogr2ogr when zfield specied unexistent field?<div><br></div><div>I try run:<br><div>ogr2ogr -f "PostgreSQL" PG:"host=localhost user=postgres dbname=database password=postgres" -zfield fakeField file.shp</div><div><div><br></div><div>file.shp with fields:</div><div>param1 : text</div><div>param2 : integer</div><div>param3 : geom (X Y Z)</div><div><br></div><div>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...</div><div><br></div><div>gdalinfo --version</div><div>GDAL 1.10.1, released 2013/08/26</div><div><br></div><div>postgis version:</div><div>"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"</div><div><br></div><div>postgres version:</div><div>"PostgreSQL 9.3.10 on x86_64-unknown-linux-gnu, compiled by gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2, 64-bit"</div><div><br></div></div></div>                                          </div></body>
</html>