擅长:python、mysql、java
<p>一般来说,一切都与配置文件有关。我使用python脚本为Mapserver/Mapproxy设置自动创建新的WMS端点,该脚本还处理图像。在</p>
<p>MapServer配置模式:</p>
<pre><code>MAP
NAME "WMS Server"
#IMAGECOLOR 255 255 255
IMAGETYPE custom
TRANSPARENT OFF
CONFIG "MS_ERRORFILE" [error.txt]
EXTENT [Extent]
SIZE 800 600
WEB
METADATA
"wms_title" [title]
"wms_srs" [epsg]
"wms_enable_request" "*"
END
END
PROJECTION
"init=[epsg]"
END
INCLUDE [layer list]
OUTPUTFORMAT
NAME "custom"
DRIVER "GDAL/GTiff"
MIMETYPE "image/tiff"
IMAGEMODE RGBA
TRANSPARENT ON
EXTENSION "tif"
FORMATOPTION "GAMMA=1.0"
END
END
</code></pre>
<p>Mapproxy配置模式:</p>
^{pr2}$
<p>您所要做的就是将配置分成不同的部分,然后可以使用python脚本进行编辑。在</p>