[GRASS-dev] prefer GeoPackage over Shapefile
Even Rouault
even.rouault at spatialys.com
Wed Oct 18 05:36:37 PDT 2017
On mercredi 18 octobre 2017 12:28:36 CEST Jachym Cepicky wrote:
> Hi,
>
> I would like to submit following commit to GRASS GIS - master
>
> Index: vector/v.out.ogr/args.c
> ===================================================================
> --- vector/v.out.ogr/args.c (revision 71566)
> +++ vector/v.out.ogr/args.c (working copy)
> @@ -32,7 +32,7 @@
> options->format->type = TYPE_STRING;
> options->format->required = YES;
> options->format->multiple = NO;
> - options->format->answer = "ESRI_Shapefile";
> + options->format->answer = "DPKG";
> options->format->options = OGR_list_write_drivers();
> options->format->description = _("Data format to write");
>
>
>
> any objections?
>
I'm not a GRASS dev, but do I have a major objection... There's a typo in your
patch ;-) Should be GPKG
Joke aside, the SQLite dependency in GDAL builds is optional, so in theory you
could have a GDAL build without SQLite/GPKG support. But this is really
unlikely in practice as no sane packager would do that. Perhaps checking if
the GPKG driver is there would be safer, and if not fallback to good old
shapefile.
Even
--
Spatialys - Geospatial professional services
http://www.spatialys.com
More information about the grass-dev
mailing list