Geoformalchemy.

°ø°£ µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ Áö¿øÀ» Ãß°¡ÇÏ´Â formchemyÀÇ È®Àå
Áö±Ý ´Ù¿î·Îµå

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

±¤°í

  • Rating:
  • ƯÇã:
  • MIT/X Consortium Lic...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Camptocamp SA
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://www.cartoweb.org/

Geoformalchemy. ű×


Geoformalchemy. ¼³¸í

°ø°£ µ¥ÀÌÅͺ£À̽º¿¡ ´ëÇÑ Áö¿øÀ» Ãß°¡ÇÏ´Â formchemyÀÇ È®Àå Geoformalchemy´Â Easy_installÀ» »ç¿ëÇÏ¿© Geoalchemy.InstallationInstallingÀÇ Çü»ó À¯ÇüÀ» »ç¿ëÇÏ´Â ¸ðµ¨ Ŭ·¡½º¿¡ ´ëÇÑ ¾ç½ÄÀ» »ý¼º ÇÒ ¼öÀÖ´Â Formchemy È®ÀåÀÚÀÔ´Ï´Ù. Easy_install Geoformalchemymanual ¼³Ä¡¸¦ À§ÇØ ¼Ò½º Äڵ带 ¾ÆÄ«ÀÌºê ¶Ç´Â º¹Á¦·Î ´Ù¿î·ÎµåÇϽʽÿÀ. Git Clone http : / / github.com/camptocamp/geoformalchemy.git geoformalchemythen ¼³Ä¡¸¦ ½ÇÇàÇϽʽÿÀ : CD Geoformalchemy / GeoformalChemyPython Pylons AppsplationGeOformalchemyÀÇ Setup.py Developsage´Â PyLons¿¡ ´ëÇÑ FormchemyÀÇ °ü¸® ÀÎÅÍÆäÀ̽º¸¦ ±¸ÃàÇÏ´Â Paster Pylons ÅÛÇø´À» Æ÷ÇÔÇÕ´Ï´Ù. , Áö¿ÀÆ÷ ¸ÞÀÏ Ã¼¸¶ ÅÛÇø´À¸·Î Paster ¸¸µé±â ½ÇÇà : $ paster create -t geo_fa your_app admin_controller¸¦ ÀÔ·ÂÇϽʽÿÀ (formchemyÀÇ °ü¸® ÄÁÆ®·Ñ·¯ Ãß°¡) : Trueenter Template_Engine (Mako / Genshi / Jinja2 / etc : ÅÛÇø´ ¾ð¾î) ] : MakoEnter SQLAlchemy (True / False : SQLAlchemy 0.5 ±¸¼º Æ÷ÇÔ) : True Geoformalchemy ExtensionÀÌ È°¼ºÈ­µÇ¾î¾ßÇÕ´Ï´Ù. your_app / forms / __ init__.py ÆÄÀÏÀ» ¿­°í ÆÄÀÏÀÇ ³¡¿¡ ´ÙÀ½ ÁÙÀ» Ãß°¡ÇϽʽÿÀ. # geoformalchemy.base °¡Á® ¿À±â GeometryFieldRendererfrom GeoMetryFieldSet.Default_Renderers = GeometryFieldRenderEgeOformalchemy°¡ ÀÌÁ¦ ¼³Á¤µÇ¾ú½À´Ï´Ù. Áöµµ°¡ Çü»ó ÇʵåÀÇ ¾ç½Ä¿¡ Ç¥½ÃµË´Ï´Ù. ¾ç½ÄÀ» ÀÛ¼º ÇؾßÇÏ´Â ¸ðµ¨ Ŭ·¡½º¿¡ ´ëÇØ formchemy¿¡ ¾Ë·Á¾ßÇÕ´Ï´Ù. ÀÌ·¸°ÔÇÏ·Á¸é ¸ðµ¨ Ŭ·¡½º ÆÄÀÏÀ» your_app / model / __ init__.py ÆÄÀÏ·Î °¡Á®¿É´Ï´Ù. ÀÚ¼¼ÇÑ ³»¿ëÀº Formchemy Documentation.ConfigurationField ¼öÁ¤À» ÂüÁ¶ÇϽʽÿÀ. ±âÇÏÇÐ ÇʵåÀÇ ·»´õ¸µÀº Ãß°¡ ¿É¼ÇÀ¸·Î »ç¿ëÀÚ Á¤ÀÇ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿¹¸¦ µé¾î Çʵ忡¼­ È£Ãâ µÈ ´ÙÀ½ ¸í·É¹®Àº »ç¿ëÀÚ ÁöÁ¤ ÇÊµå ¼¼Æ®ÀÇ the_geomÀÔ´Ï´Ù (your_app / forms / __ init __. py ÆÄÀÏ ³»ºÎ) : place = fieldset (model.place.place) place.the_geom.set (¿É¼Ç = ) geoformalchemy¿¡¼­ ´ÙÀ½ ¿É¼ÇÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. default_lat ¹× default_lon Çü»óÀÌ ¾ø°Å³ª »õ·Î ¸¸µé ¶§ ±âÇÏÇÐ,Áöµµ´Â (default_lon, default_lat)¿¡¼­ Áß¾Ó¿¡ À§Ä¡ÇÕ´Ï´Ù. ±×·¸Áö ¾ÊÀ¸¸éÁöµµ°¡ Geometry.ZoomÀÇ Á߽ɿ¡ Áß½ÉÀûÀÔ´Ï´Ù. START-UPÀÇ ÁÜ ·¹º§ ¹× MAP_HEIGHT ¸ÊÀÌ Ç¥½ÃµÇ´Â DIV ÄÁÅ×À̳ÊÀÇ Å©±â .BASE_LAYER ¹é±×¶ó¿îµå ¸ÊÀ¸·Î »ç¿ëµÇ´Â ¿ÀÇ ÇÒÀÎ ·¹À̾î, ¿¹¸¦ µé¸é ´ÙÀ½°ú °°½À´Ï´Ù. ( 'base_layer', 'new openlayers.layer.osm ( "OSM")') MAP_SRIDÁöµµ°¡ Çü»óº¸´Ù ´Ù¸¥ CRS¸¦ »ç¿ëÇÏ´Â °æ¿ì, ±âÇÏÇÐ ÀÌÀÌ CRS·Î Àç ÀμâµË´Ï´Ù. ¿¹¸¦ µé¸é ´ÙÀ½°ú °°½À´Ï´Ù. ( 'map_srid', 900913) OpenLayers_lib openlayers.js°¡ your_app / public / js / lib / openlayers.js¿¡ÀÖ´Â °æ¿ì ¿¹¸¦ µé¾î ´ÙÀ½ °æ·Î¸¦ »ç¿ëÇϽʽÿÀ. ( 'openlayers_lib' ' /js/lib/openlayers.js's'ss'show_map (±âº»°ª : true) show_mapÀÌ false·Î ¼³Á¤µÈ °æ¿ì Çü»óÀº ÅؽºÆ® ÀÔ·Â ÇÊµå ¾È¿¡ WKT ¹®ÀÚ¿­·Î Ç¥½ÃµË´Ï´Ù. ÆÄÀÏÀÇ ¸ð¾çÀ» º¯°æÇÏ·Á´Â ÆÄÀÏÀ» ¹Ù²Ù·Á´Â ÆÄÀÏÀ» ¹Ù²Ù·Á¸é formchemy ¹× geoformalchemy¿¡¼­ »ç¿ëÇÏ´Â ÅÛÇø®Æ® ÆÄÀÏÀ» ¼öÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ÅÛÇø´ ÆÄÀÏÀº your_app / templates / forms.geoformalchemy Æú´õ¿¡ ÀÖ½À´Ï´Ù. ¸ÊÇÎ ÆÄÀÏ ¸Ê ¸Ê ¸ÊÇÎ ÆÄÀÏÀ» »ç¿ëÇÕ´Ï´Ù. MAP_JS.MAKO ¹× MAP.MAKO. map.mako¿¡¼­ ÇÊµå ¼öÁ¤À¸·Î »ç¿ëÇÒ ¼öÀÖ´Â ´ëºÎºÐÀÇ ¿É¼ÇÀ» ¼³Á¤ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±×·¯³ª ÇÊµå ¼öÁ¤°ú ´Þ¸® ÅÛÇø´ ÆÄÀÏ¿¡ ¼³Á¤µÈ ¿É¼ÇÀº ¸ðµç ¸ðµ¨ÀÇ Áö¿À¸ÞÆ®¸® Çʵ忡 »ç¿ëµÇ´Â ¹Ý¸é ÇÊµå ¼öÁ¤À¸·Î ¼³Á¤µÈ ¿É¼ÇÀº ¼³Á¤µÈ Çʵ忡¸¸ »ç¿ëµË´Ï´Ù. <% # ±âº» ±¸¼º ¿É¼ÇÀÌ µÉ Çʵ忡¸¸ »ç¿ëµË´Ï´Ù # ÇÊµå ¿É¼ÇÀÌ setoptions = {} ¿É¼Ç = 10options = 45options = 40options = 512options = 256options '] ='»õ·Î¿î openlayerslayerwms ( "wms" "http:labsmetacartacomwmsvmap0" {layers : "basic"}) '¿É¼Ç ='http : openlayersorgapiopenlayersjs'%/> ¿¹¸¦ µé¾î ´õ ¸¹Àº openlayers ÄÁÆ®·ÑÀ» Ãß°¡Çϰųª µÎ ¹ø° ¹è°æ °èÃþÀ» Ãß°¡ÇÏ·Á¸é map_js.mako ÆÄÀÏÀ» ¼öÁ¤ÇÏ·Á¸é openlayers ¸ÊÀ» »ç¿ëÀÚ Á¤ÀÇÇÏ·Á¸é> ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽ã


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