<?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: IRasterProps.NoData doesn´t work whit Iraster2.GetPixelValue. Why? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/irasterprops-nodata-doesn-acute-t-work-whit/m-p/580758#M15698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for reply, but i just need to check value at one point (x,y) and save whole raster is not a good idea, i think. What i need is know if the value is NoData or 0.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Nov 2013 05:18:56 GMT</pubDate>
    <dc:creator>martinmaretta</dc:creator>
    <dc:date>2013-11-15T05:18:56Z</dc:date>
    <item>
      <title>IRasterProps.NoData doesn´t work whit Iraster2.GetPixelValue. Why?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/irasterprops-nodata-doesn-acute-t-work-whit/m-p/580756#M15696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi i have code loke belov. I set NoData value to my pRaster (IRaster2) as value - 9999. but when i use GetPixelValue(0, x, y) at pixel location whit NoData i have value = 0.&amp;nbsp; do anybody know where is mistake? Or how to set my NoData Value correctly ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dim pRaster as IRaster2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pRasPropsIn = CType(pRaster, IRasterProps)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pRasPropsIn.NoDataValue = -9999 'urcovanie hodnoty no data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dim pValue as Single&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pValue = pRaster.GetPixelValue(0, x, y)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here is pValue = 0 not -9999 !!!!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 13:24:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/irasterprops-nodata-doesn-acute-t-work-whit/m-p/580756#M15696</guid>
      <dc:creator>martinmaretta</dc:creator>
      <dc:date>2013-11-14T13:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: IRasterProps.NoData doesn´t work whit Iraster2.GetPixelValue. Why?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/irasterprops-nodata-doesn-acute-t-work-whit/m-p/580757#M15697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Having set the NoData value have you tried to save the raster first using &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;ISaveAs&lt;/SPAN&gt;&lt;SPAN&gt; to commit the change?&amp;nbsp; The help file says&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;These modifications only affect the in-memory raster representation and in no way change any of the raster dataset. You can persist the modifications to a new raster datast using ISaveAs::SaveAs or IRasterBandCollection::SaveAs.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 13:51:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/irasterprops-nodata-doesn-acute-t-work-whit/m-p/580757#M15697</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2013-11-14T13:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: IRasterProps.NoData doesn´t work whit Iraster2.GetPixelValue. Why?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/irasterprops-nodata-doesn-acute-t-work-whit/m-p/580758#M15698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for reply, but i just need to check value at one point (x,y) and save whole raster is not a good idea, i think. What i need is know if the value is NoData or 0.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2013 05:18:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/irasterprops-nodata-doesn-acute-t-work-whit/m-p/580758#M15698</guid>
      <dc:creator>martinmaretta</dc:creator>
      <dc:date>2013-11-15T05:18:56Z</dc:date>
    </item>
  </channel>
</rss>

