Installation
Download the newest distribution and unpack it in a web accessible part of your site.
Edit configuration.php
- Change $SCRIPT[URI] to the http path of the folder, including the trailing slash.
- Change $SCRIPT[TITLE] to the name of your server
- Change $SCRIPT[DESCRIPTION] to the description of your server
- For each of your web GIS servers:
- Connect to your map server and issue a GetCapabilities request.
It looks something like http://www.example.com/wms.cgi?version=1.1.1&request=GetCapabilities&service=wms
Save this file as example.xml and place it in the same directory as configuration.php
- Add a line that loads and parses the file:
$example = capabilities_parser("example.xml");
- Make any changes needed to the server's configuration. configuration-demo.php has examples of some things that can be done to clean thins up, such as setting scales and removing styles.
- Load all the servers:
$SERVERS = array("example" => $example, "scaleless" => $scaleless);
Go check out your configuration by browsing to the viewconfig.php in your rasterplaster directory. You can change any of this stuff by modifying the array. It's described at the bottom of the configuration.php file.
Testing and Distribution
Point people (yourself for testing) to kml-download.php in your rasterplaster directory. You can also download a copy of this file via your browser and email it, post it on foums, etc.