<?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 Support for Shapefiles and Rasters in ArcGIS Runtime SDK for WPF (Retired) Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161919#M691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I use the ArcGIS Runtime SDK for WPF Samples demo application to load a .bmp raster image that has WGS84 as the spatial reference - it does NOT display the raster image.&amp;nbsp; If I take the same image and change the projection to WGS84 World Mercator Auxiliary or even NAD83 - it loads just fine.&amp;nbsp; Why is this happening and how can I fix it?&amp;nbsp; Is there any documentation on what is supported?&amp;nbsp; It is just geographic projections that are not supported?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 20:33:01 GMT</pubDate>
    <dc:creator>DarrenRempel</dc:creator>
    <dc:date>2013-10-28T20:33:01Z</dc:date>
    <item>
      <title>Support for Shapefiles and Rasters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161919#M691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I use the ArcGIS Runtime SDK for WPF Samples demo application to load a .bmp raster image that has WGS84 as the spatial reference - it does NOT display the raster image.&amp;nbsp; If I take the same image and change the projection to WGS84 World Mercator Auxiliary or even NAD83 - it loads just fine.&amp;nbsp; Why is this happening and how can I fix it?&amp;nbsp; Is there any documentation on what is supported?&amp;nbsp; It is just geographic projections that are not supported?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 20:33:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161919#M691</guid>
      <dc:creator>DarrenRempel</dc:creator>
      <dc:date>2013-10-28T20:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Support for Shapefiles and Rasters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161920#M692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Both projected and geographic coordinate systems are supported. The list of supported coordinate systems can be found at &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/Coordinate_system_identifiers/0170000000m2000000/"&gt;http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/Coordinate_system_identifiers/0170000000m2000000/&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The raster in WGS84 should work fine. The setup in this sample is that the local map service being used to display the raster is running in WGS84 (determined by source Map Package), whilst the spatial reference of the map is Web Mercator Auxiliary Sphere (determined in this scenario by the first layer in the map). Therefore the local map service is performing the reprojection and is reprojecting the layers on the fly and rendering the map in the requested spatial reference. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have a small sample of the bitmap - you could upload to this thread and I'll give it a test.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 09:26:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161920#M692</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-10-29T09:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Support for Shapefiles and Rasters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161921#M693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Attached is the sample file.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Darren&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 14:12:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161921#M693</guid>
      <dc:creator>DarrenRempel</dc:creator>
      <dc:date>2013-10-29T14:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Support for Shapefiles and Rasters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161922#M694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;If you have a small sample of the bitmap - you could upload to this thread and I'll give it a test.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Mike&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike - did you have a chance to look at the sample I uploaded?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Darren&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2013 19:19:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161922#M694</guid>
      <dc:creator>DarrenRempel</dc:creator>
      <dc:date>2013-11-18T19:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Support for Shapefiles and Rasters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161923#M695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apologies for the delay in replying. I've been looking into this - there may be two issues. When I open the raster sample you provided in ArcMap, it warns of an inconsistent extent for the spatial reference, and won't overlay with any data in ArcMap either. I can confirm that with a suitable raster dataset, they are reprojected on the fly by the localserver.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I also noticed a possible bug in our sample - whether you choose a vector dataset or a raster dataset the way the sample is written it will always submit a renderer which may possibly confuse matters (&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should modify the code to perform a check for the workspace type first and only define a renderer if it's a vector dataset e.g.:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// Use the GetDetails method which now supports dynamic data sources to determine the geometry type of the new datasource&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (workspaceInfo.FactoryType != WorkspaceFactoryType.Raster)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcGisLocalDynamicMapServiceLayer.GetDetails(dynamicLayerInfo.ID, (featureLayerInfo, exception) =&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2013 10:33:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161923#M695</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-11-22T10:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Support for Shapefiles and Rasters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161924#M696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It would appear to me from my testing that any rasters other than geotiffs that are in Geographic projection are NOT supported.&amp;nbsp; When I generate a WGS 84 .proj file from ESRI ArcMap it contains:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433],AUTHORITY["EPSG",4326]]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI runtime will only process rasters that also include the specification of the projection.&amp;nbsp; For example, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PROJCS["UTM_Zone_11_Northern_Hemisphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS84",SPHEROID["WGS84",6378137,298.257223560493]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-117],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["Meter",1]]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same goes for ArcMap.&amp;nbsp; If anyone has an example of a jpeg, png, or jpeg that is spatially referenced in Geographic projection and loads successfully in ESRI runtime or ArcMap - I would greatly appreciate seeing the expected .prj file format.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 22:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161924#M696</guid>
      <dc:creator>DarrenRempel</dc:creator>
      <dc:date>2013-11-25T22:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Support for Shapefiles and Rasters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161925#M697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can confirm that rasters in other formats and in geographic coordinate systems do work. However, the examples I have do not have PRJ files - the spatial reference info is stored in the raster auxiliary file (.aux.xml). This file was introduced during ArcGIS 9.2 for storing additional raster information (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/main/10.2/index.html#//009t00000027000000" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//009t00000027000000&lt;/A&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get your sample Bitmap to display in the sample app (and to display in ArcMap too), I had to run the Define Projection GP tool in ArcMap and provide the spatial reference. This generated a new .aux.xml file and the raster now successfully displays.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;testMap.bmp.aux.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;PAMDataset&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;SRS&amp;gt;GEOGCS[&amp;amp;quot;GCS_WGS_1984&amp;amp;quot;,DATUM[&amp;amp;quot;WGS_1984&amp;amp;quot;,SPHEROID[&amp;amp;quot;WGS_1984&amp;amp;quot;,6378137.0,298.257223563]],PRIMEM[&amp;amp;quot;Greenwich&amp;amp;quot;,0.0],UNIT[&amp;amp;quot;Degree&amp;amp;quot;,0.0174532925199433]]&amp;lt;/SRS&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/PAMDataset&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 08:08:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161925#M697</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2013-11-26T08:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: Support for Shapefiles and Rasters</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161926#M698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mike,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 13:51:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-wpf-retired-questions/support-for-shapefiles-and-rasters/m-p/161926#M698</guid>
      <dc:creator>DarrenRempel</dc:creator>
      <dc:date>2013-11-26T13:51:08Z</dc:date>
    </item>
  </channel>
</rss>

