<?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: Polygon to Raster misses data in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174111#M5834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just thought of a pretty inefficient solution, which could be generalized to non-binary outputs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;convert the polygon to a polyline&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;run Polygon to Raster on the polygon&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;run Polyline to Raster on the polyline&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;use Con( ~ IsNull (raster), 1, 0 ) on each raster&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;output = [polyline_raster] | [polygon_raster]&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Nov 2012 17:46:30 GMT</pubDate>
    <dc:creator>AustinMilt</dc:creator>
    <dc:date>2012-11-20T17:46:30Z</dc:date>
    <item>
      <title>Polygon to Raster misses data</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174109#M5832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am writing a script that converts features to a binary raster based on presence/absence in a cell. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In practice, when converting polylines to raster using "Polyline to Raster (conversion)", any cell through which a line passes is counted as data in the output raster. However, (and here is my problem), &lt;/SPAN&gt;&lt;STRONG&gt;when converting polygons to raster using "Polygon to Raster (conversion)", only cells whose center is overlapped by the polygon are counted as data in the output.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that I want the polyline to raster functionality when executing polygon to raster, i.e. I want any cell for which the polygon overlaps at all to be turned into data in the output. Is there a way to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To illustrate the problem: [ATTACH=CONFIG]19440[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notice that the sliver that sticks down in the original polygon is missing in the polygon to raster, but is present in the polyline to raster (bottom row). What I would like is to have the output in the bottom-right, but for the values inside the raster border to have the same value as the border.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: I know that you can change the polygon to raster behavior to use "maximum area", but this still registers NoData if the cell area covered is &amp;lt;50%. My example illustrates how polygon to raster still fails.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 17:22:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174109#M5832</guid>
      <dc:creator>AustinMilt</dc:creator>
      <dc:date>2012-11-20T17:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon to Raster misses data</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174110#M5833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;have you tried to specify a specific cell size or are you relying on the defaults?&amp;nbsp;&amp;nbsp; I would specify an output cell size to optimize the conversion.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 17:45:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174110#M5833</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2012-11-20T17:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon to Raster misses data</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174111#M5834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just thought of a pretty inefficient solution, which could be generalized to non-binary outputs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;convert the polygon to a polyline&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;run Polygon to Raster on the polygon&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;run Polyline to Raster on the polyline&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;use Con( ~ IsNull (raster), 1, 0 ) on each raster&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;output = [polyline_raster] | [polygon_raster]&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 17:46:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174111#M5834</guid>
      <dc:creator>AustinMilt</dc:creator>
      <dc:date>2012-11-20T17:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon to Raster misses data</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174112#M5835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;have you tried to specify a specific cell size or are you relying on the defaults?&amp;nbsp;&amp;nbsp; I would specify an output cell size to optimize the conversion.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a specific cell size I have to use. In general, cell sizes will not be small.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 17:47:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174112#M5835</guid>
      <dc:creator>AustinMilt</dc:creator>
      <dc:date>2012-11-20T17:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon to Raster misses data</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174113#M5836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried the Feature to Raster tool instead?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 14:32:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174113#M5836</guid>
      <dc:creator>RobinCheskin</dc:creator>
      <dc:date>2012-11-21T14:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon to Raster misses data</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174114#M5837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;have a look in the doc, &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.1/#/How_Polygon_To_Raster_works/001200000037000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.1/#/How_Polygon_To_Raster_works/001200000037000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Viz.,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If priority is specified, and:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; The feature in question overlaps the cell by less than 50%, and:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; - The priority is greater than zero, then it is considered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; - The priority is equal to zero, then the feature is not considered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Add a field to your polygon feature class and populate it with 1's and use this as the priority field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, from ArcGIS 10 onwards, FeatureToRaster internally calls Point, Polyline or Polygon to Raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 19:16:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174114#M5837</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2012-11-21T19:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon to Raster misses data</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174115#M5838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ah, I did not pay close enough attention when reading that the first several times. I'll give the priority field a try and see how it fairs. Thanks for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 11:27:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174115#M5838</guid>
      <dc:creator>AustinMilt</dc:creator>
      <dc:date>2012-11-22T11:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon to Raster misses data</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174116#M5839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;stevelynch's method works great. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 16:36:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-misses-data/m-p/174116#M5839</guid>
      <dc:creator>AustinMilt</dc:creator>
      <dc:date>2012-11-26T16:36:36Z</dc:date>
    </item>
  </channel>
</rss>

