#1065: v.in.mapgen fails to load coastline from NOAA's National Geophysical Data
Center
---------------------------------------+------------------------------------
Reporter: vesnikos | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Keywords: v.in.mapgen, mapgen, NOAA | Platform: Linux
Cpu: x86-32 |
---------------------------------------+------------------------------------
when im trying to input a costline in mapgen format taken from the said
site, I encounter the following:
{{{
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(): #
}}}
#1065: v.in.mapgen fails to load coastline from NOAA's National Geophysical Data
Center
-----------------------+----------------------------------------------------
Reporter: vesnikos | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Resolution: | Keywords: v.in.mapgen, mapgen, NOAA
Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Comment (by martinl):
Replying to [ticket:1065 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.
#1065: v.in.mapgen fails to load coastline from NOAA's National Geophysical Data
Center
---------------------------------------+------------------------------------
Reporter: vesnikos | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: Vector | Version: svn-trunk
Keywords: v.in.mapgen, mapgen, NOAA | Platform: Linux
Cpu: x86-32 |
---------------------------------------+------------------------------------
Changes (by wenzeslaus):
* priority: major => normal
Comment:
Replying to [comment:2 martinl]:
> Replying to [ticket:1065 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?
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?)