On Wed, Jan 4, 2012 at 3:10 PM, Emmanuel Blondel
<[email protected]> wrote:
>
> Hello Andea,
>
> I checked the GML (GML2 output format) produced by Geoserver (see attached):
> -  the one with the default number of decimals (8): coordinates are the same
> as the one retrieved using WFS datastore, so we can eliminate the third
> place you mentioned.
> - the one after setting 9 decimals in the global settings.

So with 9 decimals we get -4947166.381663744, which validates 8 decimals
being -4947166.38166374.

Hmm... I think I see what is going on. We are getting  past the number
of significant
digits the double floating point can handle.
Double by its nature carries at most 15 significant digits, and it
seems that whatever
is making postgis return the 5 instead of the 4 is past the 16th digit instead.
At that point one cannot rely on two system actually returning the same number,
Java encorces strict IEEE rules, while C compilers don't always do.

Cheers
Andrea

-- 
-------------------------------------------------------
Ing. Andrea Aime
GeoSolutions S.A.S.
Tech lead

Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy

phone: +39 0584 962313
fax:      +39 0584 962313
mob:    +39 339 8844549

http://www.geo-solutions.it
http://geo-solutions.blogspot.com/
http://www.youtube.com/user/GeoSolutionsIT
http://www.linkedin.com/in/andreaaime
http://twitter.com/geowolf

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

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to