[postgis-devel] [PostGIS] #2089: liblwgeom cannot be used through python ctypes

PostGIS trac at osgeo.org
Fri Nov 9 08:50:11 PST 2012


#2089: liblwgeom cannot be used through python ctypes
------------------------+---------------------------------------------------
 Reporter:  brushtyler  |       Owner:  pramsey      
     Type:  defect      |      Status:  new          
 Priority:  medium      |   Milestone:  PostGIS 2.1.0
Component:  liblwgeom   |     Version:  trunk        
 Keywords:              |  
------------------------+---------------------------------------------------
 I'm trying to access liblwgeom functionalities through python ctypes, but
 I get an error because lwgeom_init_allocators is not defined.

 {{{
 >>> ctypes.cdll.LoadLibrary("/usr/local/lib/liblwgeom.so")
 Traceback (most recent call last):
     ...
     self._handle = _dlopen(self._name, mode)
 OSError: /usr/local/lib/liblwgeom.so: undefined symbol:
 lwgeom_init_allocators
 }}}

 In fact programs want to use the library must define
 lwgeom_init_allocators() function.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2089>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list