<?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 Strange problem with mapAlgebraOp in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/strange-problem-with-mapalgebraop/m-p/554086#M14995</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a raster with 5 distinct values (1-5).I use a&amp;nbsp; map algebra Operator to execute different expretions and then i use a raster Renderer to give the integer values of the raster colors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i execute this exprestionToCalculate="con( [fhi] == 1, 1, con( [fhi] &amp;gt; 2, 2))"; the output raster has 2 values 1,2 and -here is the strange - when i run this exprestionToCalculate="con( [fhi] == 1, 1, con( [fhi] == 2, 2, con( [fhi] &amp;gt; 3, 3)))"; the raster has 3 values 1,3 and 2.00000001. I have tried all the compinations and when i have more the 2 con on the save exprestion only the first and the last con return real integer, the other return a number close to an integer (3.00000001, 4.00000001). After i execute the Operator&amp;nbsp; i first save the raster in GRID format and then i make a layer from it useing a raster renderer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2012 22:40:08 GMT</pubDate>
    <dc:creator>kostasgobakis</dc:creator>
    <dc:date>2012-05-07T22:40:08Z</dc:date>
    <item>
      <title>Strange problem with mapAlgebraOp</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/strange-problem-with-mapalgebraop/m-p/554086#M14995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a raster with 5 distinct values (1-5).I use a&amp;nbsp; map algebra Operator to execute different expretions and then i use a raster Renderer to give the integer values of the raster colors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i execute this exprestionToCalculate="con( [fhi] == 1, 1, con( [fhi] &amp;gt; 2, 2))"; the output raster has 2 values 1,2 and -here is the strange - when i run this exprestionToCalculate="con( [fhi] == 1, 1, con( [fhi] == 2, 2, con( [fhi] &amp;gt; 3, 3)))"; the raster has 3 values 1,3 and 2.00000001. I have tried all the compinations and when i have more the 2 con on the save exprestion only the first and the last con return real integer, the other return a number close to an integer (3.00000001, 4.00000001). After i execute the Operator&amp;nbsp; i first save the raster in GRID format and then i make a layer from it useing a raster renderer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 22:40:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/strange-problem-with-mapalgebraop/m-p/554086#M14995</guid>
      <dc:creator>kostasgobakis</dc:creator>
      <dc:date>2012-05-07T22:40:08Z</dc:date>
    </item>
  </channel>
</rss>

