maven apache wrote:
Is there some special reason you need to create the GRASS
directory structure programatically each time? Can't you just start
As the pywps I have refered,each client(user) may send their own
process request with different map,obvirous they do not have the save
location or mapset even the projection,so if config the grass only
once ,do the location and mapset accord with the user requested map?
Well, no. Each location has a specific coordinate reference system, set
up when you create the location. Any data pulled into that location
should match that CRS.
I don't recall the start of your thread: Are you saying that you need
to be able to handle any data that clients throw at you in *any* CRS?
How will you know the CRS of the client's maps? (Many data formats do
not require full metadata with CRS information)
And one other point came to my mind: be aware that the user calling the
GRASS script must be the owner of the $GISDBASE directory structure. So
if these are web based apps, then the user running your http server must
own the GRASS database directory.
Good luck, and keep us posted,
--
Micha
GRASS once the straight-forward way to make the required location,
mapset and files, then use the instructions here:
http://grass.osgeo.org/wiki/GRASS_and_Shell
to run your grass commands from a shell/python script?
I read the shell,actually I am using another script in the annex,and I
think they have the same thought.
2009/6/11 Micha Silver <[email protected] <mailto:[email protected]>>
maven apache wrote:
Hi:
I followed the doc from the web resrouce:
https://svn.wald.intevation.org/svn/pywps/tags/pywps-3.1.0/pywps/Grass.py
And I think what we are doing is similar to theirs,so I thought
the confignation of grass maybe correct for us.
Is there some special reason you need to create the GRASS
directory structure programatically each time? Can't you just
start GRASS once the straight-forward way to make the required
location, mapset and files, then use the instructions here:
http://grass.osgeo.org/wiki/GRASS_and_Shell
to run your grass commands from a shell/python script?
--
Micha
2009/6/11 Nikos Alexandris
<[email protected]
<mailto:[email protected]>>
maven:
> And I know the reason of the problem now.
Which is?
> However as what you said,I should create a new location and
mapset if
> necessary,it does not work.
> I create two folders nLocation/nmapset and create a wind
file in the
> nmapset dir, however when I run the grass gui,I also can
not seclect
> the new location to enter.
Sorry, I never create manually those directories and the WIND
file. I
always use the "recommended" way, that is through GRASS.
Read _A)_ or/ and _B)_ in:
http://grass.osgeo.org/grass64/manuals/html64_user/helptext.html
> It throw the error message:the selection location
[nlocation ]is not
> valide. Is the procedure I create the new location is wrong? I
> followed the maual
Which manual?
Nikos
This mail was received via Mail-SeCure System.
------------------------------------------------------------------------
_______________________________________________
grass-user mailing list
[email protected] <mailto:[email protected]>
http://lists.osgeo.org/mailman/listinfo/grass-user
This mail was received via Mail-SeCure System.
This mail was received via Mail-SeCure System.
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user