[GRASS-user] i.landsat.toar comments have only 0 value

2013-02-15 Thread Daniel Victoria
Hi all, I just ran i.landsat.toar to get the radiance values for a TM5 image and I noticed that the comments in the output metadata (from r.info) have some problem. 1) I asked for radiance output but the comments says the image is reflectance. Image values are consistent with radiance values so I

Re: [GRASS-user] v.db.join question

2013-02-15 Thread Johannes Radinger
Hi all, here some update... On Thu, Feb 14, 2013 at 3:29 PM, Johannes Radinger wrote: > Hi, > > does anyone have an idea what I should test to get my join working? > > /johannes > > On Tue, Feb 12, 2013 at 4:15 PM, Johannes Radinger > wrote: >> Hi, >> >> I try to join a vector attribute table (

Re: [GRASS-user] v.db.join question

2013-02-15 Thread Moritz Lennert
On 14/02/13 15:29, Johannes Radinger wrote: Hi, does anyone have an idea what I should test to get my join working? I think this comes from the -a flag (which only exists in 65, not in 64 nor 7). In the code I see: elif [ "$GIS_FLAG_A" -eq 1 ] ; then col="${col}_other" fi a

Re: [GRASS-user] v.in.ply / GRASS 6.4.2

2013-02-15 Thread Markus Neteler
On Fri, Feb 15, 2013 at 1:12 AM, Hamish wrote: > Carla wrote: >> The extension v.in.ply doesn't work in GRASS GIS 6.4.2 >> (Ubuntu 12.10). FYI Please note that v.in.ply/v.out.ply has been rewritten by Markus Metz in C for GRASS 7 - available as addons. Likely more powerful :) Markus

[GRASS-user] hatching

2013-02-15 Thread Natalia Sofina
Hi everybody! I have a small question... Is there a possibility to visualize objects with any hatching in GRASS GIS? I use usually different colors for differentiating objects with different characteristics in a map. But I need to symbolize the objects with the Grayscale color mode, what is r

Re: [GRASS-user] i.landsat.toar comments have only 0 value

2013-02-15 Thread Nikos Alexandris
On Friday 15 of February 2013 08:58:48 Daniel Victoria wrote: > Hi all, Hi Daniel! > I just ran i.landsat.toar to get the radiance values for a TM5 image and I > noticed that the comments in the output metadata (from r.info) have some > problem. Which metadata file did you use? *MTL.txt or *MTL

Re: [GRASS-user] Global Land Cover Characterization data type

2013-02-15 Thread Michael Spencer
Got the job done, thanks for all the pointers. Took location info from the readme file included in download (which is different to the online help). Used a lat-long on wgs84 projection. Imported via r.in.bin, and again included the details from readme file in bounds tab. Strikes me usgs made

Re: [GRASS-user] i.landsat.toar comments have only 0 value

2013-02-15 Thread Nikos Alexandris
Daniel, if you have the old MTL files beforehand, it might be better right now. Along with another few changes, I've sent a diff to Yann C who will submit them probably tonight. Best, N ___ grass-user mailing list grass-user@lists.osgeo.org http://li

Re: [GRASS-user] Mapcalc for rounding float values

2013-02-15 Thread Glynn Clements
Hamish wrote: > there are a couple ways to do it, here's one: > r.mapcalc "map.2dp = int(0.5 + (map.15g * 100))/100.0" > > the 0.5 is added because int() truncates instead of rounding. Note that r.mapcalc has a round() function. -- Glynn Clements ___

[GRASS-user] Script i.histo.match

2013-02-15 Thread PrusovaM
Hi everybody, I have problem with i.histo.match.py in GRASS on Ubuntu. I have downloaded i.histo.match. py from https://svn.osgeo.org/grass/grass-addons/grass7/imagery/i.histo.match/ I tried to run the script by command: python i.histo.match.py, but it doesn' t work. I have GRASS 6.4.1. and erro

Re: [GRASS-user] Global Land Cover Characterization data type

2013-02-15 Thread Margherita Di Leo
Hi, On Fri, Feb 15, 2013 at 2:05 PM, Michael Spencer wrote: > Got the job done, thanks for all the pointers. > > Took location info from the readme file included in download (which is > different to the online help). Used a lat-long on wgs84 projection. > > Imported via r.in.bin, and again incl

Re: [GRASS-user] Mapcalc for rounding float values

2013-02-15 Thread Margherita Di Leo
Hi, On Fri, Feb 15, 2013 at 2:09 PM, Glynn Clements wrote: > > Hamish wrote: > > > there are a couple ways to do it, here's one: > > r.mapcalc "map.2dp = int(0.5 + (map.15g * 100))/100.0" > > > > the 0.5 is added because int() truncates instead of rounding. > > Note that r.mapcalc has a round()

[GRASS-user] Call Grass modules from C++ code

2013-02-15 Thread matteo poletti
Hi, I'm implementing a model in C++ and I need to call some Grass modules from my code. Which is the best way to do it? Are there APIs that allow me to use the modules as a library? Thanks! Matteo ___ grass-user mailing list grass-user@lists.osgeo

[GRASS-user] SummerSchool AniMove 2013 - Programs learnt will be: R (raster, sp, dismo, rgdal etc.), GRASS (with add-ons like r.pi), QGIS.

2013-02-15 Thread Helmut Kudrnovsky
FYI http://remote-sensing-biodiversity.org/animove2013 This Summer School provides you with profound knowledge of remote sensing and species distribution and animal movement within conservation. It includes hand-on exercises ranging from land

[GRASS-user] Importing ESRI Shapefile might cause attribute data corruption

2013-02-15 Thread Maris Nartiss
JFYI GRASS is also hit hard by recent GDAL/OGR ESRI Shapefile encoding saga. Importing ESRI Shapefile with non-latin text most likely will corrupt Your text. Symptoms - even when setting correct encoding for wxgui in preferences, non-latin letters are shown grabbled and doubled (two garbage symbols

Re: [GRASS-user] Call Grass modules from C++ code

2013-02-15 Thread Rashad M
see programmers manual[1] http://grass.osgeo.org/programming7/ On Fri, Feb 15, 2013 at 7:54 PM, matteo poletti wrote: > Hi, > > I'm implementing a model in C++ and I need to call some Grass modules from > my code. > > Which is the best way to do it? Are there APIs that allow me to use the > mo

Re: [GRASS-user] getting from DBF to SQLite

2013-02-15 Thread Markus Metz
On Fri, Feb 15, 2013 at 8:21 AM, Micha Silver wrote: > On 15/02/2013 01:42, Hamish wrote: > > Markus Metz wrote: > > In GRASS 6.4.1- it was possible to have a separate sqlite db > for each vector in $MAPSET/vector/$MAP/sqlite.db. I have no > idea why this option has been disabled. The VAR file can

Re: [GRASS-user] i.landsat.toar comments have only 0 value

2013-02-15 Thread Daniel Victoria
I upgraded to Grass 7svn rev 55062. That's the latest version available in OSGeo4W 1) Using i.landsat.toar with the NEW MTL and verbose command output: Output in the "Command output" window shows the expected values for calibration constants, DN etc for each band r.info on the output image

Re: [GRASS-user] getting from DBF to SQLite

2013-02-15 Thread Michael Barton
I'm not sure how to pull it off now given the current structure, but IMHO, the ideal organization would be to have 1 sqlite DB for each vector file--so a single DB for all layers of a single vector. That makes vector files portable. I'm not sure if joins across layer tables are needed because

Re: [GRASS-user] hatching

2013-02-15 Thread Markus Neteler
On Fri, Feb 15, 2013 at 1:26 PM, Natalia Sofina wrote: > Hi everybody! > > I have a small question... Is there a possibility to visualize objects with > any hatching in GRASS GIS? I use usually different colors for > differentiating objects with different characteristics in a map. But I need > to

Re: [GRASS-user] Call Grass modules from C++ code

2013-02-15 Thread Markus Neteler
On Fri, Feb 15, 2013 at 5:22 PM, Rashad M wrote: > see programmers manual[1] > > http://grass.osgeo.org/programming7/ > > > On Fri, Feb 15, 2013 at 7:54 PM, matteo poletti wrote: >> >> Hi, >> >> I'm implementing a model in C++ and I need to call some Grass modules from >> my code. >> >> Which is

Re: [GRASS-user] Script i.histo.match

2013-02-15 Thread Markus Neteler
On Fri, Feb 15, 2013 at 2:22 PM, wrote: > Hi everybody, > > I have problem with i.histo.match.py in GRASS on Ubuntu. > I have downloaded i.histo.match. py from > https://svn.osgeo.org/grass/grass-addons/grass7/imagery/i.histo.match/ --> you see, it has been written for GRASS 7, but... > I tried

[GRASS-user] Converting from xy location to latlong projection

2013-02-15 Thread Darren Slevin
Hi, I imported the Global Land Cover Characteristics database v2.0, but cannot get it to have a latlon projection. By using the Force Lat/Lon maps to fit into geographic coordinates option, I keep getting the error: The '-l' flag only works in Lat/Lon locations. I tried it without this opt

[GRASS-user] Press release: GRASS GIS Community Sprint 2013 in Genova

2013-02-15 Thread Markus Neteler
*Press release* GRASS GIS Community Sprint 2013 in Genova The GRASS GIS community is delighted to present the outcome of the 3rd Community Sprint that took place in Genova, from 2nd to 7th of

Re: [GRASS-user] hatching

2013-02-15 Thread Hamish
Natalia wrote: > > I have a small question... Is there a possibility to > > visualize objects with any hatching in GRASS GIS? MarkusN: > You can use "ps.map" for this: > > http://grass.osgeo.org/grass64/manuals/ps.map.html > -> pat - full path to pattern file. [...] Several > standard hatching p

Re: [GRASS-user] Call Grass modules from C++ code

2013-02-15 Thread matteo poletti
> Da: Rashad M >see programmers manual[1] >http://grass.osgeo.org/programming7/ Thanks for your answer. I've seen the programmer's manual, but it seems to me that it presents operations at a lower level than the one that I need. For example if I want to call the module v.in.ogr from my code,

Re: [GRASS-user] Call Grass modules from C++ code

2013-02-15 Thread matteo poletti
> Da: Markus Neteler > > See also here (the page should be expanded): > http://grasswiki.osgeo.org/wiki/GRASS_and_C++ Ok, I have understood that I need to put the keyword "extern". But I'm still confused about how to call other Grass module. I've tried to see the examples linked in the wiki b

Re: [GRASS-user] Call Grass modules from C++ code

2013-02-15 Thread Hamish
matteo wrote: > Ok, I have understood that I need to put the keyword > "extern". But I'm still confused about how to call other > Grass module. > > I've tried to see the examples linked in the wiki but it's a > little bit difficult to understand how they work. Can you > please suggest me a file wh

Re: [GRASS-user] Call Grass modules from C++ code

2013-02-15 Thread matteo poletti
> Da: Hamish > have a look at the functions in lib/gis/spawn.c. Ok, so if I got it right I need to do a sys call exec. What do you usually do for reading the module's output? I suppose that, doing the things this way, I'll need to run my program inside a grass shell to have it working.  Do

Re: [GRASS-user] Converting from xy location to latlong projection

2013-02-15 Thread Hamish
Darren wrote: > I imported the Global Land Cover Characteristics database > v2.0, but cannot get it to have a latlon projection. By > using the Force Lat/Lon maps to fit into geographic > coordinates option, I keep getting the error: The '-l' flag > only works in Lat/Lon locations. > > I tried it

Re: [GRASS-user] Global Land Cover Characterization data type

2013-02-15 Thread Yann Chemin
Yes Michael, would appreciate if you could document it a bit in the wiki (or at least in this list) with the command lines and configurations you used. Thanks, Yann On 15 February 2013 18:35, Michael Spencer wrote: > Got the job done, thanks for all the pointers. > > Took location info from th