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

PostGIS trac at osgeo.org
Mon Dec 17 01:18:23 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 brushtyler):

 I've added a patch to fix this problem.

 The patch does the following:

 - adds a '''lwgeom_set_handlers''' function to set custom handlers (both
 memory management and message reporter functions), it replaces the
 '''lwgeom_init_allocators''' function,

 - moves the module part of '''raster/rt_pg/rt_pg.c''' to the new file
 '''raster/rt_pg/pg_module.c''',

 - and, of course, makes the code working with the new
 '''lwgeom_set_handlers''' function.


 Please, review my patch and apply it if you think it's good enough.
 Otherwise, opinions on how to improve it are welcome.

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2089#comment:7>
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