Good day,
I wrote a simple web flood simulation application. Posting here the
source code, maybe it will be useful for someone who wants to use
GRASS from PHP.
Example: http://flood.iap.md/
Source code: http://code.google.com/p/grass-flood/source/browse/#svn/trunk
PHP Class for connecting to grass application:
http://code.google.com/p/grass-flood/source/browse/trunk/Grass.php
The example features GRASS, PHPMapscript, OpenLayers, PHP and how they
can work together, based on http://grass.osgeo.org/wiki/GRASS_and_PHP
--
http://iap.md , The future is open
marisn
August 4, 2009, 4:40pm
2
This is really nice example of GRASS and whole OSGEO stack
flexibility. I love to see that r.lake is usefull module
One thing - I did not peaked into Your source, but it seems that You
are not validating user input data before passing to GRASS. GRASS
parser and r.lake can deal with various input garbage, but it's much
better idea to validate user input before passing values to GRASS. PHP
is flexible enough to do simple checks like is_float($seed) without
any problems.
Congratulations for good job,
Maris.
2009/8/4, Pavel Iacovlev <iacovlev.pavel@gmail.com>:
Good day,
I wrote a simple web flood simulation application. Posting here the
source code, maybe it will be useful for someone who wants to use
GRASS from PHP.
Example: http://flood.iap.md/
Source code: http://code.google.com/p/grass-flood/source/browse/#svn/trunk
PHP Class for connecting to grass application:
http://code.google.com/p/grass-flood/source/browse/trunk/Grass.php
The example features GRASS, PHPMapscript, OpenLayers, PHP and how they
can work together, based on http://grass.osgeo.org/wiki/GRASS_and_PHP
--
http://iap.md , The future is open
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
Pavel Iacovlev wrote:
Good day,
I wrote a simple web flood simulation application. Posting here the
source code, maybe it will be useful for someone who wants to use
GRASS from PHP.
Example: http://flood.iap.md/
Source code: http://code.google.com/p/grass-flood/source/browse/#svn/trunk
PHP Class for connecting to grass application:
http://code.google.com/p/grass-flood/source/browse/trunk/Grass.php
The example features GRASS, PHPMapscript, OpenLayers, PHP and how they
can work together, based on http://grass.osgeo.org/wiki/GRASS_and_PHP
Hi Pavel,
really nice application!
If you are interested using GRASS in a web application, you should take a
look
at PyWPS [1].
Bye
Luca Casagrande
[1]:http://pywps.wald.intevation.org/
--
View this message in context: http://n2.nabble.com/Interactive-flood-simulation-tp3384169p3391192.html
Sent from the Grass - Users mailing list archive at Nabble.com.
On Wednesday 05 August 2009, Luca Casagrande wrote:
Pavel Iacovlev wrote:
> Good day,
>
> I wrote a simple web flood simulation application. Posting here the
> source code, maybe it will be useful for someone who wants to use
> GRASS from PHP.
Nice work!
--
Dylan Beaudette
Soil Resource Laboratory
http://casoilresource.lawr.ucdavis.edu/
University of California at Davis
530.754.7341
On Tue, Aug 4, 2009 at 2:21 PM, Pavel Iacovlev<iacovlev.pavel@gmail.com> wrote:
Good day,
I wrote a simple web flood simulation application. Posting here the
source code, maybe it will be useful for someone who wants to use
GRASS from PHP.
Example: http://flood.iap.md/
Source code: http://code.google.com/p/grass-flood/source/browse/#svn/trunk
PHP Class for connecting to grass application:
http://code.google.com/p/grass-flood/source/browse/trunk/Grass.php
The example features GRASS, PHPMapscript, OpenLayers, PHP and how they
can work together, based on http://grass.osgeo.org/wiki/GRASS_and_PHP
Very nice! Please submit a screenshot plus short explanation to
http://gallery.osgeo.org/
Markus
Thanks everyone for replies.
Markus Neteler, Will post a screen-shot and a small description today.
On Tue, Aug 11, 2009 at 8:38 PM, Markus Neteler<neteler@osgeo.org> wrote:
On Tue, Aug 4, 2009 at 2:21 PM, Pavel Iacovlev<iacovlev.pavel@gmail.com> wrote:
Good day,
I wrote a simple web flood simulation application. Posting here the
source code, maybe it will be useful for someone who wants to use
GRASS from PHP.
Example: http://flood.iap.md/
Source code: http://code.google.com/p/grass-flood/source/browse/#svn/trunk
PHP Class for connecting to grass application:
http://code.google.com/p/grass-flood/source/browse/trunk/Grass.php
The example features GRASS, PHPMapscript, OpenLayers, PHP and how they
can work together, based on http://grass.osgeo.org/wiki/GRASS_and_PHP
Very nice! Please submit a screenshot plus short explanation to
http://gallery.osgeo.org/
Markus
--
http://iap.md , The future is open
Hi,
does anyone know, how the operator relate is meant in v.select (grass6.5)?
Only explanation in module description is:
"relate - feature A is spatially related to feature B"
And a parameter <relate> is required, which isn't in description too.
Cheers,
Achim
Hi,
2009/8/12 achim <ak7@jupiter.uni-freiburg.de>:
does anyone know, how the operator relate is meant in v.select (grass6.5)?
Only explanation in module description is:
"relate - feature A is spatially related to feature B"
It checks if elements in the DE-9IM intersection matrix for the two
features match the elements in 'relate' option.
See e.g.
http://www.postgis.org/documentation/manual-svn/ST_Relate.html
And a parameter <relate> is required, which isn't in description too.
The documentation needs to be improved... Feel free to help with that.
Martin
--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
Hi Martin
Martin Landa schrieb:
Hi,
2009/8/12 achim <ak7@jupiter.uni-freiburg.de>:
does anyone know, how the operator relate is meant in v.select (grass6.5)?
Only explanation in module description is:
"relate - feature A is spatially related to feature B"
It checks if elements in the DE-9IM intersection matrix for the two
features match the elements in 'relate' option.
See e.g.
http://www.postgis.org/documentation/manual-svn/ST_Relate.html
together with the link
http://docs.codehaus.org/display/GEOTDOC/Point+Set+Theory+and+the+DE-9IM+Matrix#PointSetTheoryandtheDE-9IMMatrix-9IntersectionMatrix
on this page its a very good explanation. Thanks!
And a parameter <relate> is required, which isn't in description too.
The documentation needs to be improved... Feel free to help with that.
Yes, the documentation is extremely compact and full of gaps. Specially
it needs some pictures to improve the "getting the idea of what is
meant". Notably GIS deals with geometry objects ;).
Maybe each short and compact description needs a detailed one with
pictures, examples and application possibilities. ...so I gonna do
something.
Martin
Achim