Python Gdal ERROR 6: GEOS support not enabled

المشرف العام

Administrator
طاقم الإدارة
I installed GDAL from here (https://pypi.python.org/pypi/GDAL/1.9.1)

Before attempting the python GDAL I installed the prerequisite gdal libraries using Kyngchaos's description some time ago (http://www.kyngchaos.com/software/frameworks). I have verified that gdal is running on at least the minimum required version:

gdalinfo --version GDAL 1.11.1, released 2014/09/24 However, when I attempt to start python and access the gdal libraries I get errors on simple operations:

from osgeo import ogr point = """{"type":"Point","coordinates":[-90.02001032734194,35.127405562848075]}""" geom = ogr.CreateGeometryFromJson(point) geom.Centroid() ERROR 6: GEOS support not enabled. I have googled this error and looked at how it has been mentioned on this site but no solutions seem to pertain to my situation. The Kyngchaos GDAL/OGR installs are built with GEOS libraries, so I'm very confused as to why python GDAL/OGR is saying GEOS is not enabled.

Any ideas on how I can fix or go about debugging this (running on Mac OSX)?



أكثر...
 
أعلى