Discussion:
[GRASSGUI] GEM wizard in wxPython
Yann
2007-11-14 22:56:50 UTC
Permalink
Hi all,

Anybody could "mentor" a wxPython newbie into getting a GEM Wizard up and
running?

:)

Aim:
1-List some predefined Extensions
2-Select any, then download it
3-Run Gem on the .tgz file downloaded (supposed you already are in root)

Thanks
Yann
--
Yann Chemin
Sainte-Anne d'Auray, France
Jachym Cepicky
2007-11-14 22:56:50 UTC
Permalink
Hi,

basically, there are two possibilities: Use standard python packages or
using CLI commands. In current wxGRASS gui, commands are used, to avoid
new dependences. So, I would vote for some "wget+parsing" sollution.

For example, how to create wizard using wxpython, see wizard example in
wxpython demo
(http://prdownloads.sourceforge.net/wxpython/wxPython-demo-2.8.4.0.tar.bz2)

I put together nearly-working new location wizard, if you will be able
to follow the code.

Jachym
Post by Yann
Hi all,
Anybody could "mentor" a wxPython newbie into getting a GEM Wizard up and
running?
:)
1-List some predefined Extensions
2-Select any, then download it
3-Run Gem on the .tgz file downloaded (supposed you already are in root)
Thanks
Yann
--
Jachym Cepicky
e-mail: ***@gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
Yann
2007-11-14 22:56:50 UTC
Permalink
Hi Jachym,

Yes, the wget+parsing is tempting, i just need to figure out how to do all
that...

could you tell me where i can find your New Location Wizard, maybe I'll get a
hint to do that for GEM.

Thanks
Yann
Post by Jachym Cepicky
Hi,
basically, there are two possibilities: Use standard python packages or
using CLI commands. In current wxGRASS gui, commands are used, to avoid
new dependences. So, I would vote for some "wget+parsing" sollution.
For example, how to create wizard using wxpython, see wizard example in
wxpython demo
(http://prdownloads.sourceforge.net/wxpython/wxPython-demo-2.8.4.0.tar.bz2)
I put together nearly-working new location wizard, if you will be able
to follow the code.
Jachym
Post by Yann
Hi all,
Anybody could "mentor" a wxPython newbie into getting a GEM Wizard up and
running?
:)
1-List some predefined Extensions
2-Select any, then download it
3-Run Gem on the .tgz file downloaded (supposed you already are in root)
Thanks
Yann
--
Yann Chemin
Sainte-Anne d'Auray, France
Jachym Cepicky
2007-11-14 22:56:50 UTC
Permalink
Hi,
Post by Yann
Hi Jachym,
Yes, the wget+parsing is tempting, i just need to figure out how to do all
that...
could you tell me where i can find your New Location Wizard, maybe I'll get a
hint to do that for GEM.
well,

svn co https://grasssvn.itc.it/svn/grassaddons/trunk/grassaddons addons

cd addons/gui/

$EDITOR location_wizard.py

but it is a mess - I need to clean this. try to take it really only as
an example.

Jachym
Post by Yann
Thanks
Yann
Post by Jachym Cepicky
Hi,
basically, there are two possibilities: Use standard python packages or
using CLI commands. In current wxGRASS gui, commands are used, to avoid
new dependences. So, I would vote for some "wget+parsing" sollution.
For example, how to create wizard using wxpython, see wizard example in
wxpython demo
(http://prdownloads.sourceforge.net/wxpython/wxPython-demo-2.8.4.0.tar.bz2)
I put together nearly-working new location wizard, if you will be able
to follow the code.
Jachym
Post by Yann
Hi all,
Anybody could "mentor" a wxPython newbie into getting a GEM Wizard up and
running?
:)
1-List some predefined Extensions
2-Select any, then download it
3-Run Gem on the .tgz file downloaded (supposed you already are in root)
Thanks
Yann
--
Jachym Cepicky
e-mail: ***@gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
Yann
2007-11-14 22:56:50 UTC
Permalink
Adding for information about how the process goes:

GRASS 6.3.cvs (spearfish60):~ >wget -c
http://www.uni-kiel.de/ufg/dateienDucke/RasterTools.tar.gz
GRASS 6.3.cvs (spearfish60):~ > su
Password:
***@arvro:/home/yann# gem6 -i RasterTools.tar.gz
Uncompressing files...DONE.
Checking extension ...DONE.
Configuring...DONE.
Compiling...DONE.
Installing...DONE.
***@arvro:/home/yann# exit
GRASS 6.3.cvs (spearfish60):~ > gis.m

Resulting GUI is attached
Post by Yann
Hi all,
Anybody could "mentor" a wxPython newbie into getting a GEM Wizard up and
running?
:)
1-List some predefined Extensions
2-Select any, then download it
3-Run Gem on the .tgz file downloaded (supposed you already are in root)
Thanks
Yann
--
Yann Chemin
Sainte-Anne d'Auray, France
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gem_gui.png
Type: image/png
Size: 59649 bytes
Desc: not available
Url : Loading Image...
Yann
2007-11-14 22:56:50 UTC
Permalink
Created a script for actual GEM installs:

