OGR : support reading OFTInteger64/OFTInteger64List

This commit is contained in:
artemp 2015-06-16 11:36:17 +02:00
parent 0a24e8cfca
commit 8bf82b717e
2 changed files with 6 additions and 1 deletions

View file

@ -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:

View file

@ -125,6 +125,9 @@ feature_ptr ogr_featureset::next()
switch (type_oid)
{
case OFTInteger:
#if GDAL_VERSION_MAJOR >= 2
case OFTInteger64:
#endif
{
feature->put<mapnik::value_integer>( 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 !