add_dll_path(pth)

Allow Python to access the directory containing the MapServer DLL (for Python on Windows only)

fromstring(data[, mappath, configpath])

Creates map objects from mapfile strings.

msCleanup()

Attempts to recover all dynamically allocated resources allocated by MapServer code and dependent libraries.

msConnPoolCloseUnreferenced()

Some memory leaks can be avoided by closing any unreferenced connections from time to time.

msFreeImage(img)

Generic function to free a imageObj

msGetErrorObj()

Get the MapServer error object

msGetErrorString(delimiter)

Return a string of all errors

msGetVersion()

Returns a string containing MapServer version information, and details on what optional components are built in - the same report as produced by mapserv -v

msGetVersionInt()

Returns the MapServer version number (x.y.z) as an integer (x*10000 + y*100 + z) e.g. V7.4.2 would return 70402.

msIO_getAndStripStdoutBufferMimeHeaders()

Strip off all MIME headers and return them in a hashTableObj

msIO_getStdoutBufferBytes()

Fetch the current stdout buffer contents as a binary buffer.

msIO_getStdoutBufferString()

Fetch the current stdout buffer contents as a string.

msIO_installStdinFromBuffer()

Installs a mapserver IO handler directing future stdin reading (i.e. post request capture) to come from a buffer.

msIO_installStdoutToBuffer()

Installs a mapserver IO handler directing future stdout output to a memory buffer.

msIO_resetHandlers()

Resets the default stdin and stdout handlers in place of buffer based handlers.

msIO_stripStdoutBufferContentHeaders()

Strip all Content-* headers off the stdout buffer if it has any.

msIO_stripStdoutBufferContentType()

Strip the Content-type header off the stdout buffer if it has one, and if a content type is found it is returned (otherwise NULL/None/etc).

msLoadMapFromString(buffer, new_mappath, config)

Sets up string-based mapfile loading and calls loadMapInternal to do the work

msResetErrorList()

Clear the list of error objects

msSaveImage(map, img, filename)

Saves a map image to a file

msSetup()

Sets up threads and font cache - called when MapScript is initialised