[postgis-tickets] [PostGIS] #2089: liblwgeom cannot be used through python ctypes
PostGIS
trac at osgeo.org
Mon Dec 17 06:43:40 PST 2012
#2089: liblwgeom cannot be used through python ctypes
-------------------------+--------------------------------------------------
Reporter: brushtyler | Owner: strk
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 2.1.0
Component: liblwgeom | Version: trunk
Keywords: |
-------------------------+--------------------------------------------------
Comment(by strk):
Still no luck with the second patch:
{{{
rt_module.c:58:1: error: redefinition of ‘Pg_magic_func’
rt_module.c:23:1: note: previous definition of ‘Pg_magic_func’ was here
rt_module.c:65:1: error: redefinition of ‘_PG_init’
rt_module.c:30:1: note: previous definition of ‘_PG_init’ was here
}}}
Adding getters may be subject to race conditions (something else changes
the handler between the getter call and the setter call). Not sure how a
flexible and stable interface could look like for atomically setting the
handlers. Maybe with input/output parameters (although that'd force the
caller to provide non-const pointers). Or splitting into multiple
functions each setting a single handler (although it wouldn't make much
sense to register an allocator without a deallocator). Well, let's focus
on a working build first :)
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2089#comment:10>
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-tickets
mailing list