Re: [GRASS-user] multiple polygons with same cat

2013-11-26 Thread Markus Metz
On Tue, Nov 26, 2013 at 3:39 AM, Dave Roberts dvr...@ecology.msu.montana.edu wrote: Friends, I'm not exactly a newbie, but still yet quite naive in GRASS. This seems like a simple problem, but I suspect unforeseen problems with the simple solution. I have imported a surficial geology

Re: [GRASS-user] multiple polygons with same cat

2013-11-26 Thread Moritz Lennert
On 26/11/13 03:39, Dave Roberts wrote: Friends, I'm not exactly a newbie, but still yet quite naive in GRASS. This seems like a simple problem, but I suspect unforeseen problems with the simple solution. I have imported a surficial geology map from a shapefile. There are 1082 polygons.

[GRASS-user] calculate percentage of land use in larger cells

2013-11-26 Thread Moritz Lennert
Hi, I'm pretty sure that this has been discussed before and even that some solution already exists, but I just can't seem to find the right search terms to put my hands on it: I have a raster layer with landcover at 0:00:10 resolution. I would like for a select of the landcover classes

Re: [GRASS-user] multiple polygons with same cat

2013-11-26 Thread Markus Metz
On Tue, Nov 26, 2013 at 11:08 AM, Moritz Lennert mlenn...@club.worldonline.be wrote: Doesn't v.in.ogr attribute new, unique cat values to every polygon ? Not if the input feature is a MULTI* feature. All features in a MULTIPOLYGON, MULTILINE, or MULTIPOINT will get the same category. That keeps

Re: [GRASS-user] multiple polygons with same cat

2013-11-26 Thread Dave Roberts
Thanks Markus. This has me on the right track, but I haven't gotten it all to work yet. v.category map=geo type=centroid op=add layer=2 refused to work without a new output map, so v.category inp=geo out=new_geo op=add layer=2 produced a new vector map where the cats are unique for each

[GRASS-user] Get sums of raster values based on the categories of an overlay raster

2013-11-26 Thread Johannes Radinger
Hi, I'd like to calculate the sum of all raster values that belong to a certain group. This spatially organized group is also indicated by an overlay raster (same resolution). Finally I want to assign these sums to a new raster. That might sound slightly complicated but here an example: Asume

Re: [GRASS-user] multiple polygons with same cat

2013-11-26 Thread Dave Roberts
I would suggest to run v.category inp=geo type=centroid out=new_geo op=add layer=2 --o Thanks Markus! Now I'm getting somewhere. v.info shows geo and new_geo in perfect correspondence for areas, islands, boundaries, etc. d.what.vect shows new_geo with the original data in layer 1 and

Re: [GRASS-user] multiple polygons with same cat

2013-11-26 Thread Markus Metz
On Tue, Nov 26, 2013 at 4:34 PM, Dave Roberts dvr...@ecology.msu.montana.edu wrote: I would suggest to run v.category inp=geo type=centroid out=new_geo op=add layer=2 --o Thanks Markus! Now I'm getting somewhere. v.info shows geo and new_geo in perfect correspondence for areas, islands,

Re: [GRASS-user] multiple polygons with same cat

2013-11-26 Thread Dave Roberts
Markus, Thanks a mill! I'll try that when I get back to that machine. I really appreciate you time end expertise. You're a scholar and a gentleman. Dave On 11/26/2013 08:48 AM, Markus Metz wrote: On Tue, Nov 26, 2013 at 4:34 PM, Dave Roberts dvr...@ecology.msu.montana.edu wrote:

Re: [GRASS-user] composite raster maps

2013-11-26 Thread Glynn Clements
Markus Metz wrote: I just realize I've used r.composite for ages without wondering how I could perform the reverse task. The thing is I ran r.composite on a 3 band geotiff orthoimage, dropped the initial .red, .green and .blue rasters, and I would need them now in order to run r.out.vtk

Re: [GRASS-user] i.maxlik can't read signature from i.class

2013-11-26 Thread Venkatesh Raghavan
Hi Augusto, In GRASS-6.4.3, i.class only works on 8bit images. Since the Landsat 8 products are 12bit data, proper signature files cannot be produced by i.class. You could try rescaling data to 8bit and see if i.class and i.maxlik works. Best Venka P.S. I hope i.class will be support 12,

Re: [GRASS-user] multiple polygons with same cat

2013-11-26 Thread Dave Roberts
Markus, v.to.db map=new_geo layer=2 column=surgeo option=query qlayer=1 qcolumn=surgeo In this example, the column surgeo in layer 2 must exist and must be of the same type like the column surgeo in layer 1. the qcolumn actually had a different name, but with that small correction this

Re: [GRASS-user] i.maxlik can't read signature from i.class

2013-11-26 Thread Cesar Augusto Ramírez Franco
Hello Venka Thank you for your response Unfortunately, I did rescale my lsat8 images to 8bit, however, I tested with North Carolina sample dataset which is Landsat 7 (8bit) and got the same error, so it must be something else, maybe i.class generating a wrong signature file? 2013/11/26

Re: [GRASS-user] composite raster maps

2013-11-26 Thread Vincent Bain
OK for the caution Glynn, for my particular concern I finally re-ran the process from the source files. Thank you, V. Le mardi 26 novembre 2013 à 19:07 +, Glynn Clements a écrit : Markus Metz wrote: I just realize I've used r.composite for ages without wondering how I could