Hi,

yes indeed you are correct Andrea. I'm talking about the geometry in the 
post-body of the GetFeature-request.
There have to be a way to maintain the precision of the original geometry 
in order not to create invalid geometries in the request.

Regards,
Benjamin




Von:    "Andrea Aime" <andrea.a...@geo-solutions.it>
An:     "Ian Turton" <ijtur...@gmail.com>
Kopie:  "Benjamin Sokolowski" <benjamin.sokolow...@data-experts.de>, "Uwe 
Kickstein" <uwe.kickst...@data-experts.de>, "geotools-users" 
<geotools-gt2-users@lists.sourceforge.net>
Datum:  19.08.2020 09:34
Betreff:        Re: [Geotools-gt2-users] Precision of geometries in 
WFS-Request



Hi Ian,
I believe Benjamin is not talking about the GML wfs-ng is receiving, but 
the one
contained in a GetFeature request payload as part of a spatial filter

Cheers
Andrea


On Wed, Aug 19, 2020 at 9:30 AM Ian Turton <ijtur...@gmail.com> wrote:


On Wed, 19 Aug 2020 at 07:17, Benjamin Sokolowski <
benjamin.sokolow...@data-experts.de> wrote:
Hi Ian, 

thanks for your reponse. 
We are using a metric coordinate system, so it's definitly some sort of 
noise. 
Unfortunatly we don't have control about the precision of the geometries, 
it is customer related. 
But because of this reduced precison the geometry gets sometimes invalid. 

What exactly do you mean "is in control of the server"? 
We are generating the request in our own software with the help of 
geotools and in this request (GML) the geometry differs in precision from 
the geometry we putting into the filter (for example 
org.opengis.filter.spatial.Intersects). 


The GeoTools client makes the request to the server which decides how to 
format the GML - there is nothing the client can do to control how many 
decimal places are in the GML, so the GML you receive is the same 
regardless of how the request is made - try using the URL in a browser or 
via curl on the command line, the result will be the same.

Ian

-- 
Ian Turton
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users


-- 
Regards, Andrea Aime
== GeoServer Professional Services from the experts! Visit 
http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf 
Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa 
(LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 
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. 


_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to