| ピークニク PythonコードからMAPNIKのスタイルシートを生成するためのツール |
今すぐダウンロード |
ピークニク ランキングとまとめ
- 出版社のWebサイト:
- https://github.com/ldgeo/
ピークニク タグ
ピークニク 説明
PycnikはPythonコード(コーディング規則付)からMapnik XML Stylesheet.Install Pycnik Git Clone https://github.com/ldgeo/pycnik cd pycnik python setup.py installtestingtoテストを実行する:Python -M UnitTest Discover - ■TEST / GETETSUTPYCNIKは動的変数宣言を使用しているため、XML宣言と同じキーワードを使用する必要があります。 gdal "、" file ":" natural_earth.tif "} database_param = {" dbname ":" database "、" extimate_extent ":" true "、" host ":" 0.0.0.0 "、" password ":" *** *** "、" port ":" 5432 "、" type ":" postgis "、" user ":" mapuser "、" srid ":" 4326 "、} ########## ###### Map定義###########################################_colormap.srs = "+ init = epsg:4326" Map.Minimum_Version = "2.0" Map.Font_Directory = "fonts" map.buffer_size = 128 ################## lature_earth = layter( "Natural_earth")natural_earth.datasource = natural_rasterbnd = layer( " y境界 ")bnd.datasource = database_parambnd.table =" schema.boundaries "######### styles ######## natural_earth.style() = {Raster:{'スケーリング ':' BLLINEAR '}} bnd.style( "blue") = {line:{' fill ':' RGB(255,0,0) '、「ストローク幅」:' 4 ' 「フィルタ」: " = 'ESP'"} BND.Style( "Blue") = {行:{'scroke-width': '12'}#継承、フィルタは節約} mapnik XML Pycnik example.py -o example.xmlproductのホームページ
ピークニク 関連ソフトウェア