Christopher Barker wrote:
> Sean Gillies wrote:
>> And the reason all this is important is that to GEOS, 2 differently
>> valued geometries can be topologically equal:
> 
> Well then, yes, you do want "==" to mean something different. Sorry, my 
> limited understanding of what "topologically equal" means.
> 
>>   >>> from shapely.geometry import LineString
>>   >>> a = LineString(((-1, -1), (1, 1)))
>>   >>> b = LineString(((-1, -1), (0, 0), (1, 1)))
>>   >>> a.wkt == b.wkt
>>   False
>>   >>> a.equals(b)
>>   True
> 
> So what would "a == b" return, and :
> 
>  >>> a = LineString(((-1, -1), (0, 0), (1, 1)))
>  >>> b = LineString(((-1, -1), (0, 0), (1, 1)))
> 
>  >>> a == b
True

> 
> 
> -Chris
> 

Sean

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

Reply via email to