[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:00:05 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 rsbivand):
{{{rgdal::ogrDrivers[,1]}}} is:
{{{
> ogrDrivers()[,1]
[1] "AeronavFAA" "AmigoCloud" "ARCGEN" "AVCBin"
[5] "AVCE00" "BNA" "CAD" "Carto"
[9] "Cloudant" "CouchDB" "CSV" "CSW"
[13] "DGN" "DXF" "EDIGEO" "ElasticSearch"
[17] "ESRI Shapefile" "Geoconcept" "GeoJSON" "Geomedia"
[21] "GeoRSS" "GFT" "GML" "GMLAS"
[25] "GPKG" "GPSBabel" "GPSTrackMaker" "GPX"
[29] "HTF" "HTTP" "Idrisi" "Interlis 1"
[33] "Interlis 2" "JML" "KML" "MapInfo File"
[37] "Memory" "MSSQLSpatial" "NAS" "netCDF"
[41] "ODBC" "ODS" "OGR_GMT" "OGR_PDS"
[45] "OGR_SDTS" "OGR_VRT" "OpenAir" "OpenFileGDB"
[49] "OSM" "PCIDSK" "PDF" "PGDUMP"
[53] "PGeo" "PLSCENES" "PostgreSQL" "REC"
[57] "S57" "SEGUKOOA" "SEGY" "Selafin"
[61] "SQLite" "SUA" "SVG" "SXF"
[65] "TIGER" "UK .NTF" "VDV" "VFK"
[69] "Walk" "WAsP" "WFS" "XLS"
[73] "XLSX" "XPlane"
}}}
from (rgdal/src/ogrdrivers.cpp) line 71:
{{{
SET_STRING_ELT(VECTOR_ELT(ans, 0), i,
COPY_TO_USER_STRING(poDriver->GetName()));
}}}
In 7.2.2, the matches work in rgrass7:::.read_vect_non_plugin, line 80 in
rgrass7/R/vect_link.R:
{{{
ogrD <- rgdal::ogrDrivers()
ogrDw <- gsub(" ", "_", ogrD$name[ogrD$write])
# guess GRASS v.out.ogr capability from rgdal
ogrDGRASS <- execGRASS("v.in.ogr", flags=ifelse(ignore.stderr, c("f",
"quiet"), "f"), intern=TRUE,
ignore.stderr=ignore.stderr)
ogrDGRASSs <- gsub(" ", "_", sapply(strsplit(ogrDGRASS, ": "), "[",
2))
candDrivers <- gsub(" ", "_", sort(intersect(ogrDGRASSs, ogrDw)))
}}}
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"
[5] "Arc/Info_Generate"
[6] "Atlas_BNA"
[7] "AutoCAD_Driver"
[8] "AutoCAD_DXF"
[9] "Carto"
[10] "Cloudant_/_CouchDB"
[11] "Comma_Separated_Value_(.csv)"
[12] "CouchDB_/_GeoCouch"
[13] "Czech_Cadastral_Exchange_Data_Format"
[14] "Elastic_Search"
[15] "EPIInfo_.REC_"
[16] "ESRI_FileGDB"
[17] "ESRI_Personal_GeoDatabase"
[18] "ESRI_Shapefile"
[19] "French_EDIGEO_exchange_format"
[20] "Geoconcept"
[21] "Geography_Markup_Language_(GML)"
[22] "Geography_Markup_Language_(GML)_driven_by_application_schemas"
...
[63] "SEG-Y"
[64] "Selafin"
[65] "SQLite_/_Spatialite"
[66] "Storage_and_eXchange_Format"
[67] "Tim_Newport-Peace's_Special_Use_Airspace_Format"
[68] "U.S._Census_TIGER/Line"
}}}
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.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3425#comment:2>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list