Skip to content

Commit

Permalink
use st_force2d instead of deprecated st_force_2d (#4803)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Nov 5, 2013
1 parent 92a1cac commit 3a6fa42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mappostgis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3a6fa42

Please sign in to comment.