I am trying to use the "Polygon to Raster" tool on a building extents polygon file to create a raster with the exact extents and cell size as an existing flood depth raster. Even though I have added my desired raster extent in the snap raster option in the Environment settings and defined the cell size, the result does not have the same extents. Furthermore, I made sure that they have the same projection (WGS_1984_UTM). I really need them to have the same extents and cell size as I want to do some calculations between them (e.g. calculate the flood depth at the buildings location). Any idea why this is happening?
I realized that to have the rasterized polygons with the same extents and cell size, you have to both choose the desired raster as the extents AND as the snap raster. This resulted in a raster with the exact same extents and cell size as the desired one.