[GRASS-dev] Re: [GRASS GIS] #577: v.in.ogr: imported GPX file
results in N=0, W=0
GRASS GIS
trac at osgeo.org
Wed May 6 09:06:17 EDT 2009
#577: v.in.ogr: imported GPX file results in N=0, W=0
---------------------+------------------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: Vector | Version: svn-develbranch6
Resolution: | Keywords: v.in.ogr, gpx
Platform: Linux | Cpu: x86-32
---------------------+------------------------------------------------------
Comment (by mmetz):
Replying to [comment:4 hamish]:
> Replying to [comment:3 mmetz]:
> > Hamish, can you do a bit more testing? Are the extends still wrong
> > * after rebuilding topology with v.build?
>
> yes
>
> hmmm.... nodes 1 & 2:
>
> {{{
> G65> v.build gps_trk_gpx_import option=dump
> ---------- TOPOLOGY DUMP ----------
> N,S,E,W,T,B: 0.000000, -46.055889, 170.724047, 0.000000, 0.000000,
0.000000
> Nodes (3838 nodes, alive + dead ):
> node = 1, n_lines = 1, xy = 0.000000, 0.000000
> line = 1, type = 2, angle = -9.000000
> node = 2, n_lines = 1, xy = 0.000000, 0.000000
> line = -1, type = 2, angle = -9.000000
> ...
> }}}
>
There must be one point each at these two nodes because n_lines = 1, angle
= -9.000000 (point or degenerate line/boundary). If there is really no
point with x = 0 y = 0 int he vector this looks very much like a bug in
the vector libs.
> maybe someone importing many similar maps expects layer 4 to always to
be the same regardless of if layer 3 for one of the maps has values or
not?
OK, forget about skipping empty layers, that would have been a workaround
only anyway.
Markus M
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/577#comment:6>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list