Have a look at the geometry in a GIS tool, you will see that that the geometry intersects itself in the bottom left corner. You'll need to zoom right in to see it. If I remember correctly the equalsa operator is no guaranteed to work for invalid geometries.
Paul Fernando Gonzalez wrote: > hello, > > I have a problem using JTS and maybe someone in the list can help me. > > When I compare to identical geometries I obtain that the equals method > returns false, however the equalsExact returns true. The geometry is > this one: > MULTIPOLYGON (((305883.8497774189 2253074.1763095097, > 305884.0497774191 2253074.2763095098, 305877.34977741283 > 2253085.37630952, 305875.64977741125 2253084.376309519, > 305873.6497774094 2253087.8763095224, 305875.349777411 > 2253088.8763095234, 305873.8497774096 2253091.576309526, > 305877.6497774131 2253093.876309528, 305887.9497774227 > 2253076.676309512, 305883.8497774189 2253074.1763095097))) > > I have tried with a point containing the first coordinate of the > previous multipolygon and both equals and equalsExact return true > which is the expected behavior (expected by me at least ;): > POINT(305883.8497774189 2253074.1763095097) > > Does anyone know why in the case of the multipolygon it returns false? > > Thanks in advance, > Fernando > ------------------------------------------------------------------------ > > _______________________________________________ > jts-devel mailing list > jts-devel@lists.jump-project.org > http://lists.refractions.net/mailman/listinfo/jts-devel > _______________________________________________ jts-devel mailing list jts-devel@lists.jump-project.org http://lists.refractions.net/mailman/listinfo/jts-devel