[GRASS-dev] Re: Live Earthquake Map: GRASS/PHP

Jachym Cepicky jachym.cepicky at centrum.cz
Sat May 27 18:42:41 EDT 2006


Hallo Marcus,

I do not know, how are you doing things.

I my script, I generate gisrc on-the-fly and then I export the ENV
variables. Works for mapsets owned by other users too.


svn subversion.gdf-hannover.de/.../pywps

look in file Wps/grass.py, function mkmapset

Jachym

On Sun, May 28, 2006 at 12:08:36AM +0200, Markus Neteler wrote:
> On Mon, May 22, 2006 at 12:27:24PM +0200, Markus Neteler wrote:
> > On Wed, Apr 26, 2006 at 09:34:40AM +0200, Markus Neteler wrote:
> > > >>> http://grass.itc.it/spearfish/php_grass_earthquakes.php
> > > >>> Recent Earthquakes: map generated by GRASS on the fly with PHP
> > 
> > The new machine (grass.itc.it) offers PHP 5, so I had to
> > rewrite the code.
> > 
> > The new PHP5 code example is at
> >   http://grass.itc.it/spearfish/php_grass_earthquakes.php
> > and also fails!
> > 
> 
> I got a bit closer to the problem. It seems that now
> the behaviour differs from
> 
>   'GISRC' => '/grass0/neteler/www/spearfish/.grassrc6_ll',
> 
> and
>   'GISRC' => '/tmp/gisrc',
> 
> But the files are identical! The former gives a LOCATION_NAME not
> found error, the latter "permission denied" (see above link) to
> the location, although the owner of the location was changed to
> apache user/group.
> 
> Mysterious. Honestly I don't understand the GISRC/GISRCRC magic in
> $GISBASE/etc/Init.sh which I have to replicate somehow in the
> PHP script. Earlier it was the path to the .grassrc6 which worked
> on Redhat7 but now fails (RHEL4).
> 
> Any hints?
> 
> Markus
> 
> _______________________________________________
> grass-dev mailing list
> grass-dev at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev

-- 
Jachym Cepicky
e-mail: jachym.cepicky at centrum.cz
URL: http://les-ejk.cz
GPG: http://les-ejk.cz/gnupg_public_key/jachym_cepicky-gpg_public_key.asc
-----------------------------------------   
OFFICE:                                     
GDF-Hannover
Mengendamm 16d
30177 Hannover
Germany
e-mail: cepicky at gdf-hannover.de
URL:    http://gdf-hannover.de
Tel.:   +49 511-39088507
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20060528/c6db76ac/attachment.bin


More information about the grass-dev mailing list