<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Determining number of pixels that a polyline runs through. in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301965#M17300</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nevermind, I got it to work. Thanks for all your help Eric.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2011 19:38:03 GMT</pubDate>
    <dc:creator>RyanBown</dc:creator>
    <dc:date>2011-08-05T19:38:03Z</dc:date>
    <item>
      <title>Determining number of pixels that a polyline runs through.</title>
      <link>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301959#M17294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a raster layer and a shapefile which contains a network of polylines. I am trying to find a way to calculate the number of pixels in the raster layer that a specific polyline goes through. It would be great if they was a way to extract the raster cell value as well. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 20:18:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301959#M17294</guid>
      <dc:creator>RyanBown</dc:creator>
      <dc:date>2011-08-02T20:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Determining number of pixels that a polyline runs through.</title>
      <link>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301960#M17295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ryan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Run &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z0000002n000000.htm"&gt;Extract by Mask&lt;/A&gt;&lt;SPAN&gt; and use your polyline as the mask input.&amp;nbsp; It will pull the values from underneath the polyline and then you can open the attribute table and check the Count field to get the number of pixels.&amp;nbsp; This tool requires Spatial Analyst, and I'm also making an assumption you're working with an integer raster; Floating point rasters do not have attribute tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 14:04:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301960#M17295</guid>
      <dc:creator>EricRice</dc:creator>
      <dc:date>2011-08-03T14:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Determining number of pixels that a polyline runs through.</title>
      <link>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301961#M17296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Eric, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much for your response. The extract by mask tool worked great but I have a several polylines group together in one feature layer. The polyline feature layer has a single attribute table but there are several line segments each having their own properties. I've attached a photo to be clear. I would like to add the number of pixels field to the attribute table for each line segment. I know I can select each line segment and make it its own feature layer but is there a more efficient way of doing it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 19:50:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301961#M17296</guid>
      <dc:creator>RyanBown</dc:creator>
      <dc:date>2011-08-03T19:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Determining number of pixels that a polyline runs through.</title>
      <link>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301962#M17297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ryan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After reading your post and thinking a bit more about this, I don't think Extract by Mask is all that viable.&amp;nbsp; It would require you to summarize each raster created from selected polylines which is just more work.&amp;nbsp; This a.m. I ran Zonal Statistics as Table with many polylines (for the zone features) and it worked really well.&amp;nbsp; The only thing is that it doesn't extract the underlying raster values to form a new raster like the extraction tools do.&amp;nbsp; It will however, provide you with some meaningful statistics about the underlying pixels. Count, Min, Max, Range, Mean, etc...&amp;nbsp; All you have to do is join the output table back to your original polylines using the same field you specified in the Zone Field parameter of the tool.&amp;nbsp; Let me know if this works better for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, do you polylines cross each other? This will be problematic unless managed properly.&amp;nbsp; What version are you using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 13:14:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301962#M17297</guid>
      <dc:creator>EricRice</dc:creator>
      <dc:date>2011-08-04T13:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: Determining number of pixels that a polyline runs through.</title>
      <link>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301963#M17298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Eric,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To answer your question, the polylines do not cross each other. My colleague actually just built a tool that deletes identical polylines and ensures that each line segment arc has only two nodes. I am using arcGIS 10. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Zonal Statistic as Table tool worked great. The tool did a great job counting the number of pixels as well as the mean value of the raster cell which is exactly what I wanted. However, I ran into trouble when I tried to join the newly created table back to the polyline attribute table. The join is not validating because there are reserved words (COUNT, MAX, MIN, etc). Is there a way to get around this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 15:47:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301963#M17298</guid>
      <dc:creator>RyanBown</dc:creator>
      <dc:date>2011-08-05T15:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Determining number of pixels that a polyline runs through.</title>
      <link>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301964#M17299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which field are you joining on?&amp;nbsp; I am not having any problems joining the table back to my example polylines.&amp;nbsp; I used ObjectID for my zone field, and that is the field I join with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 16:07:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301964#M17299</guid>
      <dc:creator>EricRice</dc:creator>
      <dc:date>2011-08-05T16:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Determining number of pixels that a polyline runs through.</title>
      <link>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301965#M17300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nevermind, I got it to work. Thanks for all your help Eric.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ryan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 19:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301965#M17300</guid>
      <dc:creator>RyanBown</dc:creator>
      <dc:date>2011-08-05T19:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Determining number of pixels that a polyline runs through.</title>
      <link>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301966#M17301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No problem.&amp;nbsp; Good luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 20:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/determining-number-of-pixels-that-a-polyline-runs/m-p/301966#M17301</guid>
      <dc:creator>EricRice</dc:creator>
      <dc:date>2011-08-05T20:39:56Z</dc:date>
    </item>
  </channel>
</rss>

