<?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 GeoTiff Support in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511833#M2624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does the sdk have any support for creating geotiffs (or any other georeferenced raster formats) in code? I'm planning on displaying the geotiff using code from the Raster and Shapefile example, so the raster format must be supported by that code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2013 20:04:40 GMT</pubDate>
    <dc:creator>RyanNoble</dc:creator>
    <dc:date>2013-05-30T20:04:40Z</dc:date>
    <item>
      <title>GeoTiff Support</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511833#M2624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does the sdk have any support for creating geotiffs (or any other georeferenced raster formats) in code? I'm planning on displaying the geotiff using code from the Raster and Shapefile example, so the raster format must be supported by that code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 20:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511833#M2624</guid>
      <dc:creator>RyanNoble</dc:creator>
      <dc:date>2013-05-30T20:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: GeoTiff Support</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511834#M2625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ryan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;should&lt;/SPAN&gt;&lt;SPAN&gt; be possible to create your raster using an array in .NET and use an in-memory raster datatype as an input to a geoprocessing package or service and containing the Copy Raster tool to write the raster to disk. Pretty sure GeoTiff is supported in Desktop, not sure about Runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NumPyArrayToRaster in a Python script tool (published as a GP service or package) may also work in the Runtime SDK for WPF:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000005n000000"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#//018v0000005n000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you provide more detail about your workflow? Are you creating the raster from existing data or from scratch?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 05:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511834#M2625</guid>
      <dc:creator>MatthewBrown1</dc:creator>
      <dc:date>2013-06-06T05:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: GeoTiff Support</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511835#M2626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tip. I already found a way to do it. I just used TiffBitmapEncoder and added geotiff-related tags to the metadata field.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 15:37:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511835#M2626</guid>
      <dc:creator>RyanNoble</dc:creator>
      <dc:date>2013-06-06T15:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: GeoTiff Support</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511836#M2627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For anyone with the same problem, here is some code for doing it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;double[] modelTiePoint = new double[24];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Populate the modelTilePoint array&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// modelTilePoint[0] = someValue;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Add our geotiff GCPs to the Tiff metadata&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BitmapMetadata metaData = new BitmapMetadata("tiff");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;metadata.SetQuery("/ifd/{uint=33922}", dModelTiePoint);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Create BitmapFrame using raster data and metadata&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BitmapFrame bFrame = BitmapFrame.Create(myBitmapSource, null, metadata, null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//Write the GeoTiff to disk&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TiffBitmapEncoder enc = new TiffBitmapEncoder();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;enc.Frames.Add(bFrame);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;enc.Compression = TiffCompressOption.None;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;enc.Save(new FileStream(outputGeoTiffName, FileMode.Create));&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 16:37:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511836#M2627</guid>
      <dc:creator>RyanNoble</dc:creator>
      <dc:date>2013-06-06T16:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: GeoTiff Support</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511837#M2628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That looks like an excellent solution! I would think that method will be faster and less setup than initiating/running a GP task. Only downside seems to be that it isn't supported on XP according to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.tiffbitmapencoder.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.tiffbitmapencoder.aspx&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 20:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511837#M2628</guid>
      <dc:creator>MatthewBrown1</dc:creator>
      <dc:date>2013-06-06T20:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: GeoTiff Support</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511838#M2629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tip on XP. I missed that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 18:53:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511838#M2629</guid>
      <dc:creator>RyanNoble</dc:creator>
      <dc:date>2013-06-10T18:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: GeoTiff Support</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511839#M2630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is an old post, but i am trying to do this myself.&amp;nbsp; However, no matter what I do, the geotiff is not loading properly into a GIS app (ArcGIS Pro).&amp;nbsp; I know the modeltiepoint values are being written to the file, as i am able to read them back in with System.Drawing.Imaging.PropertyItem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any sample code that shows exactly what you did with the tiePoints (as you mention in your pseudo-code)?&amp;nbsp; Also, do you need to set a projection anywhere?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen and used the info here: &lt;A class="link-titled" href="http://geotiff.maptools.org/spec/geotiff2.6.html" title="http://geotiff.maptools.org/spec/geotiff2.6.html"&gt;http://geotiff.maptools.org/spec/geotiff2.6.html&lt;/A&gt; , but still no luck.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//Populate the modelTilePoint array&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// modelTilePoint[0] = someValue;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2019 12:59:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/geotiff-support/m-p/511839#M2630</guid>
      <dc:creator>TimB</dc:creator>
      <dc:date>2019-04-11T12:59:18Z</dc:date>
    </item>
  </channel>
</rss>

