![]() | GRASS - Problem importing world_borders shape |
|
15 Feb 2009, 15:18
Michael Neubauer (3 posts) |
Hi Gary, I follow the instructions to import a shape-file to GRASS and it does not work with your world_borders file! The following error-message appears, when I enter the v.in.ogr prompt for the world_borders ” ERROR: Cannot create table: create table Weltgrenze2 (cat integer, CAT
double precision, FIPS_CNTRY varchar ( 80 ), CNTRY_NAME varchar ( 80
), AREA double precision, POP_CNTRY double precision) So can you please help me what is the problem? Maybe it is also a problem with the shape-file…? Thank you very much |
|
16 Feb 2009, 08:20
Gary Sherman (7 posts) |
The problem is the shapefile has an attribute named ‘CAT’. GRASS doesn’t seem to like it when it encounters it in the shapefile. The easiest solution is to open the DBF for the shapefile in something like Open Office or Excel and change the field name. You can also edit the field name with a hex editor if you’re careful. Don’t change the length, just the name (e.g. change it to ‘CAR’). |
|
16 Feb 2009, 18:23
Michael Neubauer (3 posts) |
Thanks for the answer Gary, bye |
| You must be logged in to comment |

