From 7a7ab494f48dceec91c16c94019b0b274acb5afc Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Wed, 4 Jul 2012 16:35:06 -0700 Subject: [PATCH] use ST_AsBinary for postgis_datasource::features_at_point - closes #1252 --- plugins/input/postgis/postgis_datasource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/input/postgis/postgis_datasource.cpp b/plugins/input/postgis/postgis_datasource.cpp index 5bfce1f73..c5d7da7d5 100644 --- a/plugins/input/postgis/postgis_datasource.cpp +++ b/plugins/input/postgis/postgis_datasource.cpp @@ -563,7 +563,7 @@ featureset_ptr postgis_datasource::features_at_point(coord2d const& pt) const } - s << "SELECT AsBinary(\"" << geometryColumn_ << "\") AS geom"; + s << "SELECT ST_AsBinary(\"" << geometryColumn_ << "\") AS geom"; if (!key_field_.empty()) mapnik::quote_attr(s,key_field_);