<?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: Is Reprojection on the fly supported on the Map control? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-reprojection-on-the-fly-supported-on-the-map/m-p/304913#M2037</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Stephen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/0119/01190000000n000000.htm"&gt;Spatial reference and adding layer to map&lt;/A&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Layers in the same map view might come with different spatial references by default. &lt;STRONG&gt;It is important to render all the layers with the same spatial reference. MapView takes the first added layer's spatial reference as its spatial reference.&lt;/STRONG&gt; If you configure a map layout file, the topmost layer inside the map view would be the map's spatial reference.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/core/geometry/GeometryEngine.html#project(com.esri.core.geometry.Geometry, com.esri.core.geometry.SpatialReference, com.esri.core.geometry.SpatialReference)"&gt;project&lt;/A&gt;&lt;SPAN&gt; your geometry to your map spatial reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. I can not imagine, really. If you have a link to a map containing two or more layers, where each layer has its own coordinate system different from the other layers, then be kind enough to let me see it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2012 06:46:54 GMT</pubDate>
    <dc:creator>IvanBespalov</dc:creator>
    <dc:date>2012-01-19T06:46:54Z</dc:date>
    <item>
      <title>Is Reprojection on the fly supported on the Map control?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-reprojection-on-the-fly-supported-on-the-map/m-p/304912#M2036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I've just been trying to get geographic coordinates to display on the Hello World Map sample with projection on the fly. I prefer to keep the data in geographic coordinates and not code reprojection if the map control can be coerce to do it for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;CODE&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public void onCreate(Bundle savedInstanceState) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; super.onCreate(savedInstanceState);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; setContentView(R.layout.main);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; // Retrieve the map and initial extent from XML layout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map = (MapView)findViewById(R.id.map);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.addLayer(new ArcGISDynamicMapServiceLayer("" +&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;"));&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; // Add a BLUE DIAMOND point near San Bernadino using Web Mercator coordinates - this works!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; GraphicsLayer merclayer = new GraphicsLayer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; merclayer.addGraphic(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; new Graphic(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Point(-13051775.04, 4066103.08),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; new SimpleMarkerSymbol(Color.BLUE, 15, STYLE.DIAMOND))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; );&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; map.addLayer(merclayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; // Add a RED DIAMOND point in Australia using WGS84 geographic coordinates - fail (point is shown at equator)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; GraphicsLayer wgslayer = new GraphicsLayer(SpatialReference.create(4326), null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; wgslayer.addGraphic(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Graphic(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Point(144, -37),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new SimpleMarkerSymbol(Color.RED, 15, STYLE.DIAMOND))&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; map.addLayer(wgslayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //Retrieve the non-configuration instance data that was previously returned.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Object init = getLastNonConfigurationInstance();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if (init != null) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; map.restoreState((String) init);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/CODE&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2012 19:16:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-reprojection-on-the-fly-supported-on-the-map/m-p/304912#M2036</guid>
      <dc:creator>StephenQuan</dc:creator>
      <dc:date>2012-01-18T19:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is Reprojection on the fly supported on the Map control?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-reprojection-on-the-fly-supported-on-the-map/m-p/304913#M2037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Stephen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/help/0119/01190000000n000000.htm"&gt;Spatial reference and adding layer to map&lt;/A&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Layers in the same map view might come with different spatial references by default. &lt;STRONG&gt;It is important to render all the layers with the same spatial reference. MapView takes the first added layer's spatial reference as its spatial reference.&lt;/STRONG&gt; If you configure a map layout file, the topmost layer inside the map view would be the map's spatial reference.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgismobile/10.0/apis/android/api/com/esri/core/geometry/GeometryEngine.html#project(com.esri.core.geometry.Geometry, com.esri.core.geometry.SpatialReference, com.esri.core.geometry.SpatialReference)"&gt;project&lt;/A&gt;&lt;SPAN&gt; your geometry to your map spatial reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.S. I can not imagine, really. If you have a link to a map containing two or more layers, where each layer has its own coordinate system different from the other layers, then be kind enough to let me see it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 06:46:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-reprojection-on-the-fly-supported-on-the-map/m-p/304913#M2037</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2012-01-19T06:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is Reprojection on the fly supported on the Map control?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-reprojection-on-the-fly-supported-on-the-map/m-p/304914#M2038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ivan, you would like an example of a map containing two or more layers, where each layer has its own coordinate system different from the other layers? That's pretty easy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) ArcGIS Online layer in Web Mercator (GCS_WGS_1984_Major_Auxiliary_Sphere)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) A map of Redlands (WGS_1984_UTM_Zone_11N)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) A GPS tracklog (GCS_WGS_1984)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There's a business requirement to manage the datasets for #2 and #3 in their respective coordinate system, and there's a business requirement to show the datasets on the same map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, Ivan, I followed your references and manipulated my code as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;CODE&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; // Add a RED DIAMOND point in Australia using WGS84 geographic coordinates - Works Now&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; GraphicsLayer wgslayer = new GraphicsLayer();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; wgslayer.addGraphic(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; new Graphic(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GeometryEngine.project(new Point(144, -37), SpatialReference.create(4326), SpatialReference.create(102100)),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new SimpleMarkerSymbol(Color.RED, 15, STYLE.DIAMOND))&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; map.addLayer(wgslayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/CODE&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 21:09:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-reprojection-on-the-fly-supported-on-the-map/m-p/304914#M2038</guid>
      <dc:creator>StephenQuan</dc:creator>
      <dc:date>2012-01-19T21:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is Reprojection on the fly supported on the Map control?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-reprojection-on-the-fly-supported-on-the-map/m-p/304915#M2039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;May be due to the fact that my English is weak, you do not understand the irony in the question about layers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Behold it, I hope you understand, that you can not correctly display the data from different coordinate systems simultaneously, without using the projection. Yes, I want you to show me an example that refutes it. Working example (live).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am glad that my answer was helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 05:38:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-reprojection-on-the-fly-supported-on-the-map/m-p/304915#M2039</guid>
      <dc:creator>IvanBespalov</dc:creator>
      <dc:date>2012-01-20T05:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is Reprojection on the fly supported on the Map control?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-reprojection-on-the-fly-supported-on-the-map/m-p/304916#M2040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See the Windows Phone API supports auto reprojecting of Graphic Layers see &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2011/11/18/Version-2.3-of-the-ArcGIS-API-for-Silverlight_2C00_-WPF_2C00_-and-Windows-Phone-is-available_2100_-.aspx"&gt;http://blogs.esri.com/Dev/blogs/silverlightwpf/archive/2011/11/18/Version-2.3-of-the-ArcGIS-API-for-Silverlight_2C00_-WPF_2C00_-and-Windows-Phone-is-available_2100_-.aspx&lt;/A&gt;&lt;SPAN&gt; - I'm merely requesting for this to be in the Android API too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2012 03:21:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/is-reprojection-on-the-fly-supported-on-the-map/m-p/304916#M2040</guid>
      <dc:creator>StephenQuan</dc:creator>
      <dc:date>2012-02-21T03:21:20Z</dc:date>
    </item>
  </channel>
</rss>

