Hi,

On 27.01.2011, at 08:54, Kyle Cronan wrote:
> It seems that it spends a lot of time within the interpreter in
> geos_linearring_from_py.

my observations are that wkt.loads is faster than creating lines or polygons 
from list or tuples of coordinates. It's a bit unfortunate, but the only API to 
set a coordinate sequence are the CoordSeq_Set_X/Y functions and calling these 
thousands of times with ctypes is expensive. I already thought about 
implementing the geos_linearring_from_py function in cython or pyrex as an 
optional speedup, but I don't know if and how this works in combination with 
ctypes.

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

Reply via email to