<?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 Polygon to Raster - can I base it on 2 fields in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-can-i-base-it-on-2-fields/m-p/2140#M97</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am doing a lot of geoprocessing for a project where all my input layers need to be perfectly overlapping rasters. Some of my input data starts out as polygons, and I have been converting them to rasters. One of my "base" polygons has 2 fields I need, so I have been running the conversion twice, once on each field. I have been using maximum combined area but just discovered that this creates errors in the output. What I noticed was that, for example, I have field a and field b, and both contain value x. If a row in field a has value x, then the same row in field b also has value x. But when I run the conversion this is not true a very small percentage of the time. I realize that this is probably cause by doing the maximum combined area. But what would really be nice is if I could just convert the raster using both fields? Is there a way to do this if I went into python? Or is my only option to create a new attribute field that combines the previous 2, and convert based on that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maritza&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Aug 2013 19:34:45 GMT</pubDate>
    <dc:creator>MaritzaMallek</dc:creator>
    <dc:date>2013-08-13T19:34:45Z</dc:date>
    <item>
      <title>Polygon to Raster - can I base it on 2 fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-can-i-base-it-on-2-fields/m-p/2140#M97</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am doing a lot of geoprocessing for a project where all my input layers need to be perfectly overlapping rasters. Some of my input data starts out as polygons, and I have been converting them to rasters. One of my "base" polygons has 2 fields I need, so I have been running the conversion twice, once on each field. I have been using maximum combined area but just discovered that this creates errors in the output. What I noticed was that, for example, I have field a and field b, and both contain value x. If a row in field a has value x, then the same row in field b also has value x. But when I run the conversion this is not true a very small percentage of the time. I realize that this is probably cause by doing the maximum combined area. But what would really be nice is if I could just convert the raster using both fields? Is there a way to do this if I went into python? Or is my only option to create a new attribute field that combines the previous 2, and convert based on that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maritza&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 19:34:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-can-i-base-it-on-2-fields/m-p/2140#M97</guid>
      <dc:creator>MaritzaMallek</dc:creator>
      <dc:date>2013-08-13T19:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon to Raster - can I base it on 2 fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-can-i-base-it-on-2-fields/m-p/2141#M98</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Max combined area will give different output because the values may be different. See How Polygon To Raster works in the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why don't you use the CELL_CENTER method and use the polygon FC's object-id field and then join the polygon's attribute table to the rasters table and persist it to a new raster.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Aug 2013 20:28:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-can-i-base-it-on-2-fields/m-p/2141#M98</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2013-08-13T20:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon to Raster - can I base it on 2 fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-can-i-base-it-on-2-fields/m-p/2142#M99</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Max combined area will give different output because the values may be different. See How Polygon To Raster works in the help.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I understand that. I use this tool all the time. Sorry if that wasn't clear.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Why don't you use the CELL_CENTER method &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, CELL_CENTER has it's own flaws. In this particular dataset it is very common for polygon boundaries to pass through a pixel. So yes, I could use CELL_CENTER. But this is a somewhat arbitrary setting; why not go for the max area setting, which at least (to me) reflects the overall character of an individual cell. That is sort of what I was going for with using max combined, although I am now thinking perhaps it wasn't doing quite what I had hoped. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;and use the polygon FC's object-id field and then join the polygon's attribute table to the rasters table and persist it to a new raster.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure exactly what you are suggesting here. Are you suggesting doing the rasterization based on the object ID field rather than on the attribute field of interest?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regardless, my question is whether there is a way to base the polygon to raster conversion on more than one field. If I did it in Python instead of with the tool, would I be able to, or is the tool to much of a black box to modify in that way?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 13:45:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-can-i-base-it-on-2-fields/m-p/2142#M99</guid>
      <dc:creator>MaritzaMallek</dc:creator>
      <dc:date>2013-08-14T13:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon to Raster - can I base it on 2 fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-can-i-base-it-on-2-fields/m-p/2143#M100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm not sure exactly what you are suggesting here. Are you suggesting doing the rasterization based on the object ID field rather than on the attribute field of interest?&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, then join the featureclass table to the raster attribute table and persist the raster. Your raster will then have all the info from the featureclass. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option would be to manipulate your two fields into one and then convert to raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 14:54:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-can-i-base-it-on-2-fields/m-p/2143#M100</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2013-08-14T14:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Polygon to Raster - can I base it on 2 fields</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-can-i-base-it-on-2-fields/m-p/2144#M101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am doing a lot of geoprocessing for a project where all my input layers need to be perfectly overlapping rasters. Some of my input data starts out as polygons, and I have been converting them to rasters. One of my "base" polygons has 2 fields I need, so I have been running the conversion twice, once on each field. I have been using maximum combined area but just discovered that this creates errors in the output. What I noticed was that, for example, I have field a and field b, and both contain value x. If a row in field a has value x, then the same row in field b also has value x. But when I run the conversion this is not true a very small percentage of the time. I realize that this is probably cause by doing the maximum combined area. But what would really be nice is if I could just convert the raster using both fields? Is there a way to do this if I went into python? Or is my only option to create a new attribute field that combines the previous 2, and convert based on that?&lt;BR /&gt;Thanks!&lt;BR /&gt;Maritza&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess the answer is no, but there are workarounds (which I knew already). Oh well. I'll leave this up in case anyone in the future has the same question.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2013 14:53:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/polygon-to-raster-can-i-base-it-on-2-fields/m-p/2144#M101</guid>
      <dc:creator>MaritzaMallek</dc:creator>
      <dc:date>2013-08-16T14:53:14Z</dc:date>
    </item>
  </channel>
</rss>

