<?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: convert a polygon with decimal values to raster in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183552#M1108</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with the Int tool still am not getting the attribute table and when i truncate with 10 all the values become one. I would be glad if you could provide the python/numpy solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Nov 2017 08:50:30 GMT</pubDate>
    <dc:creator>stashavint</dc:creator>
    <dc:date>2017-11-24T08:50:30Z</dc:date>
    <item>
      <title>convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183550#M1106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone. is there a way to convert a polygon shape file into raster if it has values of precise decimal type. I used the polygon to raster tool and the produced raster does not have an attribute table and i cannot use the Build Raster attribute tool to build the table .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 22:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183550#M1106</guid>
      <dc:creator>stashavint</dc:creator>
      <dc:date>2017-11-23T22:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183551#M1107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several ways, but be aware that your resultant table will either be scaled by a factor of 10 or the decimals will be truncated.&lt;/P&gt;&lt;P&gt;For simple truncation, simply convert the floating point raster to an integer raster using the&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/int.htm"&gt; Int tool&lt;/A&gt; see the warnings within.&lt;/P&gt;&lt;P&gt;Another way is to scale your raster up prior to truncation ie&amp;nbsp; Int(yourraster + 0.5)&amp;nbsp; that has issues as well&lt;/P&gt;&lt;P&gt;There are other ways that can be suggested like&amp;nbsp; Int(yourraster * 10) but then your whole raster will be scaled up by the factor of 10.&lt;/P&gt;&lt;P&gt;From there you should have an integer raster to continue your process.&lt;/P&gt;&lt;P&gt;I can provide python/numpy solutions as well if you work in that realm&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 00:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183551#M1107</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-24T00:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183552#M1108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with the Int tool still am not getting the attribute table and when i truncate with 10 all the values become one. I would be glad if you could provide the python/numpy solution&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 08:50:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183552#M1108</guid>
      <dc:creator>stashavint</dc:creator>
      <dc:date>2017-11-24T08:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183553#M1109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;perhaps first you could show what the output raster type was. Specific details from the raster properties would help, but in going forward...&lt;/P&gt;&lt;P&gt;Before you can &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/build-raster-attribute-table.htm"&gt;use build a raster table&lt;/A&gt; you need to ensure...&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4d4d4d; font-family: 'Lucida Grande','Segoe UI','Arial',sans-serif; font-size: 13.93px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; line-height: 23.82px; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;It is not possible to build a raster attribute table for a raster dataset that is a pixel type of 32-bit floating point.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that apparently isn't an option now, that suggests that your raster has values outside the range permissible for this.&lt;/P&gt;&lt;P&gt;In that event you can look at &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/copy-raster.htm"&gt;&lt;STRONG&gt;Copy Raster&lt;/STRONG&gt;&lt;/A&gt; first to see if it is possible to reduce the bit type prior to creating the table&lt;/P&gt;&lt;P&gt;for instance... some possible candidates with the first being the most probable,&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #4d4d4d; font-family: 'Lucida Grande','Segoe UI','Arial',sans-serif; font-size: 13.93px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;8_BIT_UNSIGNED —An unsigned 8-bit data type. The values supported can be from 0 to 255.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;16_BIT_UNSIGNED —A 16-bit unsigned data type. The values can range from 0 to 65,535.&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;16_BIT_SIGNED —A 16-bit signed data type. The values can range from -32,768 to 32,767.&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The python/numpy solution I can address once other efforts via conventional means have failed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 10:41:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183553#M1109</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-24T10:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183554#M1110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/300295"&gt;stasha vint&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to be sure I understand what you want. You are converting a polygon featureclass that has an attribute with&amp;nbsp;decimal values, right? In case you want to convert the the polygons to raster and use the decimal values as the raster values, just convert using that attribute. However, a floating raster will never has an value attribute table (VAT). In case you want to have a raster that has the decimal values as attribute in the VAT, you will need to use an integer field (like the ObjectID, in case it doesn't have many values, see &lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000006986" title="https://support.esri.com/en/technical-article/000006986"&gt;How To: Create a VAT&lt;/A&gt;&amp;nbsp;) during rasterization and join the values to the resulting VAT of the raster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although you can manage the decimal values as attributes of an integer raster, it is not very useful. To be able to "use" them in a mathematical way in any raster operation, you will need them as raster values.So, can you elaborate why you need these values as attributes of a raster?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 11:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183554#M1110</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-11-24T11:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183555#M1111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to use these values to calculate flooded areas that's the reason i need the raster values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 13:29:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183555#M1111</guid>
      <dc:creator>stashavint</dc:creator>
      <dc:date>2017-11-24T13:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183556#M1112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked the results and found it to be a 32 bit, ii think that's why it cant produce an attribute value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 13:34:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183556#M1112</guid>
      <dc:creator>stashavint</dc:creator>
      <dc:date>2017-11-24T13:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183557#M1113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then use the Copy raster tool I suggested to see if you can save with a reduced bit-depth.&amp;nbsp; If may necessitate pruning or rescaling your values to get the data into an appropriate range.&amp;nbsp; Ofcourse it would help if you reported the raster properties or even the values and value ranges from the features you created.&amp;nbsp; Suggestions could be guided more quickly if this information were available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 13:46:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183557#M1113</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-24T13:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183558#M1114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still facing the same problem even after copying the raster, the raster properties and value ranges are as follows:&lt;IMG alt="rasterproperties" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/384816_rasterproperties.png" style="width: 620px; height: 405px;" /&gt;&lt;IMG alt="raster values" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/384817_rastervalues.png" style="width: 620px; height: 405px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 14:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183558#M1114</guid>
      <dc:creator>stashavint</dc:creator>
      <dc:date>2017-11-24T14:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183559#M1115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok... now it appears all your values are less than 1.0&lt;/P&gt;&lt;P&gt;Taking the integer just isn't going to cut it.&lt;/P&gt;&lt;P&gt;At this point, go back to your feature class, add an integer field, calculate a value for that field that scales up your floating point values, then convert to a raster...&lt;/P&gt;&lt;P&gt;And secondly... you have unique values... what do they represent???&lt;/P&gt;&lt;P&gt;0.666 = 67&lt;/P&gt;&lt;P&gt;0.342 = 34&lt;/P&gt;&lt;P&gt;0.275 = 28&lt;/P&gt;&lt;P&gt;25.7&amp;nbsp; = 26&lt;/P&gt;&lt;P&gt;do the above in the field calculator, or just reclass your raster using that classification scheme, remembering that your 'integer' raster is scaled up by a factor of 100&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 15:05:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183559#M1115</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-24T15:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183560#M1116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although I still don't understand why you need to have only two decimals for doing a flood analysis, I think the easiest way would have been to do this at the polygon featureclass. Just create a new field and fill that with the field calculator with the&amp;nbsp; number of decimals:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/384849_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use the resulting field in the Polygon to Raster conversion:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/384850_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 15:22:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183560#M1116</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-11-24T15:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183561#M1117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just researched and got that you can find the flooded areas by using the values in the raster data but if there is any other way to get the flooded areas I am eagerly listening, because I have data in polygon files and raster data and I am trying to calculate the flooded areas in the raster. So if you have any other that would be great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 15:27:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183561#M1117</guid>
      <dc:creator>stashavint</dc:creator>
      <dc:date>2017-11-24T15:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: convert a polygon with decimal values to raster</title>
      <link>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183562#M1118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What value represents flooded? if you have polygons, if there isn't a geometry field called Shape_Area, then you can add a field yourself to the table and use the calculate geometry on that field.&amp;nbsp; Of course, you can only hope that your polygon file is in projected coordinates, and not in geographic coordinates, otherwise you should project your polygon file to an appropriate projection prior to doing any calculations involving on geometry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addendum&lt;/P&gt;&lt;P&gt;Just had a look at your cell size.&lt;/P&gt;&lt;P&gt;Your polygon layer was in decimal degree coordinates. So you will have to calculate area using geodesic area, or project to a new file prior to doing any calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Nov 2017 15:35:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-a-polygon-with-decimal-values-to-raster/m-p/183562#M1118</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-24T15:35:51Z</dc:date>
    </item>
  </channel>
</rss>

