Permalink
Browse files

use st_force2d instead of deprecated st_force_2d (#4803)

  • Loading branch information...
1 parent 92a1cac commit 3a6fa42289cad3596ccb2437167d7de5b0265f75 @tbonfort tbonfort committed Nov 5, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 mappostgis.c
View
@@ -1652,9 +1652,9 @@ char *msPostGISBuildSQLItems(layerObj *layer)
** need, saving transfer and encode/decode time.
*/
#if TRANSFER_ENCODING == 64
- static char *strGeomTemplate = "encode(ST_AsBinary(ST_Force_2D(\"%s\"),'%s'),'base64') as geom,\"%s\"";
+ static char *strGeomTemplate = "encode(ST_AsBinary(ST_Force2D(\"%s\"),'%s'),'base64') as geom,\"%s\"";
#else
- static char *strGeomTemplate = "encode(ST_AsBinary(ST_Force_2D(\"%s\"),'%s'),'hex') as geom,\"%s\"";
+ static char *strGeomTemplate = "encode(ST_AsBinary(ST_Force2D(\"%s\"),'%s'),'hex') as geom,\"%s\"";
#endif
strGeom = (char*)msSmallMalloc(strlen(strGeomTemplate) + strlen(strEndian) + strlen(layerinfo->geomcolumn) + strlen(layerinfo->uid));
sprintf(strGeom, strGeomTemplate, layerinfo->geomcolumn, strEndian, layerinfo->uid);

0 comments on commit 3a6fa42

Please sign in to comment.