Hi Andrea,<div><br></div><div>How can I set the encoding when exporting from postgres to SHP using the OGR ?</div><div><br></div><div><br></div><div>Ricardo<br><br><div class="gmail_quote">2010/10/23 Ricardo Bayley <span dir="ltr"><<a href="mailto:ricardo.bayley@gmail.com">ricardo.bayley@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks Andrea !<div><br></div><div>Using ogr2ogr does work properly.</div><div><br></div><div><br><br><div class="gmail_quote">
2010/10/23 Andrea Peri 2007 <span dir="ltr"><<a href="mailto:aperi2007@gmail.com" target="_blank">aperi2007@gmail.com</a>></span><div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi fellows,<br>
<br>
I am loading a postgis Layer and then saving it to shapefile. Job gets done.<br>
BUT, data type character varying, or character, is always set to 255 CHAR in<br>
the shapefile.<br>
Therefore, my dbf ends up being a huge table. Is this some bug or I am<br>
simply doing something wrong ?<br>
<br>
Any thoughts appreciated<br>
<br>
<br>
Ricardo<br>
</blockquote>
<br>
The exporting procedure (save as) of qgis do this.<br>
<br>
But if you use og2ogr (from gdal) to export from postgres to shapefile the string field was exactly the needed.<br>
I test with the trunk version of gdal.<br>
<br>
Regards,<br>
<br>
Andrea Peri<br>
<br>
<br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div></div></div><br></div>
</blockquote></div><br></div>