source: trunk/docs/kernel/install-windows.txt @ 240

Last change on this file since 240 was 240, checked in by jmckenna, 13 years ago

separate install docs

File size: 6.6 KB
Line 
1.. _kernel-installation-windows:
2
3Windows
4=======
5
6.. contents:: Table of Contents
7    :depth: 2
8    :backlinks: top
9
10Using OSGeo4W
11-------------
12
13Install OSGeo4W
14***************
15
16Download the OSGeo4W installer from  http://trac.osgeo.org/osgeo4w/, and install it with all the dependencies needed by your
17services (GDAL/OGR for example). The following libs are required: FastCGI, libxml, Python, cURL.
18
19Install other tools and libraries
20*********************************
21
22After installing OSGeo4W on your platform you'll need more GNU tools and libraries. `This package <http://www.zoo-project.org/dl/tool-win32.zip>`__
23contains full dependencies required to compile on WIN32 platform and this one contains `full runtime dependencies to place <http://www.zoo-project.org/dl/zoo-runtime.zip>`__
24in your c:\OSGeo4W\bin.
25
26Download and Install ZOO Kernel
27*******************************
28
29Download the `binary version <http://www.zoo-project.org/dl/zoo_loader.cgi>`__  of the ZOO Kernel for WIN32 then place it in the
30``C:\OSGeo4W\bin`` directory. Don't forget to place a ``main.cfg`` file in the same directory, you can use a modified copy of
31`this file <http://www.zoo-project.org/trac/browser/trunk/zoo-kernel/main.cfg>`__.
32
33Deploy ZOO Services Providers
34*****************************
35
36Your can use the binary version of the OGR Services Provider available from `here <http://www.zoo-project.org/dl/zoo-services-win32.zip>`__.
37Then place the two libraries with their respective .zcfg files in your local ``C:\OSGeo4W\bin`` directory.
38
39Testing
40*******
41
42Now you should be able to query your local ZOO Kernel.
43
44Compiling Using Your Own Libraries
45----------------------------------
46
47The following steps are for use with the Microsoft Visual Studio compiler (and tested with MSVC 2008).
48
491. Make sure the gnuwin32 tools ``bison.exe`` and ``flex.exe`` are found in your path.  You can download the GNUwin32 tools `here <http://www.zoo-project.org/dl/tool-win32.zip>`__.
50
512. Modify the file ``zoo-project\zoo-kernel\nmake.opt`` to point to your local libraries.  You can find a modified nmake.opt that points to local libs `here <http://www.zoo-project.org/trac/attachment/ticket/27/nmake.opt>`__.
52   You can also find a modified ``zoo-project\zoo-kernel\makefile.vc`` file `here <http://www.zoo-project.org/trac/attachment/ticket/27/makefile.vc>`__.
53   
543. Execute:
55
56   ::
57   
58     nmake /f makefile.vc
59     
604. A file ``zoo_loader.cgi`` should be created.  Note that if another file named ``zoo_loader.cgi.manifest`` is also created, you
61   will have to run another command:
62   
63   ::
64   
65     nmake /f makefile.vc embed-manifest
66     
675. Copy the files ``zoo_loader.cgi`` and ``main.cfg`` into your cgi-bin directory.
68
696. Using the command prompt, test the zoo-kernel by executing the following command:
70
71   ::
72   
73     D:\ms4w\Apache\cgi-bin> zoo_loader.cgi
74     
75   which should display a message such as:
76   
77   ::
78   
79     Content-Type: text/xml; charset=utf-8
80     Status: 200 OK
81     
82     <?xml version="1.0" encoding="utf-8"?>
83     <ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink" xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" xml:lang="en-US" version="1.1.0">
84       <ows:Exception exceptionCode="MissingParameterValue">
85         <ows:ExceptionText>Parameter &lt;request&gt; was not specified</ows:ExceptionText>
86       </ows:Exception>
87     </ows:ExceptionReport>
88     
897. Edit the file ``cgi-bin/main.cfg`` so that it contains values describing your WPS service.  An example of such
90   a file running on Windows is:
91   
92   ::
93   
94     [main]
95     encoding = utf-8
96     version = 1.0.0
97     serverAddress = http://localhost/
98     lang = en-CA
99     tmpPath=/ms4w/tmp/ms_tmp/
100     tmpUrl = /ms_tmp/
101     
102     [identification]
103     title = The Zoo WPS Development Server
104     abstract = Development version of ZooWPS. See http://www.zoo-project.org
105     fees = None
106     accessConstraints = none
107     keywords = WPS,GIS,buffer
108     
109     [provider]
110     providerName=Gateway Geomatics
111     providerSite=http://www.gatewaygeomatics.com
112     individualName=Jeff McKenna
113     positionName=Director
114     role=Dev
115     adressDeliveryPoint=1101 Blue Rocks Road
116     addressCity=Lunenburg
117     addressAdministrativeArea=False
118     addressPostalCode=B0J 2C0
119     addressCountry=ca
120     addressElectronicMailAddress=info@gatewaygeomatics.com
121     phoneVoice=False
122     phoneFacsimile=False
123     
1248. Open a web browser window, and execute a GetCapababilites request on your WPS service: http://localhost/cgi-bin/zoo_loader.cgi?request=GetCapabilities&service=WPS
125
126   The response should be displayed in your browser, such as:
127   
128   ::
129   
130     <wps:Capabilities xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd" service="WPS" xml:lang="en-US" version="1.0.0">
131     <ows:ServiceIdentification>
132       <ows:Title>The Zoo WPS Development Server</ows:Title>
133       <ows:Abstract>
134         Development version of ZooWPS. See http://www.zoo-project.org
135       </ows:Abstract>
136       <ows:Keywords>
137         <ows:Keyword>WPS</ows:Keyword>
138         <ows:Keyword>GIS</ows:Keyword>
139         <ows:Keyword>buffer</ows:Keyword>
140       </ows:Keywords>
141       <ows:ServiceType>WPS</ows:ServiceType>
142       <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
143       ...
144       
145Optionally Compile Individual Services
146**************************************
147
148An example could be the ``OGR base-vect-ops`` provider in the ``zoo-project\zoo-services\ogr\base-vect-ops`` directory. 
149
1501. Edit the makefile.vc located in that directory, and execute:
151
152   ::
153   
154     nmake /f makefile.vc
155     
156   Inside that same directory, the file ``cgi-env\ogr_service.zo`` should be created.
157   
1582. Copy all of the files inside ``zoo-services\ogr\base-vect-ops\cgi-env`` into your cgi-bin directory
159
1603. Test this service provider through the following URL:
161
162   http://localhost/cgi-bin/zoo_loader.cgi?request=Execute&service=WPS&version=1.0.0&Identifier=Buffer&DataInputs=BufferDistance=1@datatype=interger;InputPolygon=Reference@xlink:href=http%3A%2F%2Fwww.zoo-project.org%3A8082%2Fgeoserver%2Fows%3FSERVICE%3DWFS%26REQUEST%3DGetFeature%26VERSION%3D1.0.0%26typename%3Dtopp%3Astates%26SRS%3DEPSG%3A4326%26FeatureID%3Dstates.15
163   
164   The response displayed in your browser should contain:
165   
166   ::
167   
168     <wps:ProcessSucceeded>Service "Buffer" run successfully.</wps:ProcessSucceeded>
169
Note: See TracBrowser for help on using the repository browser.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png