[GRASS-dev] [GRASS GIS] #3425: regression in v.in.ogr -f 7.3 7 Oct (possibly earlier)
GRASS GIS
trac at osgeo.org
Wed Oct 11 03:19:12 PDT 2017
#3425: regression in v.in.ogr -f 7.3 7 Oct (possibly earlier)
--------------------------+-------------------------
Reporter: rsbivand | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone:
Component: Vector | Version: svn-trunk
Resolution: | Keywords:
CPU: Unspecified | Platform: Unspecified
--------------------------+-------------------------
Comment (by mmetz):
Replying to [comment:2 rsbivand]:
> {{{rgdal::ogrDrivers[,1]}}} is:
>
> {{{
> > ogrDrivers()[,1]
> [1] "AeronavFAA" "AmigoCloud" "ARCGEN" "AVCBin"
> [...]
> }}}
>
[...]
>
> In 7.3, ogrDGRASSs is:
>
> {{{
> Browse[2]> sort(ogrDGRASSs)
> [1] "Aeronav_FAA"
> [2] "AmigoCloud"
> [3] "Arc/Info_Binary_Coverage"
> [4] "Arc/Info_E00_(ASCII)_Coverage"
> [...]
> }}}
in 7.3, v.in.ogr -f is
{{{
AeronavFAA (ro): Aeronav FAA
AmigoCloud (rw+): AmigoCloud
ARCGEN (ro): Arc/Info Generate
AVCBin (ro): Arc/Info Binary Coverage
[...]
}}}
>
> from vector/v.in.ogr/main.c line 404
>
> {{{
> fprintf(stdout, " %s (%s): %s\n",
> GDALGetDriverShortName(hDriver),
> pszRWFlag, GDALGetDriverLongName(hDriver));
> }}}
>
>
> where {{{GDALGetDriverShortName(hDriver)}}} calls {{{GDALDriver
*>(hDriver)->GetDescription()}}}, which looks like my
{{{poDriver->GetDescription()}}}. I can't see why the string values differ
for the same GDAL.
The string values do not differ for the same GDAL. You need to use the
short name. With `gdalinfo --formats`, `ogrinfo --formats`, `v.in.ogr -f`,
the first item is (was always) the short name.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3425#comment:3>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list