MCPcopy Create free account
hub / github.com/MapServer/MapServer / FLTGetGeosOperator

Function FLTGetGeosOperator

mapogcfilter.c:124–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124int FLTGetGeosOperator(char *pszValue)
125{
126 if (!pszValue)
127 return -1;
128
129 if (strcasecmp(pszValue, "Equals") == 0)
130 return MS_GEOS_EQUALS;
131 else if (strcasecmp(pszValue, "Intersect") == 0 ||
132 strcasecmp(pszValue, "Intersects") == 0)
133 return MS_GEOS_INTERSECTS;
134 else if (strcasecmp(pszValue, "Disjoint") == 0)
135 return MS_GEOS_DISJOINT;
136 else if (strcasecmp(pszValue, "Touches") == 0)
137 return MS_GEOS_TOUCHES;
138 else if (strcasecmp(pszValue, "Crosses") == 0)
139 return MS_GEOS_CROSSES;
140 else if (strcasecmp(pszValue, "Within") == 0)
141 return MS_GEOS_WITHIN;
142 else if (strcasecmp(pszValue, "Contains") == 0)
143 return MS_GEOS_CONTAINS;
144 else if (strcasecmp(pszValue, "Overlaps") == 0)
145 return MS_GEOS_OVERLAPS;
146 else if (strcasecmp(pszValue, "Beyond") == 0)
147 return MS_GEOS_BEYOND;
148 else if (strcasecmp(pszValue, "DWithin") == 0)
149 return MS_GEOS_DWITHIN;
150
151 return -1;
152}
153
154int FLTIsGeosNode(char *pszValue)
155{

Callers 1

FLTIsGeosNodeFunction · 0.85

Calls 1

strcasecmpFunction · 0.85

Tested by

no test coverage detected