GIS Tools

Language

Made withfor the GIS community

Raster Reclass Tool

Reclassify raster values based on custom rules

Raster Tools

Drop GeoTIFF here

Single-band raster

Load a GeoTIFF to reclassify

About Reclassification

  • β€’ Reclassify continuous values into discrete classes
  • β€’ Useful for elevation zones, land cover, risk mapping
  • β€’ Rules are evaluated in order (first match wins)
  • β€’ Export legend as JSON for documentation

What Is Raster Reclassification?

Raster reclassification is the process of assigning new values to ranges or categories of an existing raster. You start with a continuous or categorical raster β€” elevation, slope, NDVI, land cover, soil pH, distance to roads β€” and you collapse the input values into a smaller set of meaningful classes. A continuous slope raster (0 to 90 degrees) becomes a five-class hazard raster (low, moderate, steep, very steep, cliff). A 256-class land-cover raster becomes a binary urban / non-urban mask. A precipitation raster becomes drought severity bins.

The Raster Reclass Tool on gis.tools loads a GeoTIFF, lets you build a reclassification table β€” a list of from / to / new value rules β€” and writes a new GeoTIFF with the remapped values. People search for "raster reclassification", "reclassify raster qgis", "reclass tool gis", "raster bin values" and "remap raster pixels" because reclassification is a foundational step in nearly every multi-criteria suitability analysis, hazard assessment, habitat modelling and decision-support workflow.

Reclassification mirrors the GDAL gdal_calc.py and ArcGIS Spatial Analyst Reclassify functions. It is conceptually simple but operationally crucial: the way you draw your class breakpoints can change the entire interpretation of a downstream analysis.

How Reclassification Works

At its core, reclassification is a per-pixel lookup. Each input pixel value is tested against a list of rules, and the first matching rule determines the output value.

Range-Based Reclassification

A range rule has the form if value >= low and value < high, then new_value = X. Used for continuous rasters: elevation, slope, NDVI, distance, temperature. Range boundaries can be inclusive or exclusive, and adjacent ranges should be contiguous to avoid gaps.

Value-Based Reclassification

A value rule has the form if value == V, then new_value = X. Used for categorical rasters: land cover, soil type, geology, classified zones. A typical use is collapsing a 30-class national land cover dataset into 5-7 broader classes (forest, grassland, agriculture, water, urban, bare).

Lookup Table Approach

For larger rule sets, the tool builds an internal lookup array indexed by input value, so the per-pixel cost is constant time. For floating-point inputs the tool uses a sorted breakpoint search.

Nodata Propagation

Nodata pixels typically pass through unchanged. The tool lets you optionally remap nodata to a specific output class.

Key Parameters and Options

Class Breakpoints

The most important decision in any reclassification is where to draw the boundaries. Standard schemes include equal interval (regular spacing), quantile (equal pixel counts per class), natural breaks / Jenks (minimises within-class variance), and manual / expert breaks (based on domain knowledge or regulatory thresholds). Use the Graduated Styling tool to explore class breaks visually before committing them in the reclass.

Number of Classes

Most analyses use 3-9 classes. Fewer than 3 hides variation; more than 9 overwhelms visual interpretation. Five is a common cartographic sweet spot.

Output Data Type

Reclassed rasters are typically Byte (UInt8) since the new value range is small. Choosing Byte instead of Float32 cuts file size by 4x.

Inclusive vs Exclusive Bounds

Be deliberate about whether the upper bound of one class equals the lower bound of the next, and which direction is inclusive. Consistent conventions prevent off-by-one errors at the breakpoints.

Handling Out-of-Range Values

Decide what to do with input values that fall outside any rule: pass through, set to nodata, or assign a default class.

Practical Applications

Slope Hazard Classification

Convert a continuous slope raster (in degrees) into a five-class avalanche or landslide hazard map: 0-15 (gentle, low), 15-30 (moderate), 30-35 (steep, alarm), 35-45 (very steep, high), >45 (cliff). The output drives risk maps, regulatory zoning and rescue planning.

Land Cover Aggregation

Collapse a 30-class national land cover product (for example USGS NLCD or CORINE) into a 5-class typology that suits a regional planning model. Aggregate all forest sub-classes into a single forest class, all developed sub-classes into urban, etc.

NDVI Thresholding

Convert a continuous NDVI raster into binary or three-class vegetation masks: NDVI < 0.2 (bare/water), 0.2-0.5 (sparse), >0.5 (dense). Used in agricultural monitoring, drought assessment and burn-severity mapping.

Distance Decay

Convert a Euclidean distance raster (distance to roads, distance to streams) into discrete proximity classes: 0-100 m (very close), 100-500 m, 500-2000 m, > 2 km. Drives habitat suitability models and accessibility analysis.

DEM Elevation Zones

Bin a continuous DEM into elevation belts to support biogeographic analysis (lowland, montane, subalpine, alpine, nival). Combined with Slope/Aspect Calculator results, this builds physiographic stratifications for ecological surveys.

Soil Suitability for Crops

Reclass a continuous soil pH or organic matter raster into "unsuitable, marginal, suitable, optimal" classes for a target crop. Multi-criteria suitability analyses combine reclassed soil, slope, aspect and climate rasters.

Burn Severity Mapping

The differenced Normalized Burn Ratio (dNBR) is reclassed into unburned / low / moderate / high severity classes following USGS thresholds for post-fire recovery monitoring.

