pycnik

para generar las hojas de estilo de Mapnik desde Python Code
Descargar ahora

pycnik Clasificación y resumen

Anuncio publicitario

  • Rating:
  • Licencia:
  • GPL v3
  • Precio:
  • FREE
  • Nombre del editor:
  • Ludovic Delaune
  • Sitio web del editor:
  • https://github.com/ldgeo/

pycnik Etiquetas


pycnik Descripción

Pycnik es un traductor simple del código Python (con convenciones de codificación) a MAPNIK XML Stylesheet.Install Pycnik git clone https://github.com/ldgeo/pycnik cd pycnik python setup.py installtestingto ejecutar las pruebas: Python -M Unittest Discover - s Prueba / PRESENTANDO PRINCIPANTE Use la Declaración de variables dinámicas, por lo que debe usar las mismas palabras clave que la Declaración XML Syntax.Example.py.py:from Pycnik.Model Import * Background_Color = 'RGB (255,255,220)' Natural_raster = {"Type": " GDAL "," Archivo ":" Natural_earth.tif "} base de datos_param = {" dbname ":" Base de datos "," Estimate_Extent ":" True "," Host ":" 0.0.0.0 "," Contraseña ":" *** *** "," Puerto ":" 5432 "," Tipo ":" Postgis "," Usuario ":" MAPUSER "," SRID ":" 4326 ",} ############ ##### Mapa Definición ################ map.background_background_color = background_colormap.srs = "+ init = epsg: 4326" map.minimum_version = "2.0" map.font_directory = "fuentes" map.buffer_size = 128 ######### Capas ######## natural_earth = capa ("natural_earth") natural_earth.datasource = natural_rasterbnd = capa ("rayos y límites ") bnd.datasource = database_parambnd.table =" schema.boundaries "######### estilos ######## natural_earth.style () = {RASTER: {' Escalado ':' bilinear '}} bnd.style ("azul") = {Línea: {' Rellenar ':' RGB (255,0,0) ',' Ancho de trazo ':' 4 ' }, 'Filtro': " = 'esp'"} bnd.style ("azul") = {Línea: {'Ancho del trazo': '12'} # Herencia, el filtro es conservado} generar mapnik xml pycnik example.py -o Ejemply.xMlProduct's Página de inicio


pycnik Software relacionado

Clear

Identificar mediciones claras de los datos de irradiación solar ...

60

Descargar