それは使用してプログラム的に新しいOGC WMS(1.1/1/3)サービスを作成することは可能であろう:のpython MAPNIKを使用してmaproxy OGC WMSサービスを作成するためのスクリプトとPostGISの
- Pythonの
- MapProxy
- MAPNIK
- のPostGIS/Postgresは
任意のスクリプト/要旨又は試料より次いで、理解されるであろう。
乾杯、M
それは使用してプログラム的に新しいOGC WMS(1.1/1/3)サービスを作成することは可能であろう:のpython MAPNIKを使用してmaproxy OGC WMSサービスを作成するためのスクリプトとPostGISの
任意のスクリプト/要旨又は試料より次いで、理解されるであろう。
乾杯、M
一般的にすべての設定ファイルについてです。私はMapserver/Mapproxyセットアップのために自動的に新しいWMSエンドポイントを作成します。このエンドポイントは、画像を処理するpythonスクリプトを使用します。
MapServerの設定パターン:
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
Mapproxyの設定パターン:
caches:
[cache folder]:
cache:
directory_layout: tms
type: file
grids:
- webmercator
image:
format: image/png
mode: RGBA
resampling_method: bilinear
encoding_options:
jpeg_quality: 100
transparent: true
meta_size:
- 2
- 2
sources:
- [source]
globals:
cache:
base_dir: [base dir]
lock_dir: [lock dir]
tile_lock_dir: [tile lock dir]
image:
paletted: false
grids:
webmercator:
base: GLOBAL_WEBMERCATOR
num_levels: 22
layers:
- name: [layer name]
sources:
- [cache]
title: [title]
services:
demo: null
wms:
md:
abstract: This is a minimal MapProxy example.
title: MapProxy WMS Proxy
srs:
- [epsg]
sources:
45_source:
coverage:
datasource: [coverage datasource]
srs: [epsg]
mapserver:
binary: [mapserver binary]
working_dir:/
req:
layers: [mapserver layer name]
map: [mapserver mapfile]
transparent: true
supported_formats:
- image/tiff
supported_srs:
- [epsg]
type: mapserver
あなたがしなければならないすべてはあなたが、その後に編集することができます異なる部分、に設定を分割することですPythonスクリプト。
私たちがpostgresのデータをWMSに公開し、tilecacheを有効にし、mapnikのような高度なレンダリングエンジンを使用したいのであれば、GISサーバーが欠けているコンポーネントが1つ存在する可能性があります。データベース接続など
私は以前ここに、その後に述べたように、私が正しくあなたの条件を推測していた場合は、システム設計は何ができるかです。