pg.ddx.io  postgis-users@lists.osgeo.org mailing list archive (PostGIS users)  
help / color / mirror / Atom feed
From: dblasby at openplans.org <dblasby@openplans.org>
Subject: [postgis-users] (no subject)
Date: Mon, 18 Jul 2005 13:35:51 -0400
Message-ID: <1121708151.42dbe877e36eb@webmail.limegroup.com> (raw)

>This sounds like floating point comparisons failing because
>> of numerical
>> rounding issues.
>
>Highly unlikely - JTS/GEOS is very robust wrt predicates.

I think he means the 2 geometries arent actually identical - the points
maybe "10-7 off".  These differences would be hidden by converting to
WKT (since it doesnt show all 64bits of precision).

Try something like this:

SELECT encode( asBinary(  geometry1 ) , 'hex'),
       encode( asBinary(  geometry2 ) , 'hex')
FROM ... ;

And see if the two are actually equal.

dave





----------------------------------------------------------
This mail sent through IMP: https://webmail.limegroup.com/




view thread (131+ messages)  latest in thread

Message-ID: <1121708151.42dbe877e36eb@webmail.limegroup.com>
Permalink:  ../1121708151.42dbe877e36eb@webmail.limegroup.com/

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: postgis-users@lists.osgeo.org
  Cc: dblasby@openplans.org
  Subject: Re: [postgis-users] (no subject)
  In-Reply-To: <1121708151.42dbe877e36eb@webmail.limegroup.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox