[Community] Access Violation Error when using to_wkt method
Darren Waters
darren at omc-international.com
Wed Aug 11 01:26:55 EEST 2010
> Naturally it would be great to be able to reproduce this in some kind of
minimal sample, or at least find
> out if the same operation also fails on *nix system.
Unfortunately it does not fail for a minimal sample. As I said in my
response to Sean, reducing the number of points to approximately 2 million
results in a cascaded joined polygon that returns a valid wkt and wkb
string. Also, testing this section in its own isolated python script
yielded a shapely object that was able to successfully return a wkt and wkb
string. I am in agreement with Sean's comment that it is probably to do
with GEOS not checking if the allocation of memory for the WKT value
succeeded.
Cheers
Darren
-----Original Message-----
From: community-bounces at lists.gispython.org
[mailto:community-bounces at lists.gispython.org] On Behalf Of Jaakko Salli
Sent: Tuesday, 10 August 2010 4:18 AM
To: gispython.org community projects
Subject: Re: [Community] Access Violation Error when using to_wkt method
Hi Darren,
On 9.8.2010 4:18, Darren Waters wrote:
> Thanks for your reply. My version of Shapely came from the link on
> http://trac.gispython.org/lab/wiki/Shapely. My version of python is
> 2.5.2 and was from python.org. Also, when I referred to a large set
> of point data, I am talking of the order of 6 million points that I am
> performing the cascaded union on.
>
> Thanks in advance for any advice that you can give me.
>
Naturally it would be great to be able to reproduce this in some kind of
minimal sample, or at least find out if the same operation also fails on
*nix system.
Anyways, to rule out if this is a problem with the used compiler, here is a
link to GEOS DLLs built with Visual C++ 7.1 (the same one used to build
Python 2.5):
http://personal.inet.fi/private/jmsalli/geos_x86_vc7.zip
Just copy the files into your Python25\DLLs directory, and let us know if it
works any differently.
Thanks,
Jaakko
_______________________________________________
Community mailing list
Community at lists.gispython.org
http://lists.gispython.org/mailman/listinfo/community
More information about the Community
mailing list