Skip to content

Commit

Permalink
fix ogc "equals" operator after rfc 64 (#3613)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Sep 5, 2012
1 parent ee0e42c commit fadc37a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mapogcfiltercommon.c
Expand Up @@ -538,6 +538,8 @@ char *FLTGetSpatialComparisonCommonExpression(FilterEncodingNode *psNode, layerO

if (strncasecmp(psNode->pszValue, "intersect", 9) == 0)
pszTmp = msStrdup("intersects");
if (strncasecmp(psNode->pszValue, "equals", 9) == 0)
pszTmp = msStrdup("eq");
else
pszTmp = msStrdup(psNode->pszValue);
msStringToLower(pszTmp);
Expand Down

2 comments on commit fadc37a

@rouault
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit looks wrong, especially the 9 value. Should be 6 I guess, or just use strcasecmp() without any size ?

@tbonfort
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @rouault , fixed in 11b383b

Please sign in to comment.