# Path: studio/lib/mapscriptutils.py
# class msConstants(dict):
#     def __init__(self,items):
#     def lookup(self,value):
# VERSION_MAJOR = None
# VERSION_MINOR = None
# VERSION_REV = None
#     VERSION_MAJOR = mapscript.MS_VERSION_MAJOR
#     VERSION_MINOR = mapscript.MS_VERSION_MINOR
#     VERSION_REV = mapscript.MS_VERSION_REV
#     VERSION_MAJOR = int(version[0])
#         VERSION_MINOR = int(version[1])
#         VERSION_REV = int(version[2])
#         VERSION_MINOR = int(version[1][0])
#         VERSION_REV='dev'
# SUPPORTS_AGG = "SUPPORTS=AGG " in mapscript.msGetVersion()


import mapscript
import os
import re
from exceptions import AttributeError
from types import *
from pylons import config
from studio.lib import mapscriptutils
        if matcher:
            result['name'] = matcher.group(2)
            for c in matcher.group(1):
                field = Mapfile._STYLE_CHAR2NAME[c]
                result[field] = True
        else:
            result['name'] = symbolobj.name
            result['isPoint'] = result['isStroke'] = result['isFill'] = True
        return result

def create_agg_png_outputformat():
    aggof = mapscript.outputFormatObj('AGG/PNG')
    aggof.name = 'aggpng'
    aggof.driver = 'AGG/PNG'
    aggof.imagemode = mapscript.MS_IMAGEMODE_RGB
    aggof.mimetype = "image/png"
    return aggof

def create_agg_jpg_outputformat():
    aggof = mapscript.outputFormatObj('AGG/JPEG')
    aggof.name = 'aggjpg'
    aggof.driver = 'AGG/JPEG'
    aggof.imagemode = mapscript.MS_IMAGEMODE_RGB
    aggof.mimetype = "image/jpeg"
    return aggof


def create_default_mapfile():
    mapfile = Mapfile()
    map = mapscript.mapObj()

# Path: studio/lib/mapscriptutils.py
# class msConstants(dict):
#     def __init__(self,items):
#     def lookup(self,value):
# VERSION_MAJOR = None
# VERSION_MINOR = None
# VERSION_REV = None
#     VERSION_MAJOR = mapscript.MS_VERSION_MAJOR
#     VERSION_MINOR = mapscript.MS_VERSION_MINOR
#     VERSION_REV = mapscript.MS_VERSION_REV
#     VERSION_MAJOR = int(version[0])
#         VERSION_MINOR = int(version[1])
#         VERSION_REV = int(version[2])
#         VERSION_MINOR = int(version[1][0])
#         VERSION_REV='dev'
# SUPPORTS_AGG = "SUPPORTS=AGG " in mapscript.msGetVersion()


# Path: studio/lib/mapserializer.py
import mapscript
import os
import re
from exceptions import AttributeError
from types import *
from pylons import config
from studio.lib import mapscriptutils

        if matcher:
            result['name'] = matcher.group(2)
            for c in matcher.group(1):
                field = Mapfile._STYLE_CHAR2NAME[c]
                result[field] = True
        else:
            result['name'] = symbolobj.name
            result['isPoint'] = result['isStroke'] = result['isFill'] = True
        return result

def create_agg_png_outputformat():
    aggof = mapscript.outputFormatObj('AGG/PNG')
    aggof.name = 'aggpng'
    aggof.driver = 'AGG/PNG'
    aggof.imagemode = mapscript.MS_IMAGEMODE_RGB
    aggof.mimetype = "image/png"
    return aggof

def create_agg_jpg_outputformat():
    aggof = mapscript.outputFormatObj('AGG/JPEG')
    aggof.name = 'aggjpg'
    aggof.driver = 'AGG/JPEG'
    aggof.imagemode = mapscript.MS_IMAGEMODE_RGB
    aggof.mimetype = "image/jpeg"
    return aggof


def create_default_mapfile():
    mapfile = Mapfile()
    map = mapscript.mapObj()

    if mapscriptutils.SUPPORTS_AGG: