I have a line feature class of routes and a raster file with 12 unique values. I want to know how much cells of each value in the raster has that intersect with lines.

I've tried zonal statistics (as table) but the result is the opposite, I get the mean value of the raster file within each line. My needed output however is a table with in the first collumn the raster values 1 to 12 and in the second column the total area of that value that intersects with lines.

Is there any function that does this for lines in ArcGIS Pro?

  • rasterstats (Python package) will return an array where all pixels are masked except the intersecting ones; it is only a couple lines of code to create your table following that. As for an ArcGIS solution, I don't know. You might look at a profile tool, which should somehow fetch the values along the line.
    – Jon
    Commented Nov 29, 2018 at 14:39

1 Answer 1


Try the Tabulate Areas tool. Link to Tool Description here

  • It doesn't look like that will take a line feature as an input, unless I'm missing something. OP would need to rasterize the line first.
    – Jon
    Commented Nov 29, 2018 at 23:19
  • From the link: if a point or line is used as the input raster or feature class data, the area intersected by those features will be reported.
    – Jae
    Commented Nov 29, 2018 at 23:25

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.