Opened 15 years ago
Closed 6 years ago
#1065 closed defect (wontfix)
v.in.mapgen fails to load coastline from NOAA's National Geophysical Data Center
Reported by: | vesnikos | Owned by: | |
---|---|---|---|
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 by , 15 years ago
Cc: | added |
---|
follow-up: 3 comment:2 by , 15 years ago
comment:3 by , 10 years ago
Priority: | major → normal |
---|
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 by , 10 years ago
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 by , 9 years ago
Milestone: | 7.0.0 → 7.0.5 |
---|
comment:6 by , 8 years ago
Milestone: | 7.0.5 → 7.0.6 |
---|
comment:7 by , 7 years ago
Milestone: | 7.0.6 → 7.0.7 |
---|
comment:8 by , 6 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
No activity for a long time. Closing. Feel free to reopen if needed.
Replying to vesnikos:
Fixed in r42228.
I will let this for someone who knows the input format.