Re: [GRASS-user] [GRASS-dev] Object-based image classification in GRASS

2014-01-29 Thread Pierre Roudier
Very useful resource Martin.

FWIW, the translation of the page is very usable for non-Czech speakers:

http://translate.google.com/translate?sl=cs&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fgeo.fsv.cvut.cz%2Fgwiki%2F153ZODH_%2F_15._cvi%25C4%258Den%25C3%25AD&act=url

Pierre

2014-01-29 Martin Landa :
> Hi Moritz,
>
> 2013-10-30 Moritz Lennert :
>
>> though some components would be nice to have in addition. Attached you can
>> find a simple shell script which shows all the steps I went through. I
>> commented it extensively, so it hopefully is easy to understand.
>
> I just wanted to thank you for the script and to the author(s) of
> i.segment. Based on your script I was able in one day to prepare a new
> lesson for my students [1] (in Czech only) ...
>
> Martin
>
> [1] http://geo.fsv.cvut.cz/gwiki/153ZODH_/_15._cvi%C4%8Den%C3%AD
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user



-- 
Scientist
Landcare Research, New Zealand
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] installation of grass 7 unknown-linux binaries

2014-01-29 Thread Markus Neteler
On Wed, Jan 29, 2014 at 4:21 PM, José Anderson
 wrote:
>
> Hey you,
>
> I have proceeded the Grass-7.0 install.sh successfully. However, when
> executing 'grass70' I've got an Python error which made GUI impossible
> to startup.
...
>   File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
> raise child_exception
> OSError: [Errno 8] Exec format error
> ...


Do you use a 32bit Linux? The snapshot Linux binaries are generated on
a 64bit server.
What do you get with

uname -a
?

Markus
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] installation of grass 7 unknown-linux binaries

2014-01-29 Thread José Anderson
Hey you,

I have proceeded the Grass-7.0 install.sh successfully. However, when
executing 'grass70' I've got an Python error which made GUI impossible
to startup.

please, some of you know how to troubleshoot such error (Ubuntu 13.10
have both Python 2.7, 3.2 and 3.3 installed)?

Error message as follow.

...
Starting GRASS GIS...
Traceback (most recent call last):
  File 
"/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/gui/wxpython/gis_set.py",
line 36, in 
from core import globalvar
  File 
"/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/gui/wxpython/core/globalvar.py",
line 28, in 
from core.debug import Debug
  File 
"/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/gui/wxpython/core/debug.py",
line 67, in 
Debug = DebugMsg()
  File 
"/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/gui/wxpython/core/debug.py",
line 38, in __init__
self.SetLevel()
  File 
"/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/gui/wxpython/core/debug.py",
line 43, in SetLevel
self.debuglevel = int(grass.gisenv().get('WX_DEBUG', 0))
  File 
"/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/python/grass/script/core.py",
line 917, in gisenv
s = read_command("g.gisenv", flags='n')
  File 
"/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/python/grass/script/core.py",
line 411, in read_command
ps = pipe_command(*args, **kwargs)
  File 
"/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/python/grass/script/core.py",
line 386, in pipe_command
return start_command(*args, **kwargs)
  File 
"/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/python/grass/script/core.py",
line 345, in start_command
return Popen(args, **popts)
  File 
"/usr/local/grass7.0.svn-x86_64-unknown-linux-gnu-25_01_2014/etc/python/grass/script/core.py",
line 58, in __init__
startupinfo, creationflags)
  File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 8] Exec format error
...

Thanks in advance.

Jose Anderson
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Processing NAIP images

2014-01-29 Thread Sylvain Maillard
Hi,

I think you can find a lot of tutorial/cours on the grass website (under
Documentation: http://grass.osgeo.org/documentation/tutorials/), on the
wiki (http://grasswiki.osgeo.org/wiki/Image_processing) and also on the
manual page (http://grass.osgeo.org/grass64/manuals/index.html). There are
usually link to the man page for every command, with everything explained ;)


for your job (identify roadways), I think you will mostly be interrested by:
- Combined radiometric/geometric (segmentation based) supervised
classification (i.gensigset, i.smap)
- i.segment (http://grass.osgeo.org/grass70/manuals/i.segment.html) working
in grass7 ...


Sylvain




2014-01-29 Pedro Camargo 

> Thanks, Jiao!!  This helps a lot!!!
>
>
>
> Pedro
>
>
>
>
>
> *From:* Jiao Wang [mailto:j...@hawaii.edu]
> *Sent:* Tuesday, January 28, 2014 1:02 PM
> *To:* Pedro Camargo
> *Cc:* GRASS user list
> *Subject:* Re: [GRASS-user] Processing NAIP images
>
>
>
> Hi Pedro,
>
>
>
> I did a test run and created an unsupervised classification image.
>
>
>
> Here are the steps I did:
>
>
>
> 1 MrSID to tiff in QGIS
>
> 2 import tiff in GRASS (i.in.gdal)
>
> 3 create group and subgroup (i.group ---check "Define also sub-group(same
> name as group)"--- in the "Layers in selected group" keep one band file as
> described in i.cluster manual)
>
> 4 classification --signature(i.cluster)
>
> 5 classification--map (i.maxlik)
>
>
>
> Hope it helps.
>
>
>
> Best,
>
> Jiao
>
>
>
>
>
> On Tue, Jan 28, 2014 at 9:00 AM, Pedro Camargo 
> wrote:
>
> Hi,
>
>I am trying to generate land use maps (looking to identify roadways
> only, actually) using NAIP imagery.
>
>Since I am using the pre-compiled GRASS, I do not have MrSID inside
> GRASS, so converted the images to TIFF using QGIS.
>
>   I believe I can use i.maxlik or something like that, but I do not
> know how to start.  It keeps asking for groups, but I do not know what is a
> group image.
>
>
>
> I googled a lot on this and looked into several tutorials, but still
> did not figure out how to start  this.  I have been educating myself
> through a few papers, but I guess I still need to find a good summarized
> tutorial on how to do this with multi band images such as NAIP.
>
> Does anybody have ideas to help?
>
> Thanks,
>
> Pedro
>
>
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
>
>
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] [GRASS-dev] Object-based image classification in GRASS

2014-01-29 Thread Moritz Lennert

On 28/01/14 14:47, Martin Landa wrote:

Hi Moritz,

2013-10-30 Moritz Lennert :


though some components would be nice to have in addition. Attached you can
find a simple shell script which shows all the steps I went through. I
commented it extensively, so it hopefully is easy to understand.


I just wanted to thank you for the script and to the author(s) of
i.segment. Based on your script I was able in one day to prepare a new
lesson for my students [1] (in Czech only) ...


The script was written as an example for my students. Glad it was useful 
to you.


With all the elements in place, especially with Pietro's recent work, it 
should be quite easy to create a unifying module 'i.segment.classify' 
which would take as input


- the segments coming out of i.segment
- training zones
- a choice of variables
- a choice of classifier

would then calculate the chosen variables, submit the results to the 
classifier and then update the segment map attribute table with the 
classification result. In other words a frontend combining v.to.db, 
v.rast.stats, v.class.ml and possibly some others.


Moritz
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user