[Community] shapely support for geos IsValidReason()
sean.gillies at gmail.com
Mon Jun 14 14:12:14 EEST 2010
On Mon, Jun 14, 2010 at 12:15 PM, Peter Freimuth <pfreimuth at arcor.de> wrote:
> i asked for this allready on the gdal-dev list because i am using the
> python gdal/ogr api to check incoming features from shapefiles.
> The main problem is, that i would like to get the reason for IsValid()
> failed. As shapely is somehow a wrapper for geos i would like to know if
> there is a version available which allready support this method and if
> possible to get an usage example.
Not currently implemented in Shapely. If you will submit a ticket to
http://trac.gispython.org/lab/newticket I will be happy to do
something about it. In the meantime, you could write code to access
libgeos_c via ctype. It's not too tricky, but as you can see in the
Shapely or GeoDjango code you need to be careful with strings
allocated by GEOS.
More information about the Community