I am using a 50mx50m grid irregular shaped DEM file.I have to work on the boundary conditions. How do i extract the cell locations ( in x,y coordinate ) along the boundary edge and consequently find the elevation of the respective boundary cells. I am using ArcGIS 9.3 for my work. Thanks in advance.
|
This question asks for two things: (1) identify the boundary cells and (2) "find" their elevations. Although "find" could be interpreted in many ways (do you want an output table of elevations? A DEM containing only those cells? etc.), doing it is straightforward once you have solved (1), especially if the boundary cells have been represented as an indicator grid: this is a grid that has one kind of value at the desired cells and another value at all other cells. Depending on the follow-on analysis, a 1-0 indicator or a 1-NoData indicator usually work best (and either is converted into the other using The problem is thereby reduced to efficiently computing an indicator grid for the boundary cells. If we characterize a boundary cell as one that is adjacent to at least one NoData cell (where "NoData" includes hypothetical cells that would lie beyond the edges of the grid itself), then the solution evidently requires a "focal" or neighborhood operation. One way is to turn the DEM itself into a 1-0 indicator; this can be done with To summarize, an efficient raster-based workflow to create an indicator grid of all boundary cells starting from a DEM is given by this pseudocode:
The As an example, here is a corner of a much larger DEM, shown hillshaded:
Its indicator
The focal sum of
You can see that all the action is around the perimeter, as it should be. Overlaying those cells that are less than 9 with the indicator
(Notice that the border in this case includes an internal cell that was missing a value: it's near the center bottom.) This procedure involves just five grid operations ( |
|||||
|
|
|||
|
|





