Eric Lemoine wrote:
> On Fri, Apr 25, 2008 at 10:55 PM, Sean Gillies <[EMAIL PROTECTED]> wrote:
>> Eric Lemoine wrote:
>>  > On Fri, Apr 25, 2008 at 10:12 PM, Eric Lemoine <[EMAIL PROTECTED]> wrote:
>>  >> On Fri, Apr 25, 2008 at 5:56 PM, Sean Gillies <[EMAIL PROTECTED]> wrote:
>>  >>  >  Eric,
>>  >>
>>  >>  Sean, thanks for your reply.
>>  >>
>>  >>
>>  >>  >
>>  >>  >  Try adding a breakpoint at the beginning of BinaryPredicate.__call__ 
>> in
>>  >>  >  shapely/predicates.py to see what's up with self.context._geom and
>>  >>  >  other._geom.
>>  >>
>>  >>  self.context._geom = -1320155896
>>  >>  other._geom = 140268432
>>  >>
>>  >>  The first value looks suspicious, doesn't it?
>>  >
>>  > FWIW, I have:
>>  >
>>  > print self.context return POINT (52.4603282421875008 -23.7364467734374998)
>>  > print other return POINT (52.4603282421875008 -23.7364467734374998)
>>  >
>>  > so it's comparing the same point, it is just that the internal _geom
>>  > value isn't interpretable by geos for the self.context object.
>>  >
>>  > --
>>  > Eric
>>
>>  Is self.context the geometry in the session or is it the persisted
>>  geometry? If it's the persisted geometry, maybe what we're comparing is
>>  a cache or memoization?
> 
> At this point I've no answer to these questions. Sorry.
> 
> One other thing I've noticed: the two compared objects have different
> values for the _geom property (see above); however they have the same
> value for the __geom (_PointAdapter__geom really). Is this mismatch
> expected?
> 
> --
> Eric

They are PointAdapters? Can you tell me more about their life cycle?

Sean



_______________________________________________
Community mailing list
[email protected]
http://lists.gispython.org/mailman/listinfo/community

Reply via email to