Hi Phil.

   You can see multiple examples on using OGC filters, I'm sharing some links I 
remember fast now:
   https://geoserver.geo-solutions.it/edu/en/vector_data/filter.html

   https://gis.stackexchange.com/a/26298

   https://docs.geoserver.org/stable/en/user/filter/function.html

   And of course is good to have a complete reference functions list:
   https://docs.geoserver.org/stable/en/user/filter/function_reference.html

   Remember you can also list available functions in your Geoserver instance 
with a WFS GetCapabilities request:
   http://localhost:8080/geoserver/wfs?request=GetCapabilities

   If you share your query, maybe I or someone else can help you converting it 
:)

   Regards,

   Fernando Mino

   ==

   GeoServer Professional Services from the experts! Visit http://goo.gl/it488V 
for more information.

   ==

   Fernando Mino

   Software Engineer

   GeoSolutions S.A.S.

   Via di Montramito 3/A

   55054  Massarosa (LU)

   Italy

   phone: +39 0584 962313

   fax:     +39 0584 1660272

   http://www.geo-solutions.it

   http://twitter.com/geosolutions_it

   -------------------------------------------------------

   Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa 
che ogni circostanza inerente alla presente email (il suo contenuto, gli 
eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i 
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per 
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei 
comunque grato se potesse darmene notizia.
   This email is intended only for the person or entity to which it is 
addressed and may contain information that is privileged, confidential or 
otherwise protected from disclosure. We remind that - as provided by European 
Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or 
the information herein by anyone other than the intended recipient is 
prohibited. If you have received this email by mistake, please notify us 
immediately by telephone or e-mail.


   From "Phil Scadden" p.scad...@gns.cri.nz
   To "geoserver-users" geoserver-users@lists.sourceforge.net
   Cc
   Date Mon, 21 Oct 2019 23:50:49 +0000
   Subject [Geoserver-users] ECQL and polar regions. Convert CQL to OGC filter??

   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