I am having some issues with queries that combine both attribute expressions 
(currently in ECQL) and spatial queries when in polar regions, and using layers 
in EPSG:4326.
The problem with ECQL spatial operators is that the expressions must be in 
terms of native CRS. Away from the poles, I manage this by splitting any 
polygon that crosses the 180 in two polygons and adding an AND clause to the 
query. Splitting a polygon that crosses the 180 AND includes a pole is 
challenging to say to the least. If someone has an algorithms to do this, then 
I am all ears.

Conceptually it would be easier to request the polygon in the projected 
coordinates but cant do that with ECQL. It seems I would have to convert the 
CQL expression into an OGC filter.  Does anyone have existing code for this? 
Does that actually exist somewhere in the geoserver source code even?

Notice: This email and any attachments are confidential and may not be used, 
published or redistributed without the prior written consent of the Institute 
of Geological and Nuclear Sciences Limited (GNS Science). If received in error 
please destroy and immediately notify GNS Science. Do not copy or disclose the 
contents.
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to