Pycnik.

Python Äڵ忡¼­ MapNik ½ºÅ¸ÀÏ ½ÃÆ® »ý¼º µµ±¸
Áö±Ý ´Ù¿î·Îµå

Pycnik. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • GPL v3
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Ludovic Delaune
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • https://github.com/ldgeo/

Pycnik. ű×


Pycnik. ¼³¸í

Pycnik´Â ÆÄÀ̽ã ÄÚµå (ÄÚµù ±ÔÄ¢ Æ÷ÇÔ)¿¡¼­ MapNik XML ½ºÅ¸ÀÏ ½ÃÆ®±îÁö °£´ÜÇÑ ¹ø¿ª°¡ÀÔ´Ï´Ù. Pycnik Git Clone https://github.com/ldgeo/pycnik cd pycnik python setup.py installtesting Å×½ºÆ® : python -m unittest discover - ¡á Å×½ºÆ® / ½ÃÀÛÇϱâ Dynamic º¯¼ö ¼±¾ðÀ» »ç¿ëÇϹǷΠXML ¼±¾ð ±¸¹®°ú µ¿ÀÏÇÑ Å°¿öµå¸¦ »ç¿ëÇؾßÇÕ´Ï´Ù. example.py:from pycnik.model import * background_color = 'rgb (255,255,220)'Natural_Raster = { "À¯Çü": " GDAL ","ÆÄÀÏ ":"Natural_earth.tif "} database_param = {"dbname ":"µ¥ÀÌÅͺ£À̽º ","estimate_extent ":"true ","È£½ºÆ® ":"0.0.0.0 ","¾ÏÈ£ ":"*** *** ","Æ÷Æ® ":"5432 ","À¯Çü ":"postgis ","user ":"mapuser ","srid ":"4326 ",} ############ ##### ¸Ê Á¤ÀÇ ################# Map.background_color = "+ init = epsg : 4326"map.minimum_version = "2.0"map.font_directory = "fonts"map.buffer_size = 128 ######### layers ######## natural_earth = ·¹À̾î ( "natural_earth") Natural_earth.DataSource = Natural_RasterBND = ·¹À̾î ( "Coort Y °æ°è ") bnd.datasource = database_parambnd.table ="schema.boundaries "######### ½ºÅ¸ÀÏ ######## natural_earth.style () = {·¡½ºÅÍ : { ' scaling ':'bilinear '}} bnd.style ( "blue") = {¶óÀÎ : {'ä¿ì±â ':'RGB (255,0,0) ','½ºÆ®·ÎÅ© Æø ':'4 ' }, 'ÇÊÅÍ': " = 'ESP'"} Bnd.Style ( "Blue") = {¶óÀÎ : { '½ºÆ®·ÎÅ© - ³Êºñ': '12'} # »ó¼Ó, ÇÊÅÍ´Â conserved} mapnik xml pycnik example.py -o example.xmlProductÀÇ È¨ÆäÀÌÁö »ý¼º


Pycnik. °ü·Ã ¼ÒÇÁÆ®¿þ¾î