Sean Gillies wrote:

> 2.2.3 is the GEOS product version number (which I think corresponds to
> the C++ API version) and 1.3.3 is the C API version.

So I should be OK then with GEOS 2.2.3, it seems.

> I think you may have also found a bug. If Shapely 1.0.9 doesn't work
> for
> you, will you try commenting out lines 233-281 in
> shapely/ctypes_declarations.py. All the GEOSWK*Writer stuff. This was
> introduced in 1.0.8 and we didn't test it adequately with GEOS 2.2.3.


If I try that on my Ubuntu 6.01 server with GEOS 2.2.1, then it seems to
work OK. I can create a Point() and buffer it and then test if the
buffer contains the point. So it seems to be working there even with the
older GEOS.

However, on my laptop I still get the same error (which is not a
surprise since it was erroring earlier on line 19):

>>> from shapely.geometry import Point
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File
"/usr/lib/python2.5/site-packages/Shapely-1.0.8-py2.5.egg/shapely/geomet
ry/__init__.py",
line 1, in <module>
    from geo import shape, asShape
  File
"/usr/lib/python2.5/site-packages/Shapely-1.0.8-py2.5.egg/shapely/geomet
ry/geo.py",
line 5, in <module>
    from point import Point, asPoint
  File
"/usr/lib/python2.5/site-packages/Shapely-1.0.8-py2.5.egg/shapely/geomet
ry/point.py",
line 10, in <module>
    from shapely.geos import lgeos, DimensionError
  File
"/usr/lib/python2.5/site-packages/Shapely-1.0.8-py2.5.egg/shapely/geos.p
y",
line 54, in <module>
    execfile(os.path.join(_here, 'ctypes_declarations.py'))
  File
"/usr/lib/python2.5/site-packages/Shapely-1.0.8-py2.5.egg/shapely/ctypes
_declarations.py",
line 19, in <module>
    lgeos.GEOS_getWKBOutputDims.restype = ctypes.c_int
  File "/usr/lib/python2.5/ctypes/__init__.py", line 361, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib/python2.5/ctypes/__init__.py", line 366, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib/libgeos_c.so.1: undefined symbol:
GEOS_getWKBOutputDims


Marc


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

Reply via email to