OGR : support reading OFTInteger64/OFTInteger64List
This commit is contained in:
parent
0a24e8cfca
commit
8bf82b717e
2 changed files with 6 additions and 1 deletions
|
@ -330,7 +330,6 @@ void ogr_datasource::init(mapnik::parameters const& params)
|
||||||
|
|
||||||
const std::string fld_name = fld->GetNameRef();
|
const std::string fld_name = fld->GetNameRef();
|
||||||
const OGRFieldType type_oid = fld->GetType();
|
const OGRFieldType type_oid = fld->GetType();
|
||||||
|
|
||||||
switch (type_oid)
|
switch (type_oid)
|
||||||
{
|
{
|
||||||
case OFTInteger:
|
case OFTInteger:
|
||||||
|
|
|
@ -125,6 +125,9 @@ feature_ptr ogr_featureset::next()
|
||||||
switch (type_oid)
|
switch (type_oid)
|
||||||
{
|
{
|
||||||
case OFTInteger:
|
case OFTInteger:
|
||||||
|
#if GDAL_VERSION_MAJOR >= 2
|
||||||
|
case OFTInteger64:
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
feature->put<mapnik::value_integer>( fld_name, poFeature->GetFieldAsInteger(i));
|
feature->put<mapnik::value_integer>( fld_name, poFeature->GetFieldAsInteger(i));
|
||||||
break;
|
break;
|
||||||
|
@ -144,6 +147,9 @@ feature_ptr ogr_featureset::next()
|
||||||
}
|
}
|
||||||
|
|
||||||
case OFTIntegerList:
|
case OFTIntegerList:
|
||||||
|
#if GDAL_VERSION_MAJOR >= 2
|
||||||
|
case OFTInteger64List:
|
||||||
|
#endif
|
||||||
case OFTRealList:
|
case OFTRealList:
|
||||||
case OFTStringList:
|
case OFTStringList:
|
||||||
case OFTWideStringList: // deprecated !
|
case OFTWideStringList: // deprecated !
|
||||||
|
|
Loading…
Reference in a new issue