[geos-devel] Re: WKB parser

strk strk at keybit.net
Fri May 13 05:42:36 EDT 2005


On Fri, Apr 29, 2005 at 05:27:06PM -0700, Martin Davis wrote:
> Have a look at test.jts.junit.io.WKBTest in CVS.  I developed some
> utility classes to allow vertex-by-vertex comparison of geometry.  (You
> can use Geometry#equalsExact, but it only does 2D comparisons, so isn't
> useful for testing 3D geoms).

What about adding a new Geometry method for strict equality test ?
(3D, vertex by vertex comparison).
In that case I think we should consider LINESTRING and LINEARRING
as being the same and maybe (again) drop LINEARRING WKT (is that
really useful ?).

--strk;


> 
> 
> 
> Martin Davis, Senior Technical Architect
> Vivid Solutions Inc.      www.vividsolutions.com
> Suite #1A-2328 Government Street Victoria, B.C. V8T 5G5
> Phone: (250) 385 6040 - Local 308 Fax: (250) 385 6046
> 
> 
> > -----Original Message-----
> > From: strk [mailto:strk at keybit.net] 
> > Sent: April 29, 2005 7:16 AM
> > To: Martin Davis
> > Subject: WKB parser
> > 
> > 
> > I've about done with the WKB parser code.
> > In order to test it I need a function to test 
> > vertex-by-vertex equality of geometries, to compare input and 
> > output ( INPUT -> WKBWrite -> WKBRead -> OUTPUT).
> > 
> > What function should I use ?
> > Is anything similar in JTS ?
> > (sorry if I'm being lame)
> > 
> > --strk;
> > 



More information about the geos-devel mailing list