Select to view content in your preferred language

Convert depth raster to polygons of 10m intervals

1841
2
03-09-2011 05:13 AM
RachaelYule
Emerging Contributor
Using: ArcGIS (ArcView) 10. Have extensions 3DA, SA and xtoolsPro.

Hi

I have a asc file representing a depth grid. I have an area within this grid that I want to generate a polygon feature class that represents depth grouped into 10m depth ranges.  I'll can then symbolise this based on the 10m range classification and importantly undertaken spatial analysis on the polygons with other feature classes. Essentially certain depth ranges represent constraints for my exercise.

I can get close to achieving the desired polygon feature class, via two methods, but both seem massively convoluted. Is there a better way?

Option 1: via xtoolsPro & SA:
1. convert asc to raster (using conversion toolbox)
2. generate contours at 10m intervals (using SA toolbox)
3. generate a polygon of the extent of a raster (I had this previously, my client's licence area)
4. Split extent polygon by polylines (using xtoolspro) = this gives closed polygons of depth areas at 10m intervals BUT the polygons have no attributes are carried through using xtoolsPro.
5. then I was going to somehow query the polygons and calculate field to populating a depth range.
could do this manually or via python maybe?

Option 2: via SA only.
1. convert asc to raster (using conversion toolbox)
2. generate a Integer raster from the original float raster (using map algebra tool in SA toolbox)
3. Convert integer raster to polygon (using conversion toolbox)
4. create a new field called 'depth range' in the polygon layer attribute table
5. query by attribute and calculate field, and populate the depth range field for each individual polygon that represents each pixel.
6. merge features based on there depth range.

I can script in python (still learning!), which could help with automating the calculate field operations but thought there must be a better way of doing this?

Also, I checked out creating a TIN from the raster, but couldn't see an easy way to extract polygons based on ranges of values (I didn't understand TIN tags by the way).

Please help? Hope this is clear.
Cheers - Sam
0 Kudos
2 Replies
RachaelYule
Emerging Contributor
Okay I'm answering my own question but this might be useful for others...

I achieved the raster to 'banded' polygons by this method:
1. Convert asc to integer tif (Conversion Toolbox)
2. Use the raster calculator tool with the following formula: "grid01.tif" - Mod("grid01.tif",10), this reduces all values in the range of say between 30 to 39 to 30 within my grid01.tif
3. Convert the integer raster to a polygon (using Conversion Toolbox)
4. Edit the polygon attribute table to represent the range of values & add a category based symbology to achieve a banded contour look.

I hope this works for others...
Cheers
SarahGoode
Emerging Contributor
Hi, I've been trying to do something similar with PGA (peak ground acceleration) values from earthquakes.

I had contour lines (polyline shapefile) to start with, and have managed to create polygons, but need a relatively easy way to fill the range values for the polygons.

you mentioned in your post "Edit the polygon attribute table to represent the range of values & add a category based symbology to achieve a banded contour look"

Did you manually fill these values or was there some way to automatically populate these fields from the contour data?

I am using ArcEditor with Spatial Analyst extension.

Thanks!
0 Kudos