Skip to content

Commit

Permalink
Addressed ticket #5032 by forcing code that writes a range to produce…
Browse files Browse the repository at this point in the history
… a MapServer expression only...
  • Loading branch information
sdlime committed Nov 26, 2014
1 parent f5f9670 commit fa230a6
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions mapogcfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -144,18 +144,15 @@ int FLTApplyExpressionToLayer(layerObj *lp, const char *pszExpression)

char *FLTGetExpressionForValuesRanges(layerObj *lp, const char *item, const char *value, int forcecharcter)
{
int bIscharacter, bSqlLayer;
int bIscharacter, bSqlLayer=MS_FALSE;
char *pszExpression = NULL, *pszEscapedStr=NULL, *pszTmpExpression=NULL;
char **paszElements = NULL, **papszRangeElements=NULL;
int numelements,i,nrangeelements;

/* TODO: remove the bSqlLayer checks since we want to write MapServer expressions only. */

/* double minval, maxval; */
if (lp && item && value) {
if (lp->connectiontype == MS_POSTGIS || lp->connectiontype == MS_ORACLESPATIAL ||
lp->connectiontype == MS_SDE || lp->connectiontype == MS_PLUGIN)
bSqlLayer = MS_TRUE;
else
bSqlLayer = MS_FALSE;

if (strstr(value, "/") == NULL) {
/*value(s)*/
paszElements = msStringSplit (value, ',', &numelements);
Expand Down

0 comments on commit fa230a6

Please sign in to comment.