<?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: Arc Objects Spatial analyst Con Condition in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arc-objects-spatial-analyst-con-condition/m-p/611970#M16432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you would use this Con statement manually in the Raster Calculator, it would probably look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Con(inRaster &amp;lt; inputnumber1, 1, Con(inRaster &amp;gt; inputnumber2, 0, Con((inRaster &amp;gt;= inputnumber1) AND (inRaster&amp;lt;= inputnumber2), 0.5 * (1 + cos(3.14159 * ((inRaster – inputnumber1) * (inputnumber2 - inputnumber1)))), 0)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you're using ArcObjects, things will get a bit more complicated to nest the Con Statements. Maybe you can find some useful info here:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Create_ConditionalOp_Con_Raster_Snippet/004900000025000000/" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Create_ConditionalOp_Con_Raster_Snippet/004900000025000000/"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000p92000000" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000p92000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt;&amp;nbsp; &lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jan 2015 02:22:23 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2015-01-05T02:22:23Z</dc:date>
    <item>
      <title>Arc Objects Spatial analyst Con Condition</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arc-objects-spatial-analyst-con-condition/m-p/611969#M16431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;If inRaster &amp;lt; inputnumber1 Then &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;&amp;nbsp;&amp;nbsp; outRaster = 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;ElseIf &lt;SPAN style="font-size: 19.0909080505371px;"&gt; inRaster&lt;/SPAN&gt; &amp;gt; &lt;SPAN style="font-size: 19.0909080505371px;"&gt;inputnumber2&lt;/SPAN&gt; Then &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 19.0909080505371px;"&gt;&amp;nbsp;&amp;nbsp; outRaster =0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;ElseIf &lt;SPAN style="font-size: 19.0909080505371px;"&gt;inRaster &lt;/SPAN&gt;&lt;SPAN style="font-size: 19.0909080505371px;"&gt; &lt;/SPAN&gt;&amp;gt;= &lt;SPAN style="font-size: 19.0909080505371px;"&gt;inputnumber1 &lt;/SPAN&gt;and&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 19.0909080505371px;"&gt;inRaster&lt;/SPAN&gt;&amp;lt;= &lt;SPAN style="font-size: 19.0909080505371px;"&gt;inputnumber2&lt;/SPAN&gt; Then &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;&lt;SPAN style="font-size: 19.0909080505371px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outRaster &lt;/SPAN&gt; = 0.5 * (1 + cos(3.14159*((&lt;SPAN style="font-size: 19.0909080505371px;"&gt;inRaster&lt;/SPAN&gt;– &lt;SPAN style="font-size: 19.0909080505371px;"&gt;inputnumber1 &lt;/SPAN&gt;)(&lt;SPAN style="font-size: 19.0909080505371px;"&gt;inputnumber2&lt;/SPAN&gt; - &lt;SPAN style="font-size: 19.0909080505371px;"&gt;inputnumber1 &lt;/SPAN&gt;))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;&lt;SPAN style="font-size: 19.0909080505371px;"&gt;outRaster &lt;/SPAN&gt;= 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;The above statments i have to make in arcobjects by using spatial analyst.&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;I am totally confused.Please help.&lt;/SPAN&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;How to make condition in IConditionalop of&amp;nbsp; spatial analyst.Any help will be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Thanks in Advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 14.0pt;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jan 2015 12:24:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arc-objects-spatial-analyst-con-condition/m-p/611969#M16431</guid>
      <dc:creator>NadirHussain</dc:creator>
      <dc:date>2015-01-04T12:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Objects Spatial analyst Con Condition</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arc-objects-spatial-analyst-con-condition/m-p/611970#M16432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you would use this Con statement manually in the Raster Calculator, it would probably look something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Con(inRaster &amp;lt; inputnumber1, 1, Con(inRaster &amp;gt; inputnumber2, 0, Con((inRaster &amp;gt;= inputnumber1) AND (inRaster&amp;lt;= inputnumber2), 0.5 * (1 + cos(3.14159 * ((inRaster – inputnumber1) * (inputnumber2 - inputnumber1)))), 0)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you're using ArcObjects, things will get a bit more complicated to nest the Con Statements. Maybe you can find some useful info here:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Create_ConditionalOp_Con_Raster_Snippet/004900000025000000/" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Create_ConditionalOp_Con_Raster_Snippet/004900000025000000/"&gt;ArcObjects 10 .NET SDK Help&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000p92000000" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//000100000p92000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt;&amp;nbsp; &lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 02:22:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arc-objects-spatial-analyst-con-condition/m-p/611970#M16432</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-01-05T02:22:23Z</dc:date>
    </item>
    <item>
      <title>Re: Arc Objects Spatial analyst Con Condition</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arc-objects-spatial-analyst-con-condition/m-p/611971#M16433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can just get the pixels with direct read into array and use any calculation.&lt;/P&gt;&lt;P&gt;Check this: &lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/0001/000100000022000000.htm" title="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/0001/000100000022000000.htm"&gt;How to access pixel data using the RawBlocks object (ArcObjects .NET 10 SDK)&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 05:54:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arc-objects-spatial-analyst-con-condition/m-p/611971#M16433</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2015-01-05T05:54:17Z</dc:date>
    </item>
  </channel>
</rss>

