Weighted overlay services are based on raster layers. To prepare your data for weighted overlay analysis, you may need to convert existing vector data to raster data. Before converting your data to a supported raster format, verify each dataset's geometry, project the data to a common coordinate system, and clip your datasets to an area of interest. The following tools can be used to prepare your data for weighted overlay services:
- Run the Check Geometry tool to generate a report of the geometry problems in a feature class.
- Run the Repair Geometry tool to fix problems found by the Check Geometry tool.
- Optionally, run the Project or Project Raster tool to project all of your datasets to a common coordinate system.
- Optionally, run the Clip tool to extract features in your area of interest. This reduces the size of your rasters and may expedite configuration and processing times.
- The toolbox currently supports specific raster types. If you have an unsupported layer type, use one of the tools in the Conversion or Spatial Analyst toolbox to convert your data to one of the supported raster file types:
- Cloud Raster Format (CRF)
- Meta Raster Format (MRF)
- Cloud Optimized GeoTIFF
The tools that convert vector datasets to raster datasets require a cell size. If you use a common cell size for all rasters, your overlay analysis may be more accurate. You can calculate a cell size based on the extent of one of your datasets.
The following Python code sample calculates a cell size from a feature layer by finding the shortest extent dimension and dividing it by 250. You can run this from the Python window in ArcGIS Pro.
if ext.width < ext.height:
Manage NoData values
Raster datasets can contain areas without data known as NoData cells. NoData cells can alter overlays by masking cells beneath them. This has the effect of removing those raster cells from the analysis. You can calculate NoData cell values to another value using the Raster Calculator tool.
The following optional workflow demonstrates how to use the Raster Calculator tool to calculate NoData values to another value in an input raster dataset:
- Add your raster layer to a map in ArcGIS Pro.
- To visualize NoData cells in your raster dataset, do the following:
- Right-click your raster layer in the Contents pane.
- Click Symbology.
- Click the Mask tab and click the Nodata color picker drop-down arrow.
- Choose a color from the color picker to visualize the NoData cells.
The map display updates to symbolize the NoData cells using the color you chose.
- Open the Raster Calculator tool in the Spatial Analyst toolbox.
- In the Map Algebra expression text box, type the following expression: Con(IsNull("raster-layer-from-step-1"),no-data-replacement-value,"raster-layer-from-step-1").
- Browse to a file location to store your raster for the Output raster parameter.
- Click Run.
The Raster Calculator tool runs and writes a new raster dataset to the location you specified in the Output raster parameter.
You have prepared your data for use in a weighted overlay service.