I'm trying to create a raster layer from a polyline layer (roads) that has the same extent as another raster layer (DEM)

What I've done so far is convert the second raster layer (DEM) with the extent I want to a polygon. This was then used to clip the polyline layer (roads). The polyline layer was then buffered, and converted into a raster layer with a resolution of 10x10.

However, the extent is different. Due to this, I can't do raster multiplication.

How can I ensure the extent is the same as the 'base' raster layer?

1 Answer 1


In ArcMap in the Geoprocessing Menu, click Environments... There is a section called Processing Extent. Set the Snap Raster to be the existing raster layer (DEM). Then, other rasters you create will "line up" with each other and operations like raster multiplication will behave as expected.

enter image description here

  • If I do this, will it ensure that all the rasters conform to the same extent and resolution? Commented Jun 14, 2017 at 19:12
  • Yes, that's the purpose of the Extent and Snap Raster settings. It will apply in that MXD Commented Jun 14, 2017 at 19:16
  • sometimes ArcGIS does not make EXACTLY the same extent despite this, but it is very close.
    – radouxju
    Commented Jun 14, 2017 at 19:29
  • 1
    @Matthew Note that to ensure you get the same resolution for your new raster, you should also specify the cell size in the 'Raster Analysis' section of this same Environment settings menu. See documentation for the Snap Raster setting
    – K. Credo
    Commented Jun 14, 2017 at 21:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.