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

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

add pointer to prerequisites

File size: 6.8 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
47.. note::
48   You must be sure to perform the :ref:`prerequisite steps <kernel-installation-prereq>` before compiling the ZOO Kernel.
49
50The following steps are for use with the Microsoft Visual Studio compiler (and tested with MSVC 2008).
51
521. 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>`__.
53
542. 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>`__.
55   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>`__.
56   
573. Execute:
58
59   ::
60   
61     nmake /f makefile.vc
62     
634. A file ``zoo_loader.cgi`` should be created.  Note that if another file named ``zoo_loader.cgi.manifest`` is also created, you
64   will have to run another command:
65   
66   ::
67   
68     nmake /f makefile.vc embed-manifest
69     
705. Copy the files ``zoo_loader.cgi`` and ``main.cfg`` into your cgi-bin directory.
71
726. Using the command prompt, test the zoo-kernel by executing the following command:
73
74   ::
75   
76     D:\ms4w\Apache\cgi-bin> zoo_loader.cgi
77     
78   which should display a message such as:
79   
80   ::
81   
82     Content-Type: text/xml; charset=utf-8
83     Status: 200 OK
84     
85     <?xml version="1.0" encoding="utf-8"?>
86     <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">
87       <ows:Exception exceptionCode="MissingParameterValue">
88         <ows:ExceptionText>Parameter &lt;request&gt; was not specified</ows:ExceptionText>
89       </ows:Exception>
90     </ows:ExceptionReport>
91     
927. Edit the file ``cgi-bin/main.cfg`` so that it contains values describing your WPS service.  An example of such
93   a file running on Windows is:
94   
95   ::
96   
97     [main]
98     encoding = utf-8
99     version = 1.0.0
100     serverAddress = http://localhost/
101     lang = en-CA
102     tmpPath=/ms4w/tmp/ms_tmp/
103     tmpUrl = /ms_tmp/
104     
105     [identification]
106     title = The Zoo WPS Development Server
107     abstract = Development version of ZooWPS. See http://www.zoo-project.org
108     fees = None
109     accessConstraints = none
110     keywords = WPS,GIS,buffer
111     
112     [provider]
113     providerName=Gateway Geomatics
114     providerSite=http://www.gatewaygeomatics.com
115     individualName=Jeff McKenna
116     positionName=Director
117     role=Dev
118     adressDeliveryPoint=1101 Blue Rocks Road
119     addressCity=Lunenburg
120     addressAdministrativeArea=False
121     addressPostalCode=B0J 2C0
122     addressCountry=ca
123     addressElectronicMailAddress=info@gatewaygeomatics.com
124     phoneVoice=False
125     phoneFacsimile=False
126     
1278. 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
128
129   The response should be displayed in your browser, such as:
130   
131   ::
132   
133     <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">
134     <ows:ServiceIdentification>
135       <ows:Title>The Zoo WPS Development Server</ows:Title>
136       <ows:Abstract>
137         Development version of ZooWPS. See http://www.zoo-project.org
138       </ows:Abstract>
139       <ows:Keywords>
140         <ows:Keyword>WPS</ows:Keyword>
141         <ows:Keyword>GIS</ows:Keyword>
142         <ows:Keyword>buffer</ows:Keyword>
143       </ows:Keywords>
144       <ows:ServiceType>WPS</ows:ServiceType>
145       <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
146       ...
147       
148Optionally Compile Individual Services
149**************************************
150
151An example could be the ``OGR base-vect-ops`` provider in the ``zoo-project\zoo-services\ogr\base-vect-ops`` directory. 
152
1531. Edit the makefile.vc located in that directory, and execute:
154
155   ::
156   
157     nmake /f makefile.vc
158     
159   Inside that same directory, the file ``cgi-env\ogr_service.zo`` should be created.
160   
1612. Copy all of the files inside ``zoo-services\ogr\base-vect-ops\cgi-env`` into your cgi-bin directory
162
1633. Test this service provider through the following URL:
164
165   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
166   
167   The response displayed in your browser should contain:
168   
169   ::
170   
171     <wps:ProcessSucceeded>Service "Buffer" run successfully.</wps:ProcessSucceeded>
172
Note: See TracBrowser for help on using the repository browser.

Search

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