#222 closed defect (fixed)
v.in gns broken in grass 7.0 trunk
Reported by: | gisix | Owned by: | gisix |
---|---|---|---|
Priority: | blocker | Milestone: | 7.0.0 |
Component: | Vector | Version: | svn-trunk |
Keywords: | v.in.gns | Cc: | grass-dev@… |
CPU: | x86-32 | Platform: | Linux |
Description (last modified by )
v.in.gns aborts when applied to a country file:
GRASS 7.0.svn (wgs84_4326):~/gns > v.in.gns --overwrite file=ce.txt vect=sri Converted 36554 place names. WARNUNG: Vector map <sri> already exists and will be overwritten Scanning input for column types... Current row: 'RC;UFI;UNI;LAT;LONG;DMS_LAT;DMS_LONG;MGRS;JOG;FC;DSG;PC;CC1;ADM1;ADM2;POP;ELEV;CC2;NT;LC;SHORT_FORM;GENERIC;SORT_NAME;FULL_NAME;FULL_NAME_ND;MODIFY_DATE' FEHLER: Unparsable latitude value in column <3>: LAT FEHLER: Unable to open vector map <sri@gns> on topology level 2
Attachments (1)
Change History (12)
follow-ups: 2 6 comment:1 by , 16 years ago
Description: | modified (diff) |
---|
comment:2 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Replying to neteler:
Please post the URL to ce.txt.
The input file is located here: http://earth-info.nga.mil/gns/html/cntyfile/ce.zip
comment:5 by , 16 years ago
Apparently they changed the GNS format :( Attached a hacked patch.
Note that geonames.org most likely provides better data (AFAIK they include GNS).
Markus
comment:6 by , 16 years ago
Replying to neteler:
Please post the URL to ce.txt.
The patch fixes the problems with the sri lanka file (ce.txt) yet fails for thailand: http://earth-info.nga.mil/gns/html/cntyfile/th.zip
comment:7 by , 16 years ago
Description: | modified (diff) |
---|---|
Milestone: | 6.3.1 → 7.0.0 |
(milestone tag fixed)
I am not sure how to address this problem if the GNS format is a moving target...
Markus
comment:8 by , 11 years ago
Priority: | major → normal |
---|
No one has touched this report for 5 years and the code has not changed significantly.
I just tried with 8 different gns country files and only 2 worked.
As this is only a convenience script around v.in.ascii, I propose to deprecate this module and take it out of trunk and/or move it to addons.
In any case, while waiting for opinions, I'm downgrading this to normal.
Moritz
follow-up: 10 comment:9 by , 10 years ago
Priority: | normal → blocker |
---|
I agree that v.in.gns should be moved to Addons (superseded by v.in.geonames).
See http://grasswiki.osgeo.org/wiki/GRASS_7_ideas_collection#Dead_code_cleanup
follow-up: 11 comment:10 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Replying to neteler:
I agree that v.in.gns should be moved to Addons (superseded by v.in.geonames).
See http://grasswiki.osgeo.org/wiki/GRASS_7_ideas_collection#Dead_code_cleanup
I fixed it with the last version of GNS in r62900, I'm able to load all the txt files inside the th.zip.
I also moves the script to addons r62902 (it is possible to install it using g.extension).
Please post the URL to ce.txt.