backport support for postgis literal type to 2.1.x - refs #1464 - closes #1626

This commit is contained in:
Dane Springmeyer 2012-12-05 20:07:49 -08:00
parent 3d7575c282
commit 93f58b1ef3
3 changed files with 4 additions and 0 deletions

View file

@ -15,6 +15,8 @@ For a complete change history, see the git log.
- Add DebugSymbolizer (#1366) - Add DebugSymbolizer (#1366)
- Added support for literal types in PostGIS Plugin (#1464)
## Mapnik 2.1.0 ## Mapnik 2.1.0

View file

@ -391,6 +391,7 @@ void postgis_datasource::bind() const
case 1042: // bpchar case 1042: // bpchar
case 1043: // varchar case 1043: // varchar
case 25: // text case 25: // text
case 705: // literal
desc_.add_descriptor(attribute_descriptor(fld_name, mapnik::String)); desc_.add_descriptor(attribute_descriptor(fld_name, mapnik::String));
break; break;
default: // should not get here default: // should not get here

View file

@ -174,6 +174,7 @@ feature_ptr postgis_featureset::next()
case 25: //text case 25: //text
case 1043: //varchar case 1043: //varchar
case 705: //literal
{ {
feature->put(name, tr_->transcode(buf)); feature->put(name, tr_->transcode(buf));
break; break;