GDAL
December 28, 2009, 12:54pm
1
#847: v.out.ogr format=GMT ignores dsn=
----------------------------+-----------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: Vector | Version: svn-releasebranch64
Keywords: v.out.ogr, GMT | Platform: Linux
Cpu: x86-32 |
----------------------------+-----------------------------------------------
Hi,
I am just writing up a little vector export example for the wiki* and
found that no matter what I set v.out.ogr's dsn= or layer= to, the output
file name is always whatever the input= map name was with .gmt tacked onto
the end of it.
using GDAL/OGR version 1.5.2 with grass 6.5.
[*] http://grass.osgeo.org/wiki/GMT#Example
?,
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/847> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
December 28, 2009, 7:30pm
2
#847: v.out.ogr format=GMT ignores dsn=
---------------------+------------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: Vector | Version: svn-releasebranch64
Resolution: | Keywords: v.out.ogr, GMT
Platform: Linux | Cpu: x86-32
---------------------+------------------------------------------------------
Comment (by mmetz):
Using GDAL/OGR version 1.6.0 with grass 6.5, I can confirm that for the
dsn option, but not for the olayer option. If olayer=test is given, the
output file is test.gmt. The dsn option should be the directory where the
.gmt file is placed? Since the dsn option is working for other OGR output
formats, this is probably a feature/bug of GDAL/OGR specific to the GMT
format.
Markus M
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/847#comment:1> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
December 28, 2009, 7:53pm
3
#847: v.out.ogr format=GMT ignores dsn=
----------------------+-----------------------------------------------------
Reporter: hamish | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: closed
Priority: normal | Milestone: 6.4.0
Component: Vector | Version: svn-releasebranch64
Resolution: invalid | Keywords: v.out.ogr, GMT
Platform: Linux | Cpu: x86-32
----------------------+-----------------------------------------------------
Changes (by hamish):
* status: new => closed
* resolution: => invalid
Comment:
ah, I was trying layer= not olayer=. User error.
this works:
{{{
v.out.ogr in=roads dsn=foo olayer=bar format=GMT type=line
}}}
(dsn= is ignored and bar.gmt is written)
I'm not sure of the semantics of dsn= and if it's ok to ignore it or not.
if someone feels it's important feel free to reopen this bug.
Hamish
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/847#comment:2> ;
GRASS GIS <http://grass.osgeo.org >