msSetup() in mapserv.c and shp2img.c

Frank Warmerdam warmerdam at POBOX.COM
Mon Jul 9 13:45:28 EDT 2007


Steve Lime wrote:
> Is there any reason NOT to call msSetup and msCleanup though? GEOS, for example requires
> the geometry factory be initialized and that (at the moment) is in msSetup. I believe Assefa ran
> into that problem while extending os OGC filter support. He must be calling them somewhere.

Steve,

Well, I'd say the main reason to not call msSetup() in mapserv
and shp2img is to ensure we haven't developed a requirement for it.
On the other hand, if it is now a requirement, we should make sure we
do it everywhere.

BTW, I think GEOS is now (geos 3.x) self initializing.  So we only
need to call msGEOSSetup() if we want to install our own error
handlers.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the mapserver-dev mailing list