Raster Operations

Prompts for raster geoprocessing operations

1. Reclassify

Reclassify raster values into categories.

Reclassify [raster_layer] into categories: values 0-10 become class 1, 11-50 become class 2, 51-100 become class 3. Create a new classified raster.

2. Raster Calculator

Perform mathematical operations on rasters.

Calculate [raster_1] + [raster_2] and create a new raster with the sum of cell values. Handle NoData values by treating them as zero.

3. Slope Analysis

Calculate terrain slope.

Calculate the slope from [elevation_raster]. Output slope in degrees. Visualize with a color ramp from green (flat) to red (steep).

4. Aspect Analysis

Calculate terrain aspect/direction.

Calculate aspect from [elevation_raster]. Show which direction each cell faces. Color by compass direction: north=blue, east=green, south=yellow, west=red.

5. Hillshade

Generate hillshade visualization.

Create a hillshade from [elevation_raster]. Use sun azimuth of [degrees] and altitude of [degrees]. Apply to create a 3D terrain effect.

6. Contour Generation

Create contour lines from raster.

Generate contour lines from [elevation_raster] at [interval] meter intervals.

7. Zonal Statistics

Calculate statistics for zones.

Calculate [sum/mean/min/max] of [value_raster] within each zone defined by [zone_layer]. Add the statistics as attributes to the zones.

8. Raster to Vector

Convert raster to vector features.

Convert [raster_layer] to vector polygons. Create a polygon for each contiguous area with the same cell value. Simplify the resulting polygons.

9. Resample

Change raster resolution.

Resample [raster_layer] to [new_resolution] meter resolution. Use [nearest/bilinear/cubic] interpolation method.

10. Mosaic

Combine multiple rasters.

Mosaic [raster_1], [raster_2], and [raster_3] into a single raster. Handle overlapping areas by using the [first/last/mean] value.