<?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: ISaveAs produces E_RASTER_FAILED_TO_COPY_DATASET when writing to JPG in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/isaveas-produces-fdo-e-feature-empty-geometry-when/m-p/578129#M15617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For the record, it wasn't actually FDO_E_FEATURE_EMPTY_GEOMETRY - error code -2147217383 is also E_RASTER_FAILED_TO_COPY_DATASET (which makes a lot more sense).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at archived forums, I see people were having this problem years back. No answer then, no answer now. In the end, I got around it by saving initially to a BMP file, then used System.Drawing.Image.Save to convert that to JPG.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Aug 2011 07:49:53 GMT</pubDate>
    <dc:creator>SteveStanton</dc:creator>
    <dc:date>2011-08-18T07:49:53Z</dc:date>
    <item>
      <title>ISaveAs produces FDO_E_FEATURE_EMPTY_GEOMETRY when writing to JPG</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/isaveas-produces-fdo-e-feature-empty-geometry-when/m-p/578128#M15616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm creating some raster tiles using code like that in &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000001z000000(modified"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000001z000000(modified&lt;/A&gt;&lt;SPAN&gt; to accept the output file type - JPG or PNG).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At first, everything seemed to be working great. However, one of my datasets seems to have a problem writing to JPG. The call to ISaveAs.SaveAs comes back with the error: esriDataSourcesRaster.GdalDriver - Failed to copy raster dataset - COM Errorcode -2147217383 [FDO_E_FEATURE_EMPTY_GEOMETRY].&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, it works if I save to PNG. It doesn't seem to relate to the pixel type (all the files I'm working with are PT_UCHAR). Any ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2011 10:38:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/isaveas-produces-fdo-e-feature-empty-geometry-when/m-p/578128#M15616</guid>
      <dc:creator>SteveStanton</dc:creator>
      <dc:date>2011-07-12T10:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: ISaveAs produces E_RASTER_FAILED_TO_COPY_DATASET when writing to JPG</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/isaveas-produces-fdo-e-feature-empty-geometry-when/m-p/578129#M15617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For the record, it wasn't actually FDO_E_FEATURE_EMPTY_GEOMETRY - error code -2147217383 is also E_RASTER_FAILED_TO_COPY_DATASET (which makes a lot more sense).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at archived forums, I see people were having this problem years back. No answer then, no answer now. In the end, I got around it by saving initially to a BMP file, then used System.Drawing.Image.Save to convert that to JPG.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 07:49:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/isaveas-produces-fdo-e-feature-empty-geometry-when/m-p/578129#M15617</guid>
      <dc:creator>SteveStanton</dc:creator>
      <dc:date>2011-08-18T07:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: ISaveAs produces FDO_E_FEATURE_EMPTY_GEOMETRY when writing to JPG</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/isaveas-produces-fdo-e-feature-empty-geometry-when/m-p/578130#M15618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The JPG format has some other limitations besides the bit depth. For example, you can only have 1 band or 3 band data and color maps are not supported. You can see that &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Technical_specifications_for_raster_dataset_formats/009t0000000r000000/"&gt;here&lt;/A&gt;&lt;SPAN&gt;. I don't know if your data has these kind of issues or not. Might help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2011 14:29:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/isaveas-produces-fdo-e-feature-empty-geometry-when/m-p/578130#M15618</guid>
      <dc:creator>RobertBerger</dc:creator>
      <dc:date>2011-08-18T14:29:11Z</dc:date>
    </item>
  </channel>
</rss>

