diff --git a/CHANGELOG.md b/CHANGELOG.md index e7c07d130..09a0f87fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,8 @@ For a complete change history, see the git log. - Add DebugSymbolizer (#1366) +- Added support for literal types in PostGIS Plugin (#1464) + ## Mapnik 2.1.0 diff --git a/plugins/input/postgis/postgis_datasource.cpp b/plugins/input/postgis/postgis_datasource.cpp index 3f95865cd..0adc4e8d0 100644 --- a/plugins/input/postgis/postgis_datasource.cpp +++ b/plugins/input/postgis/postgis_datasource.cpp @@ -391,6 +391,7 @@ void postgis_datasource::bind() const case 1042: // bpchar case 1043: // varchar case 25: // text + case 705: // literal desc_.add_descriptor(attribute_descriptor(fld_name, mapnik::String)); break; default: // should not get here diff --git a/plugins/input/postgis/postgis_featureset.cpp b/plugins/input/postgis/postgis_featureset.cpp index dd121a36d..746fd2cff 100644 --- a/plugins/input/postgis/postgis_featureset.cpp +++ b/plugins/input/postgis/postgis_featureset.cpp @@ -174,6 +174,7 @@ feature_ptr postgis_featureset::next() case 25: //text case 1043: //varchar + case 705: //literal { feature->put(name, tr_->transcode(buf)); break;