[GRASS-dev] Re: [GRASS GIS] #577: v.in.ogr: imported GPX file
results in N=0, W=0
GRASS GIS
trac at osgeo.org
Thu Apr 30 08:43:35 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 hamish):
a shapefile from ogr2ogr gives ok extent.
(another bug is stopping me importing that, duplicate column names)
{{{
$ ogrinfo -ro -al track_points.shp
INFO: Open of `track_points.shp'
using driver `ESRI Shapefile' successful.
Layer name: track_points
Geometry: Point
Feature Count: 4532
Extent: (170.168993, -46.055889) - (170.724047, -45.742630)
Layer SRS WKT:
GEOGCS["GCS_WGS_1984",
DATUM["WGS_1984",
...
}}}
aaaah, here is why:
{{{
INFO: Open of `waypoints.shp'
using driver `ESRI Shapefile' successful.
Layer name: waypoints
Geometry: Point
Feature Count: 0
Extent: (0.000000, 0.000000) - (0.000000, 0.000000)
Layer SRS WKT:
...
}}}
the GPX import creates 5 layers:
{{{
route_points
routes
track_points
tracks
waypoints
}}}
but my GPX file only has tracks in it. so some of the other layers have no
extent (and no features), but v.info picks up the 0.0 anyway.
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/577#comment:2>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list