# Path: cavedb/docgen_gis_common.py
# def get_bulletin_mapserver_mapfile(bulletin_id, map_name):
#     return '%s/%s.map' % (get_bulletin_gis_maps_directory(bulletin_id), map_name)


from django.conf import settings
from cavedb.docgen_gis_common import get_bulletin_mapserver_mapfile
import cavedb.docgen_common
import cavedb.docgen_gis_common
import cavedb.utils
# SPDX-License-Identifier: Apache-2.0


class MapserverMapfile(cavedb.docgen_common.Common):
    def __init__(self, bulletin):
        cavedb.docgen_common.Common.__init__(self)
        self.bulletin = bulletin
        self.gis_maps = {}


    def gis_map(self, gismap):
        shpdir = cavedb.docgen_gis_common.get_bulletin_shp_directory(self.bulletin.id)

        gis_options = {}
        gis_options['basename'] = gismap.name

# Path: cavedb/docgen_gis_common.py
# def get_bulletin_mapserver_mapfile(bulletin_id, map_name):
#     return '%s/%s.map' % (get_bulletin_gis_maps_directory(bulletin_id), map_name)


# Path: cavedb/docgen_mapserver_mapfile.py
from django.conf import settings
from cavedb.docgen_gis_common import get_bulletin_mapserver_mapfile
import cavedb.docgen_common
import cavedb.docgen_gis_common
import cavedb.utils

# SPDX-License-Identifier: Apache-2.0


class MapserverMapfile(cavedb.docgen_common.Common):
    def __init__(self, bulletin):
        cavedb.docgen_common.Common.__init__(self)
        self.bulletin = bulletin
        self.gis_maps = {}


    def gis_map(self, gismap):
        shpdir = cavedb.docgen_gis_common.get_bulletin_shp_directory(self.bulletin.id)

        gis_options = {}
        gis_options['basename'] = gismap.name

        gis_options['path'] = get_bulletin_mapserver_mapfile(self.bulletin.id, gismap.name)