[geos-devel] Re: WKB parser

strk at refractions.net strk at refractions.net
Fri May 13 12:12:59 EDT 2005


Martin, I checked out the equalsExact method as suggested
by Dave. It internally calls equals() on Coordinates, which
is again 2D only. Isn't this a conceptual bug since the
metohd is named equalsEXACT ?

Yes, current JTS does the same, it's
Geometry#equal(Coordinate, Coordinate, double)

--strk;

On Fri, May 13, 2005 at 05:30:05PM +0200, strk at refractions.net wrote:
> On Fri, May 13, 2005 at 09:14:23AM -0400, dblasby at openplans.org wrote:
> > strk,
> > 
> > JTS has an "equalsExact(Geometry,Geometry)" method and a
> > "equalsExact(Geometry,Geometry, tolerance)".
> > 
> > I'm pretty sure that GEOS has at least the former.
> > 
> > I'm not 100% sure if its 2d or 3d (I assume its 3d, but I could be
> > wrong).
> 
> I'm making some tests, the tolerance argument is mandatory with
> GEOS, but code seems broken (a simple comparison of a point
> in and out WKB returns false...).
> 
> Anyway, thanks for the point, I'll at least fix that, and
> possibly use it for testing WKB.
> 
> --strk;
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel



More information about the geos-devel mailing list