diff --git a/plugins/input/ogr/ogr_datasource.cpp b/plugins/input/ogr/ogr_datasource.cpp index 2c0d90aac..f50a9614c 100644 --- a/plugins/input/ogr/ogr_datasource.cpp +++ b/plugins/input/ogr/ogr_datasource.cpp @@ -330,7 +330,6 @@ void ogr_datasource::init(mapnik::parameters const& params) const std::string fld_name = fld->GetNameRef(); const OGRFieldType type_oid = fld->GetType(); - switch (type_oid) { case OFTInteger: diff --git a/plugins/input/ogr/ogr_featureset.cpp b/plugins/input/ogr/ogr_featureset.cpp index 1a50024a0..40331d2d7 100644 --- a/plugins/input/ogr/ogr_featureset.cpp +++ b/plugins/input/ogr/ogr_featureset.cpp @@ -125,6 +125,9 @@ feature_ptr ogr_featureset::next() switch (type_oid) { case OFTInteger: +#if GDAL_VERSION_MAJOR >= 2 + case OFTInteger64: +#endif { feature->put( fld_name, poFeature->GetFieldAsInteger(i)); break; @@ -144,6 +147,9 @@ feature_ptr ogr_featureset::next() } case OFTIntegerList: +#if GDAL_VERSION_MAJOR >= 2 + case OFTInteger64List: +#endif case OFTRealList: case OFTStringList: case OFTWideStringList: // deprecated !