GRASS 6.3.cvs (root):/home/yann/coding/grassaddons/gipe > m.gem -a
--21:10:00--
http://www.uni-kiel.de/ufg/dateienDucke/AdvancedViewshedAnalysis.tar.gz
Resolving www.uni-kiel.de... 134.245.12.21
Connecting to www.uni-kiel.de|134.245.12.21|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 397489 (388K) [application/x-gzip]
--21:10:04--
http://www.uni-kiel.de/ufg/dateienDucke/AdvancedViewshedAnalysis.tar.gz
Reusing existing connection to www.uni-kiel.de:80.
HTTP request sent, awaiting response...
.....(download going on here)
...
Uncompressing files...DONE.
Checking extension ...DONE.
Configuring...DONE.
Compiling...DONE.
Installing...DONE.

GRASS 6.3.cvs (root):/home/yann/coding/grassaddons/gipe >


Now, the only problem is to get into superuser permission while running the
script.

Any idea anyone?
Post by Yann
GRASS 6.3.cvs (spearfish60):~ >wget -c
http://www.uni-kiel.de/ufg/dateienDucke/RasterTools.tar.gz
GRASS 6.3.cvs (spearfish60):~ > su
Uncompressing files...DONE.
Checking extension ...DONE.
Configuring...DONE.
Compiling...DONE.
Installing...DONE.
GRASS 6.3.cvs (spearfish60):~ > gis.m
Resulting GUI is attached
Post by Yann
Hi all,
Anybody could "mentor" a wxPython newbie into getting a GEM Wizard up and
running?
:)
1-List some predefined Extensions
2-Select any, then download it
3-Run Gem on the .tgz file downloaded (supposed you already are in root)
Thanks
Yann
--
Yann Chemin
Sainte-Anne d'Auray, France
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gem_gui1.png
Type: image/png
Size: 4477 bytes
Desc: not available
Url : Loading Image...
Michael Barton
2007-11-14 22:56:50 UTC
Permalink
Jachym,

I did a bunch of update work on the wizard awhile back, so it is almost
done. Still waiting on some kind of update to g.proj or g.setproj to make
the manual location creation work. I guess we could just go ahead with the
epsg, georeferenced file, and related parts and ask again for an update to
make the other part work.

Michael
Post by Jachym Cepicky
Hi,
Post by Yann
Hi Jachym,
Yes, the wget+parsing is tempting, i just need to figure out how to do all
that...
could you tell me where i can find your New Location Wizard, maybe I'll get a
hint to do that for GEM.
well,
svn co https://grasssvn.itc.it/svn/grassaddons/trunk/grassaddons addons
cd addons/gui/
$EDITOR location_wizard.py
but it is a mess - I need to clean this. try to take it really only as
an example.
Jachym
Post by Yann
Thanks
Yann
Post by Jachym Cepicky
Hi,
basically, there are two possibilities: Use standard python packages or
using CLI commands. In current wxGRASS gui, commands are used, to avoid
new dependences. So, I would vote for some "wget+parsing" sollution.
For example, how to create wizard using wxpython, see wizard example in
wxpython demo
(http://prdownloads.sourceforge.net/wxpython/wxPython-demo-2.8.4.0.tar.bz2)
I put together nearly-working new location wizard, if you will be able
to follow the code.
Jachym
Post by Yann
Hi all,
Anybody could "mentor" a wxPython newbie into getting a GEM Wizard up and
running?
:)
1-List some predefined Extensions
2-Select any, then download it
3-Run Gem on the .tgz file downloaded (supposed you already are in root)
Thanks
Yann
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
Jachym Cepicky
2007-11-14 22:56:50 UTC
Permalink
Hi,
Post by Yann
Jachym,
I did a bunch of update work on the wizard awhile back, so it is almost
done. Still waiting on some kind of update to g.proj or g.setproj to make
the manual location creation work. I guess we could just go ahead with the
epsg, georeferenced file, and related parts and ask again for an update to
make the other part work.
Michael
while ago, I had to fix some bugs to :-) Yes, he have to make g.setproj
more usable for our needs. I'll look at it

Jachym
Post by Yann
Post by Jachym Cepicky
Hi,
Post by Yann
Hi Jachym,
Yes, the wget+parsing is tempting, i just need to figure out how to do all
that...
could you tell me where i can find your New Location Wizard, maybe I'll get a
hint to do that for GEM.
well,
svn co https://grasssvn.itc.it/svn/grassaddons/trunk/grassaddons addons
cd addons/gui/
$EDITOR location_wizard.py
but it is a mess - I need to clean this. try to take it really only as
an example.
Jachym
Post by Yann
Thanks
Yann
Post by Jachym Cepicky
Hi,
basically, there are two possibilities: Use standard python packages or
using CLI commands. In current wxGRASS gui, commands are used, to avoid
new dependences. So, I would vote for some "wget+parsing" sollution.
For example, how to create wizard using wxpython, see wizard example in
wxpython demo
(http://prdownloads.sourceforge.net/wxpython/wxPython-demo-2.8.4.0.tar.bz2)
I put together nearly-working new location wizard, if you will be able
to follow the code.
Jachym
Post by Yann
Hi all,
Anybody could "mentor" a wxPython newbie into getting a GEM Wizard up and
running?
:)
1-List some predefined Extensions
2-Select any, then download it
3-Run Gem on the .tgz file downloaded (supposed you already are in root)
Thanks
Yann
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
--
Jachym Cepicky
e-mail: ***@gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
Michael Barton
2007-11-14 22:56:51 UTC
Permalink
Jachym,

