Hi Andrea,

How can I set the encoding when exporting from postgres to SHP using the OGR
?


Ricardo

2010/10/23 Ricardo Bayley <[email protected]>

> Thanks Andrea !
>
> Using ogr2ogr does work properly.
>
>
>
> 2010/10/23 Andrea Peri 2007 <[email protected]>
>
>  Hi fellows,
>>>
>>> I am loading a postgis Layer and then saving it to shapefile. Job gets
>>> done.
>>> BUT, data type character varying, or character, is always set to 255 CHAR
>>> in
>>> the shapefile.
>>> Therefore, my dbf ends up being a huge table. Is this some bug or I am
>>> simply doing something wrong ?
>>>
>>> Any thoughts appreciated
>>>
>>>
>>> Ricardo
>>>
>>
>> The exporting procedure (save as) of qgis do this.
>>
>> But if you use og2ogr (from gdal) to export from postgres to shapefile the
>> string field was exactly the needed.
>> I test with the trunk version of gdal.
>>
>> Regards,
>>
>> Andrea Peri
>>
>>
>> _______________________________________________
>> Qgis-user mailing list
>> [email protected]
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
_______________________________________________
Qgis-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to