I wrote a unit test:
https://github.com/nicolas-f/h2database/commit/ea22bd7532150a17a1e92b009a98bf389a7f3f7f#L1R533
If you take two geometries A "POLYGON ((67 13, 67 18, 59 18, 59 13, 67 13))
and B "POLYGON ((67 13 , 67 18 5, 59 18, 59 13, 67 13 ))"
The result of A.equal(B) is true.. Then the cache system of Value will keep
only A and garbage B. The only way to fix this issue is to do a binary
comparison in ValueGeometry.equals( )
Le lundi 19 août 2013 14:36:13 UTC+2, Noel Grandin a écrit :
>
> Thanks, updated trunk.
>
> On 2013-08-19 14:16, Nicolas Fortin (OrbisGIS) wrote:
> > /**
> > * @param coordinates Coordinate array
> > * @return True if the array is empty or contain only 2d
> coordinates.
> > */
> > private static boolean is2d(Coordinate[] coordinates) {
> > if(coordinates==null) {
> > return true;
> > }
> > for(Coordinate coordinate : coordinates) {
> > if(!Double.isNaN(coordinate.z)) {
> > return false;
> > }
> > }
> > return true;
> > }
>
>
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.