On my way to work, I was thinking that maybe we already have the tools we
need with g.proj. We should be able to create a default WIND file, PROJINFO,
and PROJUNITS files.

Michael
Post by Jachym Cepicky
Hi,
Post by Yann
Jachym,
I did a bunch of update work on the wizard awhile back, so it is almost
done. Still waiting on some kind of update to g.proj or g.setproj to make
the manual location creation work. I guess we could just go ahead with the
epsg, georeferenced file, and related parts and ask again for an update to
make the other part work.
Michael
while ago, I had to fix some bugs to :-) Yes, he have to make g.setproj
more usable for our needs. I'll look at it
Jachym
Post by Yann
Post by Jachym Cepicky
Hi,
Post by Yann
Hi Jachym,
Yes, the wget+parsing is tempting, i just need to figure out how to do all
that...
could you tell me where i can find your New Location Wizard, maybe I'll get
a
hint to do that for GEM.
well,
svn co https://grasssvn.itc.it/svn/grassaddons/trunk/grassaddons addons
cd addons/gui/
$EDITOR location_wizard.py
but it is a mess - I need to clean this. try to take it really only as
an example.
Jachym
Post by Yann
Thanks
Yann
Post by Jachym Cepicky
Hi,
basically, there are two possibilities: Use standard python packages or
using CLI commands. In current wxGRASS gui, commands are used, to avoid
new dependences. So, I would vote for some "wget+parsing" sollution.
For example, how to create wizard using wxpython, see wizard example in
wxpython demo
(http://prdownloads.sourceforge.net/wxpython/wxPython-demo-2.8.4.0.tar.bz2>>>>>
)
Post by Jachym Cepicky
Post by Yann
Post by Jachym Cepicky
Post by Yann
Post by Jachym Cepicky
I put together nearly-working new location wizard, if you will be able
to follow the code.
Jachym
Post by Yann
Hi all,
Anybody could "mentor" a wxPython newbie into getting a GEM Wizard up and
running?
:)
1-List some predefined Extensions
2-Select any, then download it
3-Run Gem on the .tgz file downloaded (supposed you already are in root)
Thanks
Yann
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
Jachym Cepicky
2007-11-14 22:56:51 UTC
Permalink
hi,
Post by Yann
Jachym,
On my way to work, I was thinking that maybe we already have the tools we
need with g.proj. We should be able to create a default WIND file, PROJINFO,
and PROJUNITS files.
hi, not sure about this, but I was away for long time, I'll check it

jachym
Post by Yann
Michael
Post by Jachym Cepicky
Hi,
Post by Yann
Jachym,
I did a bunch of update work on the wizard awhile back, so it is almost
done. Still waiting on some kind of update to g.proj or g.setproj to make
the manual location creation work. I guess we could just go ahead with the
epsg, georeferenced file, and related parts and ask again for an update to
make the other part work.
Michael
while ago, I had to fix some bugs to :-) Yes, he have to make g.setproj
more usable for our needs. I'll look at it
Jachym
Post by Yann
Post by Jachym Cepicky
Hi,
Post by Yann
Hi Jachym,
Yes, the wget+parsing is tempting, i just need to figure out how to do all
that...
could you tell me where i can find your New Location Wizard, maybe I'll get
a
hint to do that for GEM.
well,
svn co https://grasssvn.itc.it/svn/grassaddons/trunk/grassaddons addons
cd addons/gui/
$EDITOR location_wizard.py
but it is a mess - I need to clean this. try to take it really only as
an example.
Jachym
Post by Yann
Thanks
Yann
Post by Jachym Cepicky
Hi,
basically, there are two possibilities: Use standard python packages or
using CLI commands. In current wxGRASS gui, commands are used, to avoid
new dependences. So, I would vote for some "wget+parsing" sollution.
For example, how to create wizard using wxpython, see wizard example in
wxpython demo
(http://prdownloads.sourceforge.net/wxpython/wxPython-demo-2.8.4.0.tar.bz2>>>>>
)
Post by Jachym Cepicky
Post by Yann
Post by Jachym Cepicky
Post by Yann
Post by Jachym Cepicky
I put together nearly-working new location wizard, if you will be able
to follow the code.
Jachym
Post by Yann
Hi all,
Anybody could "mentor" a wxPython newbie into getting a GEM Wizard up and
running?
:)
1-List some predefined Extensions
2-Select any, then download it
3-Run Gem on the .tgz file downloaded (supposed you already are in root)
Thanks
Yann
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
--
Jachym Cepicky
e-mail: ***@gmail.com
URL: http://les-ejk.cz
GPG: http://www.les-ejk.cz/pgp/jachym_cepicky-gpg.pub
Loading...