Step-by-Step Workflow in gis.tools

  1. Open the Raster Reclass Tool on gis.tools.
  2. Drag your input raster (GeoTIFF) into the page. The tool decodes it locally.
  3. Inspect the input histogram and statistics so you can choose sensible breakpoints.
  4. Build a reclassification table: add rows specifying from, to and new value. Use range mode for continuous rasters, value mode for categorical.
  5. Choose how to handle nodata and out-of-range values.
  6. Preview the reclassed raster on the map with a categorical colour ramp.
  7. Click Apply. The tool runs the per-pixel lookup and produces a new GeoTIFF.
  8. Export the result, then chain into Zonal Statistics, Raster to Contours or polygonisation downstream.

Worked Example: Reclassifying a Slope Raster for Forest Operations

You have a 5 m DTM-derived slope raster covering a managed forest in British Columbia. You want to classify the terrain by suitability for ground-based skidder harvesting. You drop the slope GeoTIFF into the Raster Reclass Tool. The histogram shows 0-78 degrees with a median around 22 degrees. You build a four-rule table: 0-20 = 1 (operable), 20-30 = 2 (cable assist required), 30-45 = 3 (helicopter only), 45-90 = 4 (no harvest, leave). You set nodata to pass through and click Apply. The result is a 4-class Byte GeoTIFF that you overlay on your management blocks. You then use Zonal Statistics to compute the area of each class within each block, helping you cost the harvest plan.

Common Pitfalls and Gotchas

  • Off-by-one errors at class boundaries are the most common mistake β€” be deliberate about which side is inclusive.
  • Choosing equal-interval breaks on a heavily skewed distribution wastes classes on rare extreme values; use quantiles or Jenks instead.
  • Reclassifying a continuous raster too coarsely loses spatial detail; too finely defeats the purpose.
  • Forgetting to handle nodata produces a raster with random nodata behaviour at the edges.
  • Float-to-Byte output requires that all output values fit in 0-255; otherwise switch to UInt16.
  • The same raster reclassed with two different breakpoint schemes can yield contradictory conclusions β€” document your scheme.
  • MAUP (Modifiable Areal Unit Problem) in disguise: how you bin matters as much as the underlying data.
  • Reclassified rasters lose continuous information forever β€” save the original.

Tips for Best Results

  • Start with the histogram. Equal interval, quantile and Jenks breaks each tell different stories β€” pick one that aligns with your analytical goal.
  • Use industry-standard thresholds when they exist (e.g. USGS dNBR burn-severity classes, USDA soil pH classes).
  • For multi-criteria analysis, reclass each input raster to a common scale (1-5 suitability) before combining.
  • Choose Byte output for class rasters under 256 classes β€” file size matters when exporting.
  • Document your breakpoints in a sidecar README or in the raster's metadata.
  • Use a categorical colour ramp on the output for cartography rather than a continuous gradient.
  • Test the reclass on a small subset before running the full extent.
  • If you change your mind about the breakpoints, always restart from the original raster, not the reclassed one.

Comparison with Other GIS Approaches

ArcGIS Spatial Analyst's Reclassify and Reclass by Table tools, QGIS's r.reclass (via GRASS) and Reclassify by table, and GDAL's gdal_calc.py --calc expression all do the same operation. Python with rasterio + numpy gives you full programmatic control. The Raster Reclass Tool on gis.tools is a zero-install browser equivalent. The trade-off is that you cannot embed the reclass in a Python pipeline, but for one-off interactive work and teaching scenarios it is ideal.

Performance Considerations

Reclassification is a single-pass O(n) operation with O(1) per-pixel cost when the rule table is small. A 4000x4000 raster reclasses in well under a second. Larger inputs scale linearly. Memory is the main constraint β€” the input and output rasters both live in browser memory. For very large inputs, downsample with Raster Resampler or clip with Clip Raster by Polygon first.

Data Privacy and Browser-Based Processing

Your raster file is read with the File API and processed with WebAssembly numerical kernels in your tab. No upload occurs; no telemetry is collected; the rule table you build lives only in the page state. This matters for sensitive land-cover datasets, proprietary harvest planning data, classified terrain rasters and any workflow subject to data residency requirements.

Related GIS Concepts

Multi-Criteria Decision Analysis (MCDA): A workflow that reclasses several input rasters to a common 1-5 suitability scale, then combines them with weighted overlay. Used in site selection, conservation planning and corridor design.

Weighted Overlay: The arithmetic combination of multiple reclassed rasters using analyst-specified weights.

Lookup Table: An ordered table mapping input values to outputs β€” the data structure underlying every reclassification.

Equal Interval, Quantile, Natural Breaks (Jenks): Three classic classification schemes for choosing breakpoints. See Graduated Styling for an interactive approach.

Raster Algebra: A broader family of pixel-level operations of which reclassification is a special case.

Frequently Asked Questions

What is the difference between range and value reclassification?

Range mode bins continuous data (e.g. elevation 1000-1500 m -> class 2). Value mode remaps discrete codes (e.g. land cover code 41 -> code 1). Use range for continuous rasters and value for categorical.

Can I reclassify a multi-band raster?

The tool reclassifies one band at a time. Pick the band you want before applying.

How do I choose class breakpoints?

Start with the histogram and pick a scheme that matches your analytical question. For exploratory work try quantiles or Jenks; for regulatory work use the official thresholds.

Does the reclass tool handle nodata correctly?

Yes β€” nodata pixels pass through to the output by default, and you can optionally remap them to a specific class.

What output data type should I use?

For class outputs with fewer than 256 classes, use Byte (UInt8). For 256-65535 classes use UInt16. Float is rarely needed for reclassified outputs.

Can I save my reclass rules to use later?

Yes β€” copy the rule table from the panel and paste it into your project notes or save the project state with the GIS Notebook.

Related Tools on gis.tools

100% client-side processing - your data stays private and never leaves your device