Opened 16 years ago

Last modified 9 years ago

#222 closed defect

v.in gns broken in grass 7.0 trunk — at Version 7

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 neteler)

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

Change History (8)

comment:1 by neteler, 16 years ago

Description: modified (diff)

Please post the URL to ce.txt.

in reply to:  1 comment:2 by gisix, 16 years ago

Owner: changed from grass-dev@… to gisix
Status: newassigned

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:3 by neteler, 16 years ago

Cc: grass-dev@… added

please keep grass-dev in the loop.

in reply to:  3 comment:4 by gisix, 16 years ago

Replying to neteler:

please keep grass-dev in the loop.

right.

comment:5 by neteler, 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

by neteler, 16 years ago

Attachment: v_in_gns.diff added

GNS format changed patch

in reply to:  1 comment:6 by gisix, 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 neteler, 16 years ago

Description: modified (diff)
Milestone: 6.3.17.0.0

(milestone tag fixed)

I am not sure how to address this problem if the GNS format is a moving target...

Markus

Note: See TracTickets for help on using tickets.