Download and installation
Building INTAMAP WPS from source
Before downloading and compiling the INTAMAP source code there are a few prerequisite steps required.
The INTAMAP WPS is built using Apache ANT. In order to be able to successfully compile the source code you will need to have Apache ANT installed on your system. Please refer to the Apache ANT installation guide for information on setting up Apache ANT.
The INTAMAP source code is managed using the subversion system SVN. While it is possible to download the source code using a Web browser, to ensure successful compilation and installation it is recommended that you checkout the source code using an SVN client.
Downloading & Preparing
The latest INTAMAP code can be obtained from our Sourceforge SVN. https://intamap.svn.sourceforge.net/svnroot/intamap/wpsCheckout the above URL using your SVN client or run the following command:svn checkout https://intamap.svn.sourceforge.net/svnroot/intamap/wps INTAMAPThis will download the latest source code to a directory called 'INTAMAP'.
Once the SVN checkout is complete, navigate to the following directory:INTAMAP/web pages/configIn this directory you will find two configuration files that need to be edited.
The wpsCapabilitiesSkeleton.xml file defines the server information that will be shown when the user makes a GetCapabilities and Describeprocess request. Things like title, keywords, service provider, languages etc. are defined in this file. Change the indicated areas in this file with your own information.
The wps_config.xml file contains information about which Java classes the WPS will use to parse the XML requests. You should leave all settings the same apart from the following snippet: <Server hostport="8080" includeDataInputsInResponse="false" hostname="localhost" computationTimeoutMilliSeconds="5" cacheCapabilites="true" webappPath="intamap"> You should change the hostname and hostport propeties to those of your server installation.
You are now ready to build the INTAMAP WPS from the source code. In the command prompt (or terminal) navigate to the root directory of the INTAMAP WPS code (this was called 'INTAMAP' from the example above). Once you are in the root directory type the following command: ant build This will initiate the build process and eventually you should be presented with a 'BUILD SUCCESSFUL' message. If you receive a 'BUILD FAILED' message return to the beginning of this tutorial and ensure you have followed the steps correctly.
The build script will have created a new folder called 'dist' within the root directory. Inside the dist folder will be an intamap.war file. This is the compile and packaged WPS. You are now ready to deploy the WAR file on your Java Web server.