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). I have found the Class in geotools that is responsible for the 6 dp (org.getools.gml.GMLConfiguration), but I have no clue how to change it. I was thinking about some sort of hints on the query or a parameter in the WFSConfig for the WFSDataStore. Regards, Benjamin Von: "Ian Turton" <ijtur...@gmail.com> An: "Benjamin Sokolowski" <benjamin.sokolow...@data-experts.de> Kopie: "geotools-users" <geotools-gt2-users@lists.sourceforge.net>, "Uwe Kickstein" <uwe.kickst...@data-experts.de> Datum: 18.08.2020 16:28 Betreff: Re: [Geotools-gt2-users] Precision of geometries in WFS-Request I don't think you can, the format of the GML being sent is in the control of the server. For example GeoServer has an option that sets the number of decimals (I use 3 by default), You do know that 7dp is +/- 11mm and is probably random noise - see https://gis.stackexchange.com/questions/8650/measuring-accuracy-of-latitude-and-longitude and https://xkcd.com/2170/ for more discussion. Ian On Tue, 18 Aug 2020 at 14:09, Benjamin Sokolowski < benjamin.sokolow...@data-experts.de> wrote: Hi, we are using geotools in Version 22.3. Everytime we are building a WFS-Request the precision of the requested geometry gets reduced to 6 decimal places. The original geometry has 7 decimal places. How can we configure the request in geotools to get 7 decimal places? Best regards, Benjamin _______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users -- Ian Turton
_______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users