I'm currently trying to add Geography support to the SQLServer jdbc plugin,
but I've just come across an issue that looks like a JTS bug.
When JDBCGeographyTest.testBounds() checks the returned bounds for a table
it uses the .equals method of ReferencedEnvelope which calls (JTS)
Envelope.equals() which ends up doing
maxx == otherEnvelope.getMaxX() &&
maxy == otherEnvelope.getMaxY() &&
minx == otherEnvelope.getMinX() &&
miny == otherEnvelope.getMinY()
Now since these are all doubles it fails with a rounding error. In this
case I can work round the issue by changing equals to
referencedEnvelope.boundsEquals2D. That has the interesting issue of
overwriting the tolerance parameter provided by the user.
I suspect the long term fix is to patch JTS but as a short term fix should
we fix referenced envelope?
Ian
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel