| Pycnik Tool zum Erzeugen von Mapniks Stylesheets vom Python-Code |
Jetzt downloaden |
Pycnik Ranking & Zusammenfassung
- Name des Herausgebers:
- Ludovic Delaune
- Website des Verlags:
- https://github.com/ldgeo/
Pycnik Stichworte
Pycnik Beschreibung
PYCNIK ist ein einfacher Übersetzer aus dem Python-Code (mit kodierenden Konventionen) zum Mapnik XML XML-Stylesheet.install Pycnik Git-Klon https://github.com/ldgeo/pycnik-CD PYCNIK PYDHON SETUP.PY INSTRALTESTINGNUM Führen Sie die Tests aus: Python -m Unittest Entdecken Sie - s test / erringen startpypycnik Verwenden Sie die dynamische Variablendeklaration, sodass Sie dieselbe Keywords wie die XML-Deklarationssyntax verwenden müssen. GDAL "," Datei ":" natural_earth.tif "} datenbank_param = {" dbname ":" database "," schätzt_extent ":" true "," host ":" 0.0.0.0 "," Passwort ":" *** ***, "," Port ":" 5432 "," Typ ":" Postgis "," Benutzer ":" Kartener "," SRID ":" 4326 ",} ##### Kartendefinition ######################### MAP.Background_Color = Background_colormap.srs = "+ init = epsg: 4326" map.minimum_version = "2.0" map.font_directory = "Fonts" MAP.BUFFER_SIZE = 128 ################################## THEMAY_EARTH = Layer ("natural_arth") natural_earth.dataSource = natural_rasterbnd = Layer ("lockt) y Grenzen ") Bnd.DataSource = dataction_parambnd.table =" schema.boundaries "######### TYRES ######## Natural_Earth.style () = {Raster: {' Skalierung ':' bilinear '}} bnd.style ("blau") = {Zeile: {' Fill ':' RGB (255,0,0) ',' Strichbreite ':' 4 ' }, 'Filter': " = 'ESP'"} bnd.style ("blue") = {Zeile: {'Strichbreite': '12'} # Vererbung, der Filter ist Konserviert} Erstellen von Mapnik XML PYCNIK Beispiel.py -o Beispiel.xmlproduct's Homepage
Pycnik Zugehörige Software