Index: trunk/extensions/geoserver/README |
— | — | @@ -1,2 +1,45 @@ |
2 | 2 | This is a module that updates a geoserver (http://www.geoserver.org/) using |
3 | 3 | WFS-T transactions. |
| 4 | + |
| 5 | +== Sample Config Settings == |
| 6 | + |
| 7 | +include( "Extensions/geoserver/geoserver.php" ); |
| 8 | +$wgOpenLayersScript = "http://www.openlayers.org/api/OpenLayers.js"; |
| 9 | + |
| 10 | +/* The WFS server must allow write access */ |
| 11 | +$wgWFSHost = "localhost"; |
| 12 | +$wgWFSPort = 8080; |
| 13 | +$wgWFSPath = "/geoserver/wfs?"; |
| 14 | + |
| 15 | +/* Paths of some files */ |
| 16 | +$wgWikiMapsIcon = '/phase3/Extensions/geoserver/flag_blue.png'; |
| 17 | +$wgWikiMapsJS = '/phase3/Extensions/geoserver/wikimaps.js'; |
| 18 | + |
| 19 | +/* Layers for the map */ |
| 20 | +$wgWikiMapsLayers = array( |
| 21 | + array( 'name' => "Onearth (cache)", |
| 22 | + 'url' => "http://172.16.200.128:8000/tilecache?", |
| 23 | + 'options' => "{layers: 'onearth'}" ), |
| 24 | + array( 'name' => "Blue Marble (cache)", |
| 25 | + 'url' => "http://172.16.200.128:8000/tilecache?", |
| 26 | + 'options' => "{layers: 'bluemarble'}" ), |
| 27 | + array( 'name' => "Modis Global Mosaic", |
| 28 | + 'url' => "http://onearth.jpl.nasa.gov/wms.cgi?", |
| 29 | + 'options' => "{layers: 'modis,global_mosaic'}" ), |
| 30 | + array( 'name' => 'Wikipedia', |
| 31 | + 'url' => "http://172.16.200.128:8080/geoserver/wms?VERSION=1.1.1&SERVICE=WMS", |
| 32 | + 'options' => '{layers: "topp:border,topp:wikicapitals", transparent: "true", format: "image/png"}', |
| 33 | + 'levels' => array( |
| 34 | + 6 => 'topp:border,topp:wikipedia', |
| 35 | + 7 => 'topp:border,topp:wikipedia', |
| 36 | + 8 => 'topp:border,topp:wikipedia', |
| 37 | + 9 => 'topp:border,topp:wikipedia', |
| 38 | + 10 => 'topp:border,topp:wikipedia', |
| 39 | + 11 => 'topp:border,topp:wikipedia', |
| 40 | + 12 => 'topp:border,topp:wikipedia', |
| 41 | + 13 => 'topp:border,topp:wikipedia', |
| 42 | + 14 => 'topp:border,topp:wikipedia', |
| 43 | + 15 => 'topp:border,topp:wikipedia', |
| 44 | + ) ), |
| 45 | +); |
| 46 | + |