Changeset 3380

Show
Ignore:
Timestamp:
03/02/10 06:00:29 (2 years ago)
Author:
cmoullet
Message:

Update getting started for Ubuntu

Location:
sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src
Files:
1 added
10 modified

Legend:

Unmodified
Added
Removed
  • sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/_sources/getting_started.txt

    r3379 r3380  
    22========================== 
    33 
    4 Start by creating a folder named ``MapFish`` in the ``C:\`` folder, this will 
     4Start by creating a folder named ``mapfish`` in the ``/home/live`` folder, this will 
    55be your working folder for this workshop. 
    66 
     
    99 
    1010Get the Workshop material by checking out 
    11 http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop with 
    12 Turtoise SVN.  For this open the explorer, go into ``C:\MapFish``, right-click 
    13 in the explorer window, choose ``SVN Checkout...``, enter the above URL, check 
    14 that the `Checkout directory` is ``C:\MapFish\mapfish_workshop``, and click 
    15 ``OK``. 
     11http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/ with svn:: 
    1612 
    17 Export the ``mapfish_workshop`` folder to your Apache document root, for 
     13    svn co http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/ 
     14 
     15Export the `mapfish_workshop_fossgis2010`` folder to your Apache document root, for 
    1816example by copying it in Apache's ``htdocs`` directory. You should be able to 
    19 load http://localhost/mapfish_workshop/printing in your web browser. 
     17load http://localhost/mapfish_workshop_fossgis2010/printing_src/_build/html/index.html in your web browser. 
    2018 
    2119Installing MapFish 
    2220------------------ 
    2321 
    24 To install MapFish, first make sure you've installed "Python for Windows extensions".  
    25 If not, you can get it here: http://sourceforge.net/projects/pywin32/ 
     22To install MapFish, open a terminal and first install the requirements:: 
    2623 
    27 Open a terminal command and follow these steps:: 
     24   sudo apt-get install python2.5 python2.5-dev 
     25   sudo apt-get install libgeos-3.0.0 postgresql postgis 
    2826 
    29     C:\>cd C:\MapFish 
    30     C:\MapFish>C:\Python25\python.exe mapfish_workshop\software\go-mapfish-framework-1.2.py env 
     27Then download the MapFish installer located in http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py:: 
     28 
     29   cd mapfish 
     30   curl http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py > go-mapfish-framework-1.2.py 
     31 
     32And follow this step:: 
     33 
     34    python25 go-mapfish-framework-1.2.py --no-site-packages env 
    3135 
    3236This command creates a virtual Python environment named ``env`` and installs 
     
    3539Now activate the virtual environment with:: 
    3640 
    37     C:\MapFish>env\Scripts\activate.bat 
     41    source env/bin/activate 
    3842 
    3943You command prompt should now look like this:: 
    4044 
    41     <env> C:\MapFish> 
     45    (env) $ 
    4246 
    4347To check that MapFish is correctly installed, enter:: 
    4448 
    45     <env> C:\MapFish>paster create --list-templates 
     49    (env) $ paster create --list-templates 
    4650 
    4751and check that the output is:: 
     
    5862----------------------------- 
    5963 
    60 It is recommended that you use FireFox and install `Firebug 
    61 <http://getfirebug.com/>`_ [#]_. Firebug is an add-on for Firefox that allows 
    62 you to debug JavaScript in any web page. Firebug requires Firefox and cannot be 
     64It is recommended that you use FireFox/Iceweasel and install `Firebug 
     65<http://getfirebug.com/>`_ [#]_ (Use version 1.4.5 for FireFox/Iceweasel 3.0). Firebug is an add-on for FireFox/Iceweasel that allows 
     66you to debug JavaScript in any web page. Firebug requires FireFox/Iceweasel and cannot be 
    6367used with any other web browser. Installing the `JSONView 
    6468<https://addons.mozilla.org/en-US/firefox/addon/10869>`_ extension is also 
  • sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/_sources/index.txt

    r3379 r3380  
    2929<http://creativecommons.org/licenses/by-sa/2.5/>`_. 
    3030 
    31 Authors: Éric Lemoine, François Van Der Biest 
     31Authors: Éric Lemoine, François Van Der Biest, Cédric Moullet 
  • sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/getting_started.html

    r3379 r3380  
    4848  <div class="section" id="module-1-getting-started"> 
    4949<h1>Module 1 - Getting Started<a class="headerlink" href="#module-1-getting-started" title="Permalink to this headline">¶</a></h1> 
    50 <p>Start by creating a folder named <tt class="docutils literal"><span class="pre">MapFish</span></tt> in the <tt class="docutils literal"><span class="pre">C:\</span></tt> folder, this will 
     50<p>Start by creating a folder named <tt class="docutils literal"><span class="pre">mapfish</span></tt> in the <tt class="docutils literal"><span class="pre">/home/live</span></tt> folder, this will 
    5151be your working folder for this workshop.</p> 
    5252<div class="section" id="getting-workshop-material"> 
    5353<h2>Getting workshop material<a class="headerlink" href="#getting-workshop-material" title="Permalink to this headline">¶</a></h2> 
    5454<p>Get the Workshop material by checking out 
    55 <a class="reference external" href="http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop">http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop</a> with 
    56 Turtoise SVN.  For this open the explorer, go into <tt class="docutils literal"><span class="pre">C:\MapFish</span></tt>, right-click 
    57 in the explorer window, choose <tt class="docutils literal"><span class="pre">SVN</span> <span class="pre">Checkout...</span></tt>, enter the above URL, check 
    58 that the <cite>Checkout directory</cite> is <tt class="docutils literal"><span class="pre">C:\MapFish\mapfish_workshop</span></tt>, and click 
    59 <tt class="docutils literal"><span class="pre">OK</span></tt>.</p> 
    60 <p>Export the <tt class="docutils literal"><span class="pre">mapfish_workshop</span></tt> folder to your Apache document root, for 
     55<a class="reference external" href="http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/">http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/</a> with svn:</p> 
     56<div class="highlight-python"><pre>svn co http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/</pre> 
     57</div> 
     58<p>Export the <cite>mapfish_workshop_fossgis2010`</cite> folder to your Apache document root, for 
    6159example by copying it in Apache&#8217;s <tt class="docutils literal"><span class="pre">htdocs</span></tt> directory. You should be able to 
    62 load <a class="reference external" href="http://localhost/mapfish_workshop/printing">http://localhost/mapfish_workshop/printing</a> in your web browser.</p> 
     60load <a class="reference external" href="http://localhost/mapfish_workshop_fossgis2010/printing_src/_build/html/index.html">http://localhost/mapfish_workshop_fossgis2010/printing_src/_build/html/index.html</a> in your web browser.</p> 
    6361</div> 
    6462<div class="section" id="installing-mapfish"> 
    6563<h2>Installing MapFish<a class="headerlink" href="#installing-mapfish" title="Permalink to this headline">¶</a></h2> 
    66 <p>To install MapFish, first make sure you&#8217;ve installed &#8220;Python for Windows extensions&#8221;. 
    67 If not, you can get it here: <a class="reference external" href="http://sourceforge.net/projects/pywin32/">http://sourceforge.net/projects/pywin32/</a></p> 
    68 <p>Open a terminal command and follow these steps:</p> 
    69 <div class="highlight-python"><pre>C:\&gt;cd C:\MapFish 
    70 C:\MapFish&gt;C:\Python25\python.exe mapfish_workshop\software\go-mapfish-framework-1.2.py env</pre> 
     64<p>To install MapFish, open a terminal and first install the requirements:</p> 
     65<div class="highlight-python"><pre>sudo apt-get install python2.5 python2.5-dev 
     66sudo apt-get install libgeos-3.0.0 postgresql postgis</pre> 
     67</div> 
     68<p>Then download the MapFish installer located in <a class="reference external" href="http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py">http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py</a>:</p> 
     69<div class="highlight-python"><pre>cd mapfish 
     70curl http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py &gt; go-mapfish-framework-1.2.py</pre> 
     71</div> 
     72<p>And follow this step:</p> 
     73<div class="highlight-python"><pre>python25 go-mapfish-framework-1.2.py --no-site-packages env</pre> 
    7174</div> 
    7275<p>This command creates a virtual Python environment named <tt class="docutils literal"><span class="pre">env</span></tt> and installs 
    7376MapFish and its dependencies into it.</p> 
    7477<p>Now activate the virtual environment with:</p> 
    75 <div class="highlight-python"><pre>C:\MapFish&gt;env\Scripts\activate.bat</pre> 
     78<div class="highlight-python"><pre>source env/bin/activate</pre> 
    7679</div> 
    7780<p>You command prompt should now look like this:</p> 
    78 <div class="highlight-python"><pre>&lt;env&gt; C:\MapFish&gt;</pre> 
     81<div class="highlight-python"><pre>(env) $</pre> 
    7982</div> 
    8083<p>To check that MapFish is correctly installed, enter:</p> 
    81 <div class="highlight-python"><pre>&lt;env&gt; C:\MapFish&gt;paster create --list-templates</pre> 
     84<div class="highlight-python"><pre>(env) $ paster create --list-templates</pre> 
    8285</div> 
    8386<p>and check that the output is:</p> 
     
    9396<div class="section" id="installing-firefox-extensions"> 
    9497<h2>Installing FireFox extensions<a class="headerlink" href="#installing-firefox-extensions" title="Permalink to this headline">¶</a></h2> 
    95 <p>It is recommended that you use FireFox and install <a class="reference external" href="http://getfirebug.com/">Firebug</a> <a class="footnote-reference" href="#id2" id="id1">[1]</a>. Firebug is an add-on for Firefox that allows 
    96 you to debug JavaScript in any web page. Firebug requires Firefox and cannot be 
     98<p>It is recommended that you use FireFox/Iceweasel and install <a class="reference external" href="http://getfirebug.com/">Firebug</a> <a class="footnote-reference" href="#id2" id="id1">[1]</a> (Use version 1.4.5 for FireFox/Iceweasel 3.0). Firebug is an add-on for FireFox/Iceweasel that allows 
     99you to debug JavaScript in any web page. Firebug requires FireFox/Iceweasel and cannot be 
    97100used with any other web browser. Installing the <a class="reference external" href="https://addons.mozilla.org/en-US/firefox/addon/10869">JSONView</a> extension is also 
    98101recommented, it will be used for viewing JSON responses in FireFox.</p> 
  • sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/index.html

    r3379 r3380  
    8888“AS IS,” without warranty of any kind either expressed or implied.</p> 
    8989<p>Documents under <a class="reference external" href="http://creativecommons.org/licenses/by-sa/2.5/">Creative Common License Attribution-Share Alike 2.5 Generic</a>.</p> 
    90 <p>Authors: Éric Lemoine, François Van Der Biest</p> 
     90<p>Authors: Éric Lemoine, François Van Der Biest, Cédric Moullet</p> 
    9191</div> 
    9292 
  • sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/_build/html/searchindex.js

    r3379 r3380  
    1 Search.setIndex({desctypes:{},terms:{represent:1,all:[6,1,4,2],code:[0,1,2,3,4,5,6],primem:0,x_0:0,queri:[6,1],global:2,datum:0,show_bug:4,osm:2,tooltip:5,follow:[0,1,7,2],whose:[1,2],privat:2,depend:[4,2,7],send:[0,6,2],srtext:0,init:2,program:[1,6,5],those:2,createmap:2,sens:2,addon:7,createtbaritem:[5,2],proj:0,sourc:1,string:[1,2],mapfishapp_init:[4,2],fals:[1,5],mergefilterdecor:4,util:4,alik:3,oceana:6,semi_major:0,brows:2,did:1,list:[5,4,7],geograph:1,item:2,tofeatur:6,mapfishapp:[1,4,2],quick:2,der:3,pleas:5,cgi:[5,4],impli:3,cfg:[4,2],direct:4,past:[7,2],second:6,aggreg:4,pass:2,mfbase:[4,2],click:[0,7],index:[6,1,4,2],what:2,sub:[4,2],createlayerstor:2,section:[5,4,2],abl:[0,4,7],triggereventdecor:4,overload:6,current:1,delet:[1,2],version:[4,2],"new":[0,5,2,1],net:7,createlay:[5,2],method:1,metadata:[6,1],widget:[0,5,2],themselv:4,gener:[3,1,2],here:[0,5,2,4,1,6,7],bodi:4,let:2,free:[1,2],trunk:[0,5],equal_to:6,modifi:[6,1,2],valu:[0,6],search:[0,3],proj4text:0,anotherwai:2,geometrytablemixin:[6,1],iconcl:5,base:[6,1,4,2],pick:2,action:[0,6,5,2],studi:[3,1,2],commonli:2,firefox:[3,4,7],mercat:[0,5],apach:7,app:[4,2],ask:2,"1sp":0,visibl:2,instal:[3,1,4,2,7],txt:4,resource_dir:4,unit:0,highli:1,from:[1,2],zip:1,rico:4,epsg:[0,1],regist:2,two:[6,1,4,2],next:5,stylesheet:4,call:2,python25:7,recommend:[1,7],type:[6,4,2],more:[5,4,2],src:[4,2],mozilla:[4,7],notic:2,site:5,progam:0,indic:5,paste_deploi:7,known:0,actual:[5,4,2],hold:4,must:[0,6,1,4],psql:1,graphic:2,setup:[1,2],work:[1,7,2],dev:[5,2],"\u00e9ric":3,can:[0,5,2,4,1,6,7],learn:[1,5,4,2],under:3,root:[4,2,7],def:[6,1],control:[0,6,5,2,1],sqlite:1,prompt:7,explor:[1,7],give:[0,2],share:[3,2],templat:[1,7,2],high:2,tag:2,want:[5,2],mapnik:2,end:4,goal:2,rather:5,charset:4,restart:1,geojson:[6,1],latitude_of_origin:0,write:[1,2],searchcomplet:[0,6],mapfish_layout:5,"__init__":1,pure:2,tile:[5,2],xhtml:4,simpl:[3,6],css:[4,2],updat:1,map:[0,5,2,4,1,6],product:2,resourc:[1,4],singular:1,max:5,earlier:0,befor:[1,4],mai:[0,5],turtois:7,autom:2,data:[3,1,2],demonstr:6,handl:2,autoload_with:[6,1],third:2,author:[0,3],postgi:1,element:4,inform:[0,2],"switch":[1,2],environ:[4,7],spheric:5,allow:7,enter:[1,7,2],geomcolumn:1,talk:2,help:[5,4],move:1,becaus:4,through:[1,7,2],apidoc:[0,5,2],paramet:[0,5],create_default_filt:6,monitor:2,img:4,how:[0,5,4,2,1],fix:4,window:7,projc:0,main:[5,2],pixel:4,them:2,"return":[0,6,5,2,1],env:[1,4,2,7],thei:2,python:[1,4,2,7],default_filt:6,bound:4,answer:2,now:[6,1,4,2,7],complain:0,choic:2,name:[0,5,2,4,1,7],edit:[0,5,4,2,1],config:[1,2],bonu:[0,6,5,1],mode:[0,4],each:1,debug:[4,2,7],address:2,side:2,addtbaritem:0,mapfish_workshop:[1,7],auth_nam:0,singlefil:4,meta:4,"static":2,connect:[3,1,2],openlay:[0,5,4,2],our:1,y_0:0,extract:1,event:6,out:[5,7],variabl:1,reload:[1,5,4,2],profit:5,miss:4,semi_minor:0,your:[0,5,2,4,1,7],content:[3,4],vector:[6,5],adapt:[4,2],rel:4,print:[4,7],plural:1,correct:[0,6,5],postgr:1,insid:2,advanc:[3,6],geogc:0,driver:1,the_geom_simpl:6,differ:[5,2],togglegroup:5,small:4,ajax:0,zoombox:5,spatialit:1,put:[1,2],org:[0,5,2,4,1,6,7],relat:2,care:[4,2],spatial_ref_si:0,indent:1,countriescontrol:[6,1],launch:[1,4],recom:7,filter:6,thing:[4,2],place:4,outsid:2,geometri:[6,1],top:2,first:[6,1,4,7],oper:[1,4],softwar:7,render:2,onc:4,arrai:[0,5],qualiti:2,false_east:0,done:[6,1,4,2],drastic:4,oppos:5,arguments_str:4,open:[1,7,2],size:4,given:[5,2],script:[4,2,7],interact:2,system:[0,1],messag:4,statement:[0,1],termin:7,store:2,listen:[0,6,1,2],xmln:4,consol:4,option:[0,5,4],especi:2,namespac:2,tool:[3,5,4,2],copi:[4,7],park:5,specifi:[1,4],hut:5,compressor:4,part:[4,2],mostli:2,haven:5,png:5,serv:[1,2],kind:3,mapserv_c2corg:5,provid:[0,1,2,3,4,5,6],tree:2,structur:2,project:[0,7],browser:[1,5,4,2,7],latitud:0,basecontrol:1,ani:[3,5,7,2],packag:[4,2,7],shell:1,pylon:7,have:[0,5,2],tabl:[6,1,2],need:[0,1,4,2],north:0,exclud:4,saw:[0,2],engin:[6,1,2],built:4,lib:[0,5,4,2],callback:2,rout:[1,5],sandbox:7,port:[1,2],note:[0,5,4,2,1],also:[6,7,2],client:[0,4,2,7],lonlat:4,build:[3,4,2],which:[1,2],combin:6,singl:[5,4],simplifi:6,begin:[4,2],sure:7,distribut:2,setuptool:7,previou:[0,4],compress:4,most:2,regular:2,deploi:[7,2],choos:[7,2],the_geom:[6,1],"class":[0,5,2,4,1,6],warranti:3,don:[1,5,4],slider:2,url:[0,5,7,1],doc:[0,6,5,2,1],later:[5,2],request:[0,6,1,4,2],ext:[4,2],axi:0,camptocamp:[3,5,7],show:[0,1,4],text:[4,2],verbos:4,treepanel:2,session:1,corner:4,lemoin:3,involv:[6,5],onli:[1,6,5,4],layout:2,just:[0,4,2],configur:[0,5,2,4,1,6],activ:7,should:[0,5,2,4,1,7],jsonview:7,theme:4,folder:[1,4,2,7],contribut:5,variou:2,get:[0,1,2,3,4,5,6,7],express:3,watch:1,autoload:[6,1],cannot:[7,2],rest:[1,2],mention:2,toolbox:2,him:2,requir:[6,5,7],shp:1,mapper:[6,1],bat:7,bar:5,enabl:[0,1,7],organ:5,jstool:4,"public":[4,2],grai:4,common:3,contain:[1,4,2],paster:[1,7,2],where:[1,4,2],view:[7,2],countries_t:[6,1],set:[1,6,5],knowledg:6,mapfish_cli:[7,2],see:[0,5,2,4,1,6],getfirebug:7,result:[0,4],respons:[0,6,1,7,2],correctli:7,databas:[0,6,1,2,3],review:2,label:6,c2c:5,written:5,won:2,between:1,"import":[1,4],equiv:4,attribut:[3,1],popup:[0,6],javascript:[3,5,4,2,7],layerstor:2,extens:[3,7],job:[6,1],entir:2,extent:5,come:2,popul:[0,1,2],disclaim:3,last:[4,2],plugin:[4,7],space:1,etc:[4,2],tour:2,instanc:[5,4,2],logic:[6,1],countri:[0,6,1],com:[7,2],column_properti:6,comment:[1,4],lang:4,point:[1,5,4,2],format:[1,6,5],sercic:6,featur:[6,1],path:4,typic:2,assum:2,compos:2,empti:[1,5],compon:2,json:[6,1,7],workshop:[0,7,4,2,3],toolbar:[5,2],modif:6,addit:6,artemkhodush:2,both:1,"__table__":[6,1],imag:5,test_countri:1,argument:2,coordin:1,minifi:[4,2],togeth:5,func:6,shapefil:1,central_meridian:0,present:1,"case":[0,1],look:[0,5,4,2,7],servic:[0,1,2,3,5,6],properti:[6,1,4],sourceforg:7,defin:[1,2],"while":4,abov:[4,2,7],error:4,xtheme:4,firebug:[4,7],openstreetmap:2,layer:[3,5,2,4,1,6],lon_0:0,false_north:0,ctrl:2,readi:[1,2],wkb:6,readm:4,non:[1,5,4],filename2:4,itself:2,uncom:4,tediou:2,sever:6,mako:2,"fran\u00e7oi":3,develop:[6,1,2],clearli:2,minim:7,perform:4,parti:2,make:[0,5,7,2],belong:1,minif:2,proce:2,html:[0,5,2,4,1,6],decod:6,output_dir:4,singletil:5,pai:1,grahic:2,document:[0,7,2,3],infer:2,http:[0,5,2,4,1,6,7],href:4,utf8:4,"null":0,user:[0,5,4,2],applic:[3,5,2,4,1,6,7],lat_t:0,climb:5,tune:1,layercontain:2,task:[0,6,5,2,1],framework:[1,4,2,7],entri:[4,2],without:[3,4],bugzilla:4,exampl:[6,5,7,2],command:[1,4,2,7],basic_packag:7,thi:[0,5,2,4,1,6,7],interpol:4,model:[6,1,2],self:[6,1],load:[6,4,2,7],identifi:1,paus:0,execut:[6,2],jsbuild:[4,2],basetyp:4,pywin32:7,tcp:2,kill:1,aspect:2,mysql:1,languag:4,web:[0,1,2,3,6,7],xmlhttprequest:4,greenwich:0,expos:2,displaydefaultpopup:0,add:[0,5,7,2,1],filename1:4,east:0,openjsan:2,modul:[0,1,2,3,4,5,6,7],take:[1,5,2],bin:[1,5],shp2pgsql:1,australia:5,template_postgi:1,transpar:5,read:1,zoomout:5,grid:5,know:[0,5,4],librairi:2,world:0,licens:3,insert:0,like:[0,5,4,2,7],specif:[1,5,2],zoom:[0,5,2],server:2,collect:1,api:[6,1],necessari:2,either:3,output:[4,7],page:[7,2],www:[0,5,2,4,1,6,7],right:7,often:2,concat:4,allowdepress:5,some:[1,2],back:2,contin:6,sampl:2,spheroid:0,mapfish:[0,1,2,3,4,5,6,7],proper:4,home:2,librari:[0,5,2],basic:[7,2],mappanel:2,protocol:[6,1,4],biest:3,when:[0,1,2],substitut:1,exit:4,select:6,toolkit:6,localhost:[1,4,2,7],refer:6,auth_srid:0,core:[0,1,4],object:[0,6,5,2,1],run:[0,4,2],power:6,uncompress:4,gmflocat:4,usag:4,step:[1,7],srid:0,post:1,after:[1,5,4],panel:2,comparison:6,about:[0,5,4,2],postgresql:1,would:5,column:[6,1],materi:[3,7],extj:2,degre:0,act:2,produc:4,compare_filt:6,own:2,geoext:[0,5,4,2],automat:2,three:1,stop:2,creativ:3,orm:6,onreadi:2,wrap:0,chang:0,merc:0,nadgrid:0,merg:4,van:3,support:1,hex:6,overwrit:2,custom:[3,6,5,2,1],avail:7,start:[3,1,7,2],reli:[0,1,2],trigger:0,interfac:[0,5,4,2],includ:[6,1,4,2],replac:[6,1],"var":4,"function":[0,1,2,3,4,5,6],reduc:4,head:4,properli:4,scale_factor:0,form:4,mapfishapp_layout:[0,5,4,2],sqlalchemi:[6,1,2],link:4,line:[1,2],"true":[1,6,5,2],bug:4,viewport:2,info:4,possibl:4,whether:2,checkout:7,displai:[0,6,5],record:1,limit:1,"export":7,pgadmin:1,creat:[0,1,2,3,4,5,6,7],dure:2,repres:[1,2],mainli:2,exist:1,ini:[1,2],file:[0,5,4,2,1],check:[1,4,2,7],again:[1,5,2],readonli:1,polygon:5,titl:4,pylons_minim:7,virtual:[4,7],"default":[6,5,4,2],other:[4,2,7],spatial:1,test:[1,2],you:[0,5,2,4,1,6,7],node:2,draw:[6,5],no_def:0,googl:[0,5,4],sql:[6,1],geodet:0,longitud:0,stai:1,svn:7,searcher:[0,6,4],receiv:[6,1],directori:[4,7],single_fil:4,htdoc:7,descript:1,summit:5,time:[1,4,2],push:5,profil:[3,4,2]},titles:["Module 6 - Adding search functionality","Module 5 - Creating Web Services","Module 2 - Creating Application","MapFish Workshop","Module 4 - Building JavaScript","Module 3 - Customizing the Application","Module 7 - Customizing the web service","Module 1 - Getting Started"],modules:{},descrefs:{},filenames:["adding_search_functionality","creating_webservice","creating_application","index","building_javascript","customizing_application","customizing_webservice","getting_started"]}) 
     1Search.setIndex({desctypes:{},terms:{represent:1,all:[6,1,4,2],code:[0,1,2,3,4,5,6],primem:0,x_0:0,queri:[6,1],global:2,datum:0,show_bug:4,osm:2,tooltip:5,follow:[0,1,7,2],whose:[1,2],privat:2,equal_to:6,send:[0,6,2],srtext:0,init:2,program:[1,6,5],those:2,createmap:2,sens:2,addon:7,createtbaritem:[5,2],proj:0,sourc:[1,7],string:[1,2],fals:[1,5],mergefilterdecor:4,util:4,alik:3,oceana:6,semi_major:0,brows:2,did:1,list:[5,4,7],geograph:1,item:2,tofeatur:6,mapfishapp:[1,4,2],quick:2,der:3,pleas:5,cgi:[5,4],impli:3,cfg:[4,2],direct:4,past:[7,2],second:6,aggreg:4,pass:2,download:7,mfbase:[4,2],click:0,index:[6,1,4,2,7],what:2,sub:[4,2],createlayerstor:2,section:[5,4,2],abl:[0,4,7],triggereventdecor:4,overload:6,current:1,delet:[1,2],version:[4,2,7],"new":[0,5,2,1],net:[],createlay:[5,2],method:1,metadata:[6,1],widget:[0,5,2],themselv:4,gener:[3,1,2],here:[0,5,2,4,1,6],bodi:4,let:2,free:[1,2],trunk:[0,5],depend:[4,2,7],modifi:[6,1,2],valu:[0,6],search:[0,3],proj4text:0,anotherwai:2,geometrytablemixin:[6,1],iconcl:5,base:[6,1,4,2],pick:2,action:[0,6,5,2],chang:0,commonli:2,firefox:[3,4,7],mercat:[0,5],apach:7,app:[4,2],apt:7,ask:2,"1sp":0,visibl:2,instal:[3,1,4,2,7],txt:4,resource_dir:4,unit:0,highli:1,from:[1,2],zip:1,rico:4,epsg:[0,1],regist:2,two:[6,1,4,2],next:5,stylesheet:4,call:2,python25:7,recommend:[1,7],type:[6,4,2],more:[5,4,2],src:[4,2],mozilla:[4,7],notic:2,site:[5,7],progam:0,indic:5,paste_deploi:7,known:0,actual:[5,4,2],hold:4,must:[0,6,1,4],psql:1,graphic:2,setup:[1,2],work:[1,7,2],dev:[5,7,2],"\u00e9ric":3,can:[0,5,2,4,1,6],learn:[1,5,4,2],under:3,root:[4,2,7],def:[6,1],control:[0,6,5,2,1],sqlite:1,prompt:7,explor:1,give:[0,2],sudo:7,share:[3,2],templat:[1,7,2],high:2,tag:2,want:[5,2],mapnik:2,end:4,goal:2,rather:5,charset:4,restart:1,geojson:[6,1],latitude_of_origin:0,write:[1,2],searchcomplet:[0,6],mapfish_layout:5,"__init__":1,pure:2,tile:[5,2],xhtml:4,simpl:[3,6],css:[4,2],updat:1,map:[0,5,2,4,1,6],product:2,resourc:[1,4],singular:1,max:5,earlier:0,befor:[1,4],mai:[0,5],turtois:[],autom:2,data:[3,1,2],demonstr:6,handl:2,printing_src:7,autoload_with:[6,1],third:2,author:[0,3],postgi:[1,7],element:4,inform:[0,2],"switch":[1,2],environ:[4,7],spheric:5,allow:7,enter:[1,7,2],geomcolumn:1,talk:2,help:[5,4],move:1,becaus:4,through:[1,7,2],apidoc:[0,5,2],paramet:[0,5],create_default_filt:6,monitor:2,img:4,how:[0,5,4,2,1],fix:4,window:[],projc:0,main:[5,2],pixel:4,them:2,"return":[0,6,5,2,1],env:[1,4,2,7],thei:2,python:[1,4,2,7],default_filt:6,bound:4,answer:2,now:[6,1,4,2,7],complain:0,choic:2,name:[0,5,2,4,1,7],edit:[0,5,4,2,1],config:[1,2],bonu:[0,6,5,1],mode:[0,4],each:1,debug:[4,2,7],address:2,side:2,addtbaritem:0,mapfish_workshop:1,auth_nam:0,singlefil:4,meta:4,"static":2,connect:[3,1,2],our:1,extract:1,event:6,out:[5,7],variabl:1,reload:[1,5,4,2],profit:5,miss:4,semi_minor:0,your:[0,5,2,4,1,7],content:[3,4],vector:[6,5],adapt:[4,2],rel:4,print:4,plural:1,correct:[0,6,5],postgr:1,insid:2,advanc:[3,6],geogc:0,driver:1,the_geom_simpl:6,differ:[5,2],togglegroup:5,small:4,ajax:0,zoombox:5,spatialit:1,put:[1,2],org:[0,5,2,4,1,6,7],relat:2,care:[4,2],spatial_ref_si:0,indent:1,countriescontrol:[6,1],launch:[1,4],recom:7,filter:6,thing:[4,2],place:4,outsid:2,geometri:[6,1],top:2,first:[6,1,4,7],oper:[1,4],softwar:[],render:2,onc:4,arrai:[0,5],qualiti:2,false_east:0,mapfish_workshop_fossgis2010:7,done:[6,1,4,2],drastic:4,oppos:5,arguments_str:4,open:[1,7,2],size:4,given:[5,2],script:[4,2],interact:2,system:[0,1],messag:4,statement:[0,1],termin:7,store:2,listen:[0,6,1,2],shell:1,consol:4,option:[0,5,4],especi:2,namespac:2,tool:[3,5,4,2],copi:[4,7],park:5,specifi:[1,4],hut:5,compressor:4,part:[4,2],mostli:2,haven:5,png:5,serv:[1,2],kind:3,mapserv_c2corg:5,provid:[0,1,2,3,4,5,6],tree:2,structur:2,project:0,browser:[1,5,4,2,7],latitud:0,basecontrol:1,ani:[3,5,7,2],packag:[4,2,7],xmln:4,pylon:7,have:[0,5,2],tabl:[6,1,2],need:[0,1,4,2],north:0,exclud:4,saw:[0,2],engin:[6,1,2],built:4,lib:[0,5,4,2],callback:2,rout:[1,5],sandbox:7,port:[1,2],note:[0,5,4,2,1],also:[6,7,2],without:[3,4],lonlat:4,build:[3,4,2],which:[1,2],combin:6,singl:[5,4],simplifi:6,begin:[4,2],sure:[],distribut:2,setuptool:7,previou:[0,4],compress:4,most:2,regular:2,deploi:[7,2],choos:2,the_geom:[6,1],"class":[0,5,2,4,1,6],warranti:3,"_build":7,todo:[],don:[1,5,4],slider:2,url:[0,5,1],doc:[0,6,5,2,1],later:[5,2],request:[0,6,1,4,2],ext:[4,2],axi:0,camptocamp:[3,5,7],show:[0,1,4],text:[4,2],verbos:4,treepanel:2,session:1,climb:5,corner:4,lemoin:3,involv:[6,5],onli:[1,6,5,4],locat:7,just:[0,4,2],configur:[0,5,2,4,1,6],activ:7,should:[0,5,2,4,1,7],jsonview:7,theme:4,folder:[1,4,2,7],contribut:5,variou:2,get:[0,1,2,3,4,5,6,7],express:3,watch:1,autoload:[6,1],cannot:[7,2],rest:[1,2],mention:2,toolbox:2,him:2,requir:[6,5,7],layout:2,shp:1,mapper:[6,1],bat:[],bar:5,enabl:[0,1,7],organ:5,jstool:4,y_0:0,grai:4,common:3,contain:[1,4,2],paster:[1,7,2],where:[1,4,2],view:[7,2],countries_t:[6,1],set:[1,6,5],knowledg:6,mapfish_cli:[7,2],see:[0,5,2,4,1,6],getfirebug:7,result:[0,4],respons:[0,6,1,7,2],correctli:7,databas:[0,6,1,2,3],review:2,label:6,c2c:5,written:5,won:2,moullet:3,between:1,"import":[1,4],equiv:4,attribut:[3,1],popup:[0,6],javascript:[3,5,4,2,7],layerstor:2,extens:[3,7],job:[6,1],entir:2,extent:5,come:2,popul:[0,1,2],disclaim:3,last:[4,2],plugin:[4,7],space:1,etc:[4,2],tour:2,instanc:[5,4,2],logic:[6,1],countri:[0,6,1],com:[7,2],column_properti:6,comment:[1,4],lang:4,point:[1,5,4,2],format:[1,6,5],sercic:6,featur:[6,1],non:[1,5,4],path:4,typic:2,assum:2,compos:2,empti:[1,5],compon:2,json:[6,1,7],workshop:[0,7,4,2,3],toolbar:[5,2],modif:6,addit:6,artemkhodush:2,both:1,"__table__":[6,1],imag:5,no_def:0,argument:2,coordin:1,minifi:[4,2],togeth:5,func:6,shapefil:1,central_meridian:0,present:1,"case":[0,1],look:[0,5,4,2,7],servic:[0,1,2,3,5,6],properti:[6,1,4],sourceforg:[],defin:[1,2],"while":4,abov:[4,2],error:4,xtheme:4,firebug:[4,7],openstreetmap:2,layer:[3,5,2,4,1,6],lon_0:0,false_north:0,ctrl:2,readi:[1,2],wkb:6,readm:4,filename1:4,filename2:4,itself:2,uncom:4,tediou:2,sever:6,mako:2,"fran\u00e7oi":3,develop:[6,1,2],clearli:2,minim:7,perform:4,parti:2,make:[0,5,2],belong:1,minif:2,proce:2,html:[0,5,2,4,1,6,7],decod:6,output_dir:4,singletil:5,pai:1,grahic:2,document:[0,7,2,3],infer:2,http:[0,5,2,4,1,6,7],href:4,utf8:4,"null":0,mapfishapp_init:[4,2],applic:[3,5,2,4,1,6,7],"c\u00e9dric":3,lat_t:0,studi:[3,1,2],tune:1,iceweasel:7,task:[0,6,5,2,1],framework:[1,4,2,7],entri:[4,2],bugzilla:4,exampl:[6,5,7,2],command:[1,4,2,7],basic_packag:7,thi:[0,5,2,4,1,6,7],interpol:4,model:[6,1,2],self:[6,1],load:[6,4,2,7],identifi:1,paus:0,execut:[6,2],jsbuild:[4,2],basetyp:4,pywin32:[],tcp:2,kill:1,aspect:2,mysql:1,languag:4,web:[0,1,2,3,6,7],xmlhttprequest:4,greenwich:0,expos:2,displaydefaultpopup:0,add:[0,5,7,2,1],east:0,openjsan:2,modul:[0,1,2,3,4,5,6,7],take:[1,5,2],bin:[1,5,7],shp2pgsql:1,australia:5,template_postgi:1,transpar:5,read:1,zoomout:5,grid:5,know:[0,5,4],librairi:2,world:0,licens:3,python2:7,insert:0,like:[0,5,4,2,7],specif:[1,5,2],zoom:[0,5,2],server:2,collect:1,api:[6,1],necessari:2,either:3,output:[4,7],page:[7,2],geoext:[0,5,4,2],right:[],often:2,concat:4,allowdepress:5,some:[1,2],back:2,contin:6,sampl:2,spheroid:0,mapfish:[0,1,2,3,4,5,6,7],proper:4,home:[7,2],librari:[0,5,2],basic:[7,2],mappanel:2,protocol:[6,1,4],biest:3,when:[0,1,2],substitut:1,exit:4,select:6,toolkit:6,localhost:[1,4,2,7],refer:6,auth_srid:0,core:[0,1,4],object:[0,6,5,2,1],run:[0,4,2],power:6,uncompress:4,gmflocat:4,usag:4,step:[1,7],srid:0,post:1,after:[1,5,4],panel:2,comparison:6,about:[0,5,4,2],postgresql:[1,7],would:5,column:[6,1],materi:[3,7],extj:2,degre:0,act:2,produc:4,compare_filt:6,client:[0,4,2,7],own:2,www:[0,5,2,4,1,6,7],automat:2,three:1,stop:2,creativ:3,orm:6,onreadi:2,wrap:0,openlay:[0,5,4,2],merc:0,nadgrid:0,libgeo:7,merg:4,van:3,support:1,hex:6,live:7,overwrit:2,custom:[3,6,5,2,1],avail:7,start:[3,1,7,2],reli:[0,1,2],trigger:0,interfac:[0,5,4,2],includ:[6,1,4,2],replac:[6,1],"var":4,"function":[0,1,2,3,4,5,6],reduc:4,head:4,properli:4,scale_factor:0,form:4,mapfishapp_layout:[0,5,4,2],sqlalchemi:[6,1,2],link:4,line:[1,2],"true":[1,6,5,2],bug:4,viewport:2,info:4,possibl:4,whether:2,checkout:[],displai:[0,6,5],record:1,limit:1,"export":7,pgadmin:1,creat:[0,1,2,3,4,5,6,7],dure:2,repres:[1,2],mainli:2,exist:1,ini:[1,2],file:[0,5,4,2,1],curl:7,check:[1,4,2,7],again:[1,5,2],readonli:1,polygon:5,titl:4,user:[0,5,4,2],pylons_minim:7,virtual:[4,7],"default":[6,5,4,2],other:[4,2,7],spatial:1,test:[1,2],you:[0,5,2,4,1,6,7],node:2,draw:[6,5],test_countri:1,googl:[0,5,4],"public":[4,2],sql:[6,1],geodet:0,layercontain:2,longitud:0,stai:1,svn:7,searcher:[0,6,4],receiv:[6,1],directori:[4,7],single_fil:4,htdoc:7,descript:1,summit:5,time:[1,4,2],push:5,profil:[3,4,2]},titles:["Module 6 - Adding search functionality","Module 5 - Creating Web Services","Module 2 - Creating Application","MapFish Workshop","Module 4 - Building JavaScript","Module 3 - Customizing the Application","Module 7 - Customizing the web service","Module 1 - Getting Started"],modules:{},descrefs:{},filenames:["adding_search_functionality","creating_webservice","creating_application","index","building_javascript","customizing_application","customizing_webservice","getting_started"]}) 
  • sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/getting_started.txt

    r3378 r3380  
    22========================== 
    33 
    4 Start by creating a folder named ``MapFish`` in the ``C:\`` folder, this will 
     4Start by creating a folder named ``mapfish`` in the ``/home/live`` folder, this will 
    55be your working folder for this workshop. 
    66 
     
    99 
    1010Get the Workshop material by checking out 
    11 http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop with 
    12 Turtoise SVN.  For this open the explorer, go into ``C:\MapFish``, right-click 
    13 in the explorer window, choose ``SVN Checkout...``, enter the above URL, check 
    14 that the `Checkout directory` is ``C:\MapFish\mapfish_workshop``, and click 
    15 ``OK``. 
     11http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/ with svn:: 
    1612 
    17 Export the ``mapfish_workshop`` folder to your Apache document root, for 
     13    svn co http://www.mapfish.org/svn/mapfish/sandbox/camptocamp/mapfish_workshop_fossgis2010/ 
     14 
     15Export the `mapfish_workshop_fossgis2010`` folder to your Apache document root, for 
    1816example by copying it in Apache's ``htdocs`` directory. You should be able to 
    19 load http://localhost/mapfish_workshop/printing in your web browser. 
     17load http://localhost/mapfish_workshop_fossgis2010/printing_src/_build/html/index.html in your web browser. 
    2018 
    2119Installing MapFish 
    2220------------------ 
    2321 
    24 To install MapFish, first make sure you've installed "Python for Windows extensions".  
    25 If not, you can get it here: http://sourceforge.net/projects/pywin32/ 
     22To install MapFish, open a terminal and first install the requirements:: 
    2623 
    27 Open a terminal command and follow these steps:: 
     24   sudo apt-get install python2.5 python2.5-dev 
     25   sudo apt-get install libgeos-3.0.0 postgresql postgis 
    2826 
    29     C:\>cd C:\MapFish 
    30     C:\MapFish>C:\Python25\python.exe mapfish_workshop\software\go-mapfish-framework-1.2.py env 
     27Then download the MapFish installer located in http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py:: 
     28 
     29   cd mapfish 
     30   curl http://www.mapfish.org/downloads/go-mapfish-framework-1.2.py > go-mapfish-framework-1.2.py 
     31 
     32And follow this step:: 
     33 
     34    python25 go-mapfish-framework-1.2.py --no-site-packages env 
    3135 
    3236This command creates a virtual Python environment named ``env`` and installs 
     
    3539Now activate the virtual environment with:: 
    3640 
    37     C:\MapFish>env\Scripts\activate.bat 
     41    source env/bin/activate 
    3842 
    3943You command prompt should now look like this:: 
    4044 
    41     <env> C:\MapFish> 
     45    (env) $ 
    4246 
    4347To check that MapFish is correctly installed, enter:: 
    4448 
    45     <env> C:\MapFish>paster create --list-templates 
     49    (env) $ paster create --list-templates 
    4650 
    4751and check that the output is:: 
     
    5862----------------------------- 
    5963 
    60 It is recommended that you use FireFox and install `Firebug 
    61 <http://getfirebug.com/>`_ [#]_. Firebug is an add-on for Firefox that allows 
    62 you to debug JavaScript in any web page. Firebug requires Firefox and cannot be 
     64It is recommended that you use FireFox/Iceweasel and install `Firebug 
     65<http://getfirebug.com/>`_ [#]_ (Use version 1.4.5 for FireFox/Iceweasel 3.0). Firebug is an add-on for FireFox/Iceweasel that allows 
     66you to debug JavaScript in any web page. Firebug requires FireFox/Iceweasel and cannot be 
    6367used with any other web browser. Installing the `JSONView 
    6468<https://addons.mozilla.org/en-US/firefox/addon/10869>`_ extension is also 
  • sandbox/camptocamp/mapfish_workshop_fossgis2010/printing_src/index.txt

    r3378 r3380  
    2929<http://creativecommons.org/licenses/by-sa/2.5/>`_. 
    3030 
    31 Authors: Éric Lemoine, François Van Der Biest 
     31Authors: Éric Lemoine, François Van Der Biest, Cédric Moullet