raster to polygon producing blocky results

2899
3
11-17-2017 04:56 PM
DavidAskov1
Occasional Contributor

Short(er) version of the question: I have a raster surface (decimal values) that I want to convert into 5 categories of polygons based on class breaks, and the output must be smooth and visually appealing. Using the "contour list" tool and line smoothing (PAEK method), I'm able to produce nice contour lines that are basically what I want, but I need polygons. Back in the raster world, using reclass (to convert to integer) and then "raster to polygon", I get a jumble of sliver polygons and ugly blocky edges. I could smooth these out, but it also doesn't create concentric rings in places where it increases sharply, so I get non-consecutive values adjacent to each other. The screenshot below shows what it looks like when I use raster to polygon without simplification, and the simplified version is an even worse mess. The nice contour lines are drawn over it. How can I get polygons that look like what I see with these contour lines? 

Contours are what I

Long(er) version of the question: My input is a raster surface (double), and I want to produce polygons as output for 5 classes based on thresholds. I have ArcGIS Desktop and access to all the extensions. Although I may be a data nerd who doesn't see any problem with blocky edges and sliver polygons, my marching orders were to produce nice, clean polygons that show the larger trends in the data and remove the micro-fluctuations in the data. In other words, it needs to be smooth and visually appealing, and I have creative license to get there.

The raster is an air quality model, so it's not a conventional DEM terrain surface. There are massive fluctuations in the surface (Z) value in a very short distance, so contours will be very close to each other, but I do need them to be concentric, even if they are very narrow bands (like the contour lines above). I have already smoothed it and reduced the cell size to get this far. I suppose I could continue to smooth and resample until my raster data processing produces something similar to the contours. That said, I feel like I have what I want with the contours (visually), but I need polygons, not lines.

I found an Esri help doc on converting contours to polygons saying to rasterize it and then run raster to polygon. This doesn't exactly fill me with confidence, since that is the process I'm fighting with already! Is there some contouring tool that will do what I have above, but with the lines filled in as polygons?

0 Kudos
3 Replies
DanPatterson_Retired
MVP Emeritus

well if you like your contours

https://blogs.esri.com/esri/arcgis/2012/11/21/create-filled-contours-script-tool-for-arcgis-10/

or

https://support.esri.com/en/technical-article/000012180

and if you interpolator came from the geostatistical analyst

http://desktop.arcgis.com/en/arcmap/latest/extensions/geostatistical-analyst/representing-geostatist...

plus there are a variety of more options, somewhat hard to find in the help files... they need consolidating and references in the help

0 Kudos
DavidAskov1
Occasional Contributor

Thanks, Dan, I'll check out the TBX (link 1 to the blog).

I had already viewed link 2 (support article). Option A produced some funny results. Any feature touching the edge of my raster did not get converted. Also, there are no attributes produced, and producing the label features seemed like a big hassle. Option B gets into converting to raster and back to vector, which seems like the process I'm already struggling with...

Here is a screenshot of what I'm getting (blue) with the raster-to-polygon behind it. It appears that anything touching the outer boundary is missing.

Link 3 (GeoStats) looks promising. I had actually stumbled upon that just before you replied. I am really struggling with creating the Geostatistical Layer. Any ideas on that? I converted my raster to points and ran the IDW tool (from Geostatistical Analyst) and it runs without error, but it doesn't produce a layer file! Any idea what I'm doing wrong? It will produce a TIF if requested, but I don't get a .lyr file with or without the TIF. As you can see in the screenshot below, I am specifying a path to a file, but it doesn't have a file-open icon next to it, so is that just an in-memory layer or something?

(I'm not set on IDW, either - happy to use a different method - just started with the simplest first.)

thanks!

0 Kudos
DanPatterson_Retired
MVP Emeritus

There are few listed options in GA

http://pro.arcgis.com/en/pro-app/tool-reference/geostatistical-analyst/an-overview-of-the-working-wi...

haven't go anything to demo here though

0 Kudos