Permalink
Browse files

RFC91: Support for Oracle Spatial filtering (#4974)

  • Loading branch information...
msmitherdc authored and tbonfort committed Aug 27, 2014
1 parent 9991eed commit d4fe1214c9c2ae653d2cf3afcb586cc51882e981
Showing with 605 additions and 86 deletions.
  1. +5 −2 maplayer.c
  2. +599 −83 maporaclespatial.c
  3. +1 −1 mapscript/swiginc/cluster.i
View
@@ -1535,7 +1535,10 @@ int msLayerApplyPlainFilterToLayer(FilterEncodingNode *psNode, mapObj *map, int
*/
int msLayerSupportsSorting(layerObj *layer)
{
- if (layer && ((layer->connectiontype == MS_OGR) || (layer->connectiontype == MS_POSTGIS)))
+ if (layer && (
+ (layer->connectiontype == MS_OGR) || (layer->connectiontype == MS_POSTGIS) || (layer->connectiontype == MS_ORACLESPATIAL)
+ )
+ )
return MS_TRUE;
return MS_FALSE;
@@ -1559,7 +1562,7 @@ void msLayerSetSort(layerObj *layer, const sortByClause* sortBy)
layer->sortBy.properties[i].item = msStrdup(sortBy->properties[i].item);
layer->sortBy.properties[i].sortOrder = sortBy->properties[i].sortOrder;
}
-}
+ }
/*
* msLayerBuildSQLOrderBy()
Oops, something went wrong.

0 comments on commit d4fe121

Please sign in to comment.