[Community] Shapely is_empty fails on Linux

Patrick Hartling patrick at priority5.com
Thu Jan 21 18:35:33 EET 2010


Howard Butler wrote:
> On Jan 21, 2010, at 9:30 AM, Patrick Hartling wrote:
> 
>> We have run into a strange problem with the is_empty property on Shapely
>> goemetry objects failing on Linux. We are using r1485 from the Shapely 1.2
>> branch with GEOS 3.1.1 and Python 2.6.2 on 64-bit Ubuntu Linux 9.04. The
>> code below demonstrates the problem:
>>
>> import shapely.geometry
>> assert shapely.geometry.Point(1,1).is_empty == False
> 
> What about this?  Maybe the chaining is causing the reference to go bad.
> 
> p = shapely.geometry.Point(1,1)
> p.is_empty

The result is the same in that case: is_empty still returns False.

 -Patrick


-- 
Patrick L. Hartling
Senior Software Engineer, Priority 5
http://www.priority5.com/

The information transmitted in this communication is intended only for
the person or entity to which it is addressed and contains proprietary
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received this in error, please destroy any copies, contact the sender
and delete the material from any computer.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gispython.org/pipermail/community/attachments/20100121/014ee870/attachment.pgp>


More information about the Community mailing list