I am using ArcMap 10.3.1 to try and extract the values of raster pixels that individual polylines intersect. I have tried using extract by mask but the wide mask created for each polyline intersects a greater number of raster pixels than just the thinner polyline does, which is unfortunately not very useful for me. Are there any ways to achieve the desired result?

Raster layer (white to green pixels, each with a unique value) with blue polylines overlain

  • 1
    Interpolate shape from 3d analyst – FelixIP Apr 19 '17 at 4:34
  • Okay, I tried this, but it doesn't output values of raster pixels on that line. It only gives me a shape length. Is there something I'm missing or supposed to do with this new layer to then get these values? – Jake Andrae Apr 19 '17 at 5:09
  • Convert vertices to points. Unless you want statistics. If so add Z information – FelixIP Apr 19 '17 at 6:51
  • 1
    Frankly you question badly worded, gives no clue about your objective. – FelixIP Apr 19 '17 at 6:58

One approach: Treat your raster data as elevation, and use StackProfile_3d(in_transect, in_raster, out_tablename, {out_graphname}). You'll get an output table of z-values plotted against distance from transect origin.

Another: Convert your raster to a point file RasterToPoint_conversion(), buffer your transect Buffer_analysis(), and find the overlap with ExtractByMask_sa(). You'll get a new layer that contains only the cells near your transects.

| improve this answer | |
  • The second approach was ideal for my purposes – Jake Andrae Apr 20 '17 at 1:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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