[GRASS-dev] [GRASS GIS] #3428: Set OGC GeoPackage as default export format

GRASS GIS trac at osgeo.org
Sun Oct 22 11:35:55 PDT 2017


#3428: Set OGC GeoPackage as default export format
--------------------------+-------------------------
  Reporter:  jachym       |      Owner:  grass-dev@…
      Type:  task         |     Status:  new
  Priority:  normal       |  Milestone:  7.4.0
 Component:  Vector       |    Version:  svn-trunk
Resolution:               |   Keywords:  v.out.ogr
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+-------------------------

Comment (by mmetz):

 Replying to [comment:2 neteler]:
 > How to deal with this packaging case?
 >
 > On Wed, Oct 18, 2017 at 2:36 PM, Even Rouault wrote:
 > > 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.
 >
 > ... hence add a #ifdef condition to the parser default?

 You can add drivers to and remove drivers from your current GDAL version
 without recompiling GRASS. All GDAL driver checks are done in GRASS on
 run-time, but #ifdef conditions are evaluated only on compile time. That
 means, at run-time, every time v.out.ogr is invoked, you would need to
 check if the "GPKG" driver is available and set the default answer for the
 format option of v.out.ogr accordingly.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3428#comment:3>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list