[QGIS-trac] [Quantum GIS] #2571: Path to GRASS vector map loses
"vector/" in path string
Quantum GIS
qgis at qgis.org
Sun Mar 21 07:29:32 EDT 2010
#2571: Path to GRASS vector map loses "vector/" in path string
---------------------------------------------------------+------------------
Reporter: neteler | Owner: rugginoso
Type: bug | Status: new
Priority: critical: causes crash or data corruption | Milestone: Version 1.5.0
Component: GRASS | Version: HEAD
Keywords: vector | Platform_version:
Platform: All | Must_fix: Yes
Status_info: 0 |
---------------------------------------------------------+------------------
{{{
To access Quantum GIS environment from this console
use qgis.utils.iface object (instance of QgisInterface class).
>>> iface=qgis.utils.iface
>>> map=iface.mapCanvas()
>>> print map.layer(0).source()
/home/neteler/grassdata/patUTM32/mymapset/box/1_polygon
>>>
}}}
the correct path to a GRASS vector layer would be including "vector/" in
the string:
{{{
/home/neteler/grassdata/patUTM32/mymapset/vector/box/1_polygon
}}}
Note: for raster layers it is ok:
{{{
>>> print map.layer(1).source()
/home/neteler/grassdata/patUTM32/neteler/cellhd/elevation
}}}
The omission of "vector/" in the string leads to troubles in ogr2ogr
called by QGIS plugins.
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2571>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list