Need for msInit() and msFinish()...

Sean Gillies sgillies at FRII.COM
Mon Feb 13 01:55:57 EST 2006


On Feb 12, 2006, at 9:34 PM, Steve Lime wrote:

> Hi all: I'll looking at porting mapgeos.cpp to use the GEOS C API  
> and it =
> looks to me like we'll need an msInit() and msFinish() for use in  
> the C =
> code and more importantly MapScript. The GEOS C library requires  
> initializa=
> tion and cleanup. We get around it know by maintianing a global  
> GeometryFac=
> tory and leaking a few bytes. That doesn't look to be possible or =
> desireable with the C API.
>
> Hence the need. We could hide calls in the mapfile load/free code,  
> but =
> there are some cases where MapScript scripts don't need a mapfile  
> so we'd =
> need to expose 'em for those cases.
>
> Thoughts?
>
> Steve

Steve,

I say go for it. I'm pretty sure msFinish() can be registered with  
Python as long as it doesn't take any args. Hopefully Umberto and  
Tamas will report the same for Java and C#.

Sean



More information about the mapserver-dev mailing list