[GRASS-SVN] r45633 - grass-web/trunk

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 11 08:27:22 EST 2011


Author: neteler
Date: 2011-03-11 05:27:22 -0800 (Fri, 11 Mar 2011)
New Revision: 45633

Added:
   grass-web/trunk/start.html
Log:
added to svn; new earthquakes map link added

Added: grass-web/trunk/start.html
===================================================================
--- grass-web/trunk/start.html	                        (rev 0)
+++ grass-web/trunk/start.html	2011-03-11 13:27:22 UTC (rev 45633)
@@ -0,0 +1,102 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+<head>
+  <title>GRASS-MapServer Startup</title>
+  <meta name="Author" content="Markus Neteler">
+  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+</head>
+<body bgcolor="#FFFFFF">
+
+<h2>GRASS-MapServer</h2>
+<img src=images/grass_mapserver.jpg alt="GRASS - MapServer"><p>
+
+<ul>
+<li><b>DEMO 1:</b>
+<ul>
+<li><a href=http://grass.fbk.eu/cgi-bin/mapserv?map=/www/grass/map-script/mapserver.map&layer=dem>Start</a>
+ demo SPEARFISH mapserver |
+   <a href=spearfish/grass5_mapserver.tar.gz>Download </a> the sample server (270kb)
+   | <a href=spearfish/grass5_mapserver.txt>Package contents</a> | <a href=spearfish/README>README</a>
+<br>
+This simple implementation uses <a href=intro/related_projects.html>MapServer and libgrass</a> to read
+GRASS raster data directly.<br>
+Note 2005: Please use the GDAL-GRASS plugin instead.
+
+<address>
+When using above demo server, please cite as follows:<br>
+&nbsp; &nbsp; &nbsp;M. Neteler, H. Mitasova, 2002, <a href=http://www.grassbook.org/>Open Source GIS: A GRASS GIS Approach.</a><br>
+&nbsp; &nbsp; &nbsp;464 pp, ISBN: 1-4020-7088-8, Kluwer Academic Publishers, Boston, Dordrecht.
+</address>
+</ul>
+<P>
+<li><b>DEMO 2 (New 1/2003):</b>
+<ul>
+<li>
+<a href=http://grass.fbk.eu/cgi-bin/mapserv?map=/www/grass/map-script/mapserverjs.map&layer=dem>Start</a>
+   demo SPEARFISH mapserver with JavaScript/DHTML, GDAL/OGR as well as
+   <a href=grass60/index.php>PostGIS/GRASS 5.7 vector support</a>
+</ul>
+
+<P>
+<li><b>DEMO 3 (New 8/2007):</b>
+<ul>
+<li>
+<a href="http://grass.fbk.eu/spearfish/lite.html">Simple OpenLayers server: demo SPEARFISH server</a> 
+ (use SHIFT-left-mouse for zoom box)
+</ul>
+
+<P>
+<li><b>DEMO 4 (New 8/2007):</b>
+<ul>
+<li>
+<a href="http://grass.fbk.eu/spearfish/napo.html">Nice OpenLayers server: demo SPEARFISH server</a>
+ (use SHIFT-left-mouse for zoom box)
+</ul>
+
+<P>
+<li>
+<b>Troubleshooting for MapServer/GRASS support:</b>
+
+(updated 10/2006)
+
+<ul>
+ <li>Is GDAL enabled: <br>
+    <tt>/var/www/cgi-bin/mapserv -v</tt> <br> 
+    You should see 'GDAL', otherwise recompile 'mapserv'
+ <li>Is GDAL compiled with GRASS support: <br>
+    <tt>gdal_translate --formats | grep -i grass</tt> <br> 
+    You should see 'GRASS', otherwise compile GDAL-OGR-GRASS-Plugin
+<!--
+ <li>When using libgrass5: Check if 'libgrass5 is found: <br>
+    <tt>ldd /usr/lib/libgdal.so | grep libgrass5</tt> <br>
+    There must be a link to /lib/libgrass5.so.0 (or similar)
+-->
+ <li>"msDrawRaster():Image handling error. Unrecognized or unsupported image format."<br>
+    NOTE: GRASS raster map directly read from location should be in 8bit.
+    If 'r.info' reports values higher that 255, you somehow have to 
+    reduce the number of categories (e.g. 'r.rescale'). Such rescaled
+    maps are only usable for visualization purposes. 
+ <li>- When using libgrass5: Take care that the GRASS settings file is named '.grassrc5' (and NOT '.grassrc57')
+     and stored in the server's DocumentRoot directory.<br>
+   - When using GRASS/GDAL plugin: no .grassrc file needed.
+ <li> ... data not found or unsupported format: full data path need to be world readable. Really. Check parent dirs, too.
+</ul>
+</ul>
+
+For raster queries see <a href="http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterQuery">here</a>.
+<P>
+
+<b>PHP/GRASS Demo</b>
+
+<ul>
+<li>Pretty low level, but done with a few lines of code: <a href=spearfish/php_grassmap.php>PHP/GRASS Demo</a>
+<li><a href="http://grass.fbk.eu/spearfish/php_grass_earthquakes.php">Recent Earthquakes</a>: map generated by GRASS on the fly with PHP (added 4/2006)
+<li><a href="screenshots/web.php">Recent Earthquakes</a>: map generated by GRASS on the fly with PHP (new 2011)
+</ul>
+
+<hr>
+
+<i>Markus Neteler</i>
+ <a href=http://grass.fbk.eu/cgi-bin/mapserv?map=/www/grass/map-script/mapserverjs_vmap0_postgis.map&layer=coastl&layer=polbnda&layer=oceansea>vmap0</a>
+</body>
+</HTML>



More information about the grass-commit mailing list