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

2013-02-18 Thread Benjamin Ducke

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

  bendu...@fastmail.fm
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


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

2013-02-18 Thread Martin Landa
Hi,

2013/2/15 Maris Nartiss maris@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
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


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

2013-02-15 Thread Maris Nartiss
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