[GRASS-user] Importing ESRI Shapefile might cause attribute data corruption

JFYI
GRASS is also hit hard by recent GDAL/OGR ESRI Shapefile encoding
saga. Importing ESRI Shapefile with non-latin text most likely will
corrupt Your text.
Symptoms - even when setting correct encoding for wxgui in
preferences, non-latin letters are shown grabbled and doubled (two
garbage symbols instead of a single letter).
Solution - create a .cpg file and pray or downgrade GDAL/OGR on
pre-1.9.0 version (not an option for WinGRASS users).

Note - if Your data are corrupted during import with v.in.ogr, there's
no easy way how to correct it.*
* find/replace in LO Calc might do the trick for DBF file.

Have a nice day.
Maris.

Maris,

This sounds a like a truly horrible problem.
Thanks for raising awareness of this.

Are there any other sources on the web where
it would be possible to get more information
about this?

Have you tried downgrading only the Shapefile
drivers in the GDAL 1.9.x release?

Best,

Ben

On 02/15/2013 05:01 PM, Maris Nartiss wrote:

JFYI
GRASS is also hit hard by recent GDAL/OGR ESRI Shapefile encoding
saga. Importing ESRI Shapefile with non-latin text most likely will
corrupt Your text.
Symptoms - even when setting correct encoding for wxgui in
preferences, non-latin letters are shown grabbled and doubled (two
garbage symbols instead of a single letter).
Solution - create a .cpg file and pray or downgrade GDAL/OGR on
pre-1.9.0 version (not an option for WinGRASS users).

Note - if Your data are corrupted during import with v.in.ogr, there's
no easy way how to correct it.*
* find/replace in LO Calc might do the trick for DBF file.

Have a nice day.
Maris.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Benjamin Ducke
{*} Geospatial Consultant
{*} GIS Developer

   benducke@fastmail.fm

Hi,

2013/2/15 Maris Nartiss <maris.gis@gmail.com>:

JFYI
GRASS is also hit hard by recent GDAL/OGR ESRI Shapefile encoding
saga. Importing ESRI Shapefile with non-latin text most likely will
corrupt Your text.

take a look on new parameter 'encoding' in `v.in.ogr` [1]. This could help.

...
v.in.ogr dsn=/home/user/shape_data/test_shape.shp output=grass_map
encoding=cp1250
...

Martin

[1] http://grass.osgeo.org/grass70/manuals/v.in.ogr.html

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa