Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a building footprint shapefile (polygons) that I want to convert to a raster. I use the Polygon to Raster tool, and specify a cell size by importing from another raster (which is 24m x 30m). The results appear to show that only a couple of the polygons have been rasterized. Why is it that some polygons are and some aren't?

I've attached a picture below showing my results. Pink = building footprint; red = raster pixels after using tool Polygon to Raster. I would like to have a raster file that covers ALL of the building footprints (pink).

enter image description here

share|improve this question

2 Answers 2

If you want every cell that contains a building to be switched on then don't use the polygons...

Create centroids using Feature to Point for the polygons and use Point to Raster to generate the raster. This will guarantee that each cell that has a building centre on it will have a value.

Optionally, if you want cells that contain part of a building but not necessarily the centre then use Feature Vertices to Points to generate the points which will give one point for each vertex of the polygons.

share|improve this answer

Looks like the cell assignment method is CELL_CENTER (so polygon would need to be located over the cell center to be digitized). Using MAXIMUM_AREA will capture more of the polygons, although possibly not all since the cell size is so much larger relative to the polygons.

You might get closer to the results you want if you first make a Minimum Bounding Geometry polygon, then convert that to a raster. It would help fill in the gaps between the buildings.

share|improve this answer
    
I tried both the suggestions. With the MAX_AREA I ended up getting the same results, and with the minimum bounding geometry I ended up with less raster pixels. –  poly_to_ras Jul 25 at 0:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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