Tell me more ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have raster map A=elevation values and raster map B=raster with colors (each color represents a polygon boundary. raster map B is created with the use of v.to.rast)

I want to select the part of raster map A that is the same color with a particular color/area in raster map B.

I'm thinking of getting the intersection of raster map A and raster map B with raster map B containing only one color. Having the intersection of the two maps, I want to produce a new raster map C containing only raster map A that is the area similar to the shape of raster map B.

How is it done? Thanks!

share|improve this question
2  
possible duplicate of How to combine a vector and a raster file? – underdark Jan 30 '11 at 14:57
sorry but I really don't have a clear idea as to how to select a raster map based on a vector map's boundaries. To be exact extracting the elevation of a certain town within a province/state. I am stuck with it right now since I have a DEM and a Vector file containing the political boundaries. For example I input bulacan and all the elevation in that area would be extracted. TYIA! – teamAngat Jan 30 '11 at 16:43
2  
Check "Clipping and masking" paragraph here: linfiniti.com/2010/12/… – underdark Jan 30 '11 at 16:53
Confusing. What you want in only to clip the elevation raster or something else? There is r.mapcalculator if you want to do more... – Pablo Jan 31 '11 at 12:16
We want to clip the elevation raster and get the elevation points of each of the points in the clipped area. Can we get the points of the clipped area? – teamAngat Jan 31 '11 at 17:02
show 1 more comment

closed as not a real question by scw Feb 28 '11 at 2:13

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.