Opened 10 years ago

Closed 17 months ago

#1065 closed defect (wontfix)

v.in.mapgen fails to load coastline from NOAA's National Geophysical Data Center

Reported by: vesnikos Owned by: grass-dev@…
Priority: normal Milestone: 7.0.7
Component: Vector Version: svn-trunk
Keywords: v.in.mapgen, mapgen, NOAA Cc: hamish
CPU: x86-32 Platform: Linux

Description

when im trying to input a costline in mapgen format taken from the said site, I encounter the following:

v.in.mapgen input=/home/nikos/datagis/coastline/6888.dat output=coastline

Traceback (most recent call last):
  File "/home/nikos/grass7/grass-7.0.svn/scripts/v.in.mapgen", line 198, in <module>
    main()
  File "/home/nikos/grass7/grass-7.0.svn/scripts/v.in.mapgen", line 129, in main
    outf.write(" %.8f %.8f %.8f\n" % tuple(map(float,point)))
ValueError: invalid literal for float(): #
GRASS 7.0.svn (wsg84):~/grass7/bin > v.in.mapgen  input=/home/nikos/datagis/coastline/6888.dat output=coastline 
Traceback (most recent call last):
  File "/home/nikos/grass7/grass-7.0.svn/scripts/v.in.mapgen", line 198, in <module>
    main()
  File "/home/nikos/grass7/grass-7.0.svn/scripts/v.in.mapgen", line 170, in main
    user = user, host = host)
  File "/usr/lib/python2.6/string.py", line 172, in substitute
    return self.pattern.sub(convert, self.template)
  File "/usr/lib/python2.6/string.py", line 162, in convert
    val = mapping[named]
KeyError: 'proj'

with the following command:

v.in.mapgen -f input=/home/nikos/datagis/coastline/6888.dat output=coastline

Traceback (most recent call last):
  File "/home/nikos/grass7/grass-7.0.svn/scripts/v.in.mapgen", line 198, in <module>
    main()
  File "/home/nikos/grass7/grass-7.0.svn/scripts/v.in.mapgen", line 129, in main
    outf.write(" %.8f %.8f %.8f\n" % tuple(map(float,point)))
ValueError: invalid literal for float(): #

The file can be reached at : http://hotfile.com/dl/42431518/c2e8072/6888.dat.gz.html (~780 kb)

Change History (8)

comment:1 Changed 10 years ago by hamish

Cc: hamish added

comment:2 in reply to:  description ; Changed 10 years ago by martinl

Replying to vesnikos:

when im trying to input a costline in mapgen format taken from the said site, I encounter the following:

v.in.mapgen input=/home/nikos/datagis/coastline/6888.dat output=coastline

Fixed in r42228.

with the following command:

v.in.mapgen -f input=/home/nikos/datagis/coastline/6888.dat output=coastline

I will let this for someone who knows the input format.

comment:3 in reply to:  2 Changed 6 years ago by wenzeslaus

Priority: majornormal

Replying to martinl:

Replying to vesnikos:

with the following command:

v.in.mapgen -f input=/home/nikos/datagis/coastline/6888.dat output=coastline

I will let this for someone who knows the input format.

Is this still an issue? The file cannot be reached anymore. Is there some sample file or documentation if somebody would like to look at this?

Downgrading priority for old inactive ticket.

comment:4 Changed 5 years ago by hamish

The NOAA shoreline extractor site is here:

http://www.ngdc.noaa.gov/mgg/shorelines/shorelines.html http://www.ngdc.noaa.gov/mgg/coast/getcoast.html

It tries to get you to download Windows-only software instead of the online version for some reason, but the above site still works. v.in.gsghs (gshhg) in addons is the modern version of things.

note v.in.mapgen does the background work for v.in.lines, so not an unimportant module. The format is quite old, but old enough that it turns up every now and then in odd places, since it is a simple text format and at one point was open and widely supported.

If anyone can find a non-working sample I still remember enough about it to (probably) get the python version working. (I assume the shell script version from G6.4 is still ok?)

Hamish

comment:5 Changed 4 years ago by martinl

Milestone: 7.0.07.0.5

comment:6 Changed 3 years ago by neteler

Milestone: 7.0.57.0.6

comment:7 Changed 2 years ago by neteler

Milestone: 7.0.67.0.7

comment:8 Changed 17 months ago by martinl

Resolution: wontfix
Status: newclosed

No activity for a long time. Closing. Feel free to reopen if needed.

Note: See TracTickets for help on using tickets.