Opened 18 years ago
Last modified 15 years ago
#1665 closed defect
MapScript needs to run msSetup/msCleanup automagically — at Initial Version
Reported by: | sdlime | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | MapScript-SWIG | Version: | 4.8 |
Severity: | normal | Keywords: | |
Cc: |
Description
This really applies to multiple components but I had to pick one, so MapScript- SWIG gets it. This stems from the use of the GEOS C api which requires us to call a GEOSinit() and GEOSfinish() when using the library. You definitely want to do that only once when MapScript or the CGI are loaded. The MapServer C code already defines a couple of functions msSetup/msCleanup to do this. They are being used for some OGR cleanup and so on. These would be logical places for the GEOS functions. Besides that we need to: - add them to PHP's MSINIT and MSHUTDOWN functions - add them to language specific interface files for all relevant SWIG languages. Python is done (at least for msSetup), so Perl, Ruby, C# and Java need to be done. - add them to mapserv.c, being mindfull of fast CGI support Steve
Note:
See TracTickets
for help on using tickets.