Opened 6 years ago

Closed 6 years ago

#7201 closed enhancement (fixed)

GeoPackage: ENABLE_GPKG_OGR_CONTENTS is always enabled; should be made optional

Reported by: molnar Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: 2.2.0
Severity: normal Keywords:
Cc:

Description

gdal/ogr/ogrsf_frmts/ogr_geopackage.h, defines ENABLE_GPKG_OGR_CONTENTS (in GDAL 2.2+).

It would be nice if this was in GDALmake.opt (or wherever it makes sense) instead of in the source file, so that disabling it would be easier (and more obvious) for third parties who would prefer not to compile this feature (rather than having to modify the actual source).

In case the motivation is interesting: Triggers on insert/delete aren't free, and also some GDAL builders may prefer not to support metadata tables that are not part of the format specification.

Change History (3)

comment:1 by molnar, 6 years ago

Summary: GeoPackage: ENABLE_GPKG_OGR_CONTENTS is always enabledGeoPackage: ENABLE_GPKG_OGR_CONTENTS is always enabled; should be made optional

comment:2 by Jukka Rahkonen, 6 years ago

Wouldn't it be better to have that as a creation option in the gpkg vector driver?

comment:3 by Even Rouault, 6 years ago

Resolution: fixed
Status: newclosed

In 41276:

GPKG doc: document ADD_GPKG_OGR_CONTENTS creation option (fixes #7201)

Note: See TracTickets for help on using tickets.