<?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: Geometry Type: esriGeometryPoint  Extent:  XMin: YMin: XMax: YMax: Spatial Reference: 102113 in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geometry-type-esrigeometrypoint-160-extent-160/m-p/238356#M2214</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you try the method "zoomToGeometry:withPadding:animated" to zoom directly to the point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_map_view_base.html#aa787aca88a6f78853967849559791eea" title="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_map_view_base.html#aa787aca88a6f78853967849559791eea"&gt;10.2.3: AGSMapViewBase Class Reference&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Sep 2014 22:07:02 GMT</pubDate>
    <dc:creator>ArtemisFili</dc:creator>
    <dc:date>2014-09-19T22:07:02Z</dc:date>
    <item>
      <title>Geometry Type: esriGeometryPoint  Extent:  XMin: YMin: XMax: YMax: Spatial Reference: 102113</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geometry-type-esrigeometrypoint-160-extent-160/m-p/238355#M2213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3334ca;"&gt;&lt;SPAN style="font-family: Georgia, Times, serif; font-size: 15px;"&gt;My&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="font-family: Georgia, Times, serif; font-size: 15px;"&gt; question: &lt;/SPAN&gt;&lt;SPAN style="font-family: Georgia, Times, serif; font-size: 15px;"&gt;Do we have to work with ArcGIS Runtime SDK for iOS in order to plot esri points x,y ?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;I live in Portugal, and the city of Lisbon has many web services we can use, but I found myself in a big issue:&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;i.e (if I try to use one of the web services api they have at:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://digc.cm-lisboa.pt/DIGC/rest/services/OpenDataLX/LxPOI/MapServer" rel="nofollow" target="_blank"&gt;http://digc.cm-lisboa.pt/DIGC/...&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;and if I choose i.e. option /116/1 that stands for "traditional coffee shops" and get the first item&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://digc.cm-lisboa.pt/DIGC/rest/services/OpenDataLX/LxPOI/MapServer/116/1" rel="nofollow" target="_blank"&gt;http://digc.cm-lisboa.pt/DIGC/...&lt;/A&gt;&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;Just take a look at the geo coordinates....&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;What the hell is Point:&lt;BR /&gt;X: -1024499,0043&lt;BR /&gt;Y: 4678426,5468&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;if I try to draw it on the map it doesn't correspond to the real Lat Long for that coffee shop.&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;Take a closer look at this link:&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://digc.cm-lisboa.pt/DIGC/rest/services/OpenDataLX/LxPOI/MapServer/116" rel="nofollow" target="_blank"&gt;http://digc.cm-lisboa.pt/DIGC/...&lt;/A&gt;&lt;BR /&gt;Geometry Type: esriGeometryPoint&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;Extent: &lt;BR /&gt;XMin: -1028372.32756313&lt;BR /&gt;YMin: 4676782.25640479&lt;BR /&gt;XMax: -1011303.94154349&lt;BR /&gt;YMax: 4693079.50182223&lt;BR /&gt;Spatial Reference: 102113&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;//My question:&lt;BR /&gt;//Do we have to work with ArcGIS Runtime SDK for iOS in order to plot esri points x,y ?&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;- (void)viewDidLoad {&lt;BR /&gt;[super viewDidLoad];&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;NSURL *mapUrl = [NSURL URLWithString:@"&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.c...&lt;/A&gt;"];&lt;BR /&gt;AGSTiledMapServiceLayer *tiledLyr = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:mapUrl];&lt;BR /&gt;[self.mapView addMapLayer:tiledLyr withName:@"Tiled Layer"];&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;//&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;AGSSpatialReference *sr = [AGSSpatialReference spatialReferenceWithWKID:102113];&lt;BR /&gt;AGSEnvelope *env = [AGSEnvelope envelopeWithXmin:-1028372.32756313 ymin:4676782.25640479 xmax:-1011303.94154349 ymax:4693079.50182223 spatialReference:sr];&lt;/P&gt;&lt;P style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;[self.mapView zoomToEnvelope:env animated:YES]&lt;/P&gt;&lt;ADDRESS style="margin: 0 0 15px; font-size: 15px; font-family: Georgia, Times, serif; color: #3f4549;"&gt;}&lt;/ADDRESS&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2014 22:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geometry-type-esrigeometrypoint-160-extent-160/m-p/238355#M2213</guid>
      <dc:creator>SavioGoncalves</dc:creator>
      <dc:date>2014-07-23T22:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry Type: esriGeometryPoint  Extent:  XMin: YMin: XMax: YMax: Spatial Reference: 102113</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geometry-type-esrigeometrypoint-160-extent-160/m-p/238356#M2214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you try the method "zoomToGeometry:withPadding:animated" to zoom directly to the point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_map_view_base.html#aa787aca88a6f78853967849559791eea" title="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_map_view_base.html#aa787aca88a6f78853967849559791eea"&gt;10.2.3: AGSMapViewBase Class Reference&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2014 22:07:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geometry-type-esrigeometrypoint-160-extent-160/m-p/238356#M2214</guid>
      <dc:creator>ArtemisFili</dc:creator>
      <dc:date>2014-09-19T22:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Geometry Type: esriGeometryPoint  Extent:  XMin: YMin: XMax: YMax: Spatial Reference: 102113</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geometry-type-esrigeometrypoint-160-extent-160/m-p/238357#M2215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/51997"&gt;Savio&lt;/A&gt;​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;For me, the cafe appears to be in the right place.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;&lt;IMG __jive_id="78938" alt="2015-03-26_12-39-27.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/78938_2015-03-26_12-39-27.png" style="height: auto;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;So given that, I think your question is about Spatial References.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;-1024499.0043,4678426.5468 (x,y in meters) is in Web Mercator Spatial Reference (usually known as WKID 102100 or 3857, but 102113 is an older identifier). This translates to &lt;/SPAN&gt;&lt;SPAN class="s1" style="line-height: 1.5;"&gt;38.6974539920001,-9.20323083499994 as lat,lon.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;You can do one of a few things:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Use the Runtime SDKs (in iOS, an &lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_feature_layer.html"&gt;AGSFeatureLayer&lt;/A&gt; added to an &lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_map_view.html"&gt;AGSMapView&lt;/A&gt;) to handle them. When you create a layer with the &lt;A href="http://digc.cm-lisboa.pt/DIGC/rest/services/OpenDataLX/LxPOI/MapServer/116"&gt;service URL&lt;/A&gt; and add it to the map, the Runtime will ensure things are returned from the server appropriately for direct display on the map. This is by far the simplest approach.&lt;/LI&gt;&lt;LI&gt;If you're querying the REST service directly, Specify the outSR in the service query request: &lt;A href="http://digc.cm-lisboa.pt/DIGC/rest/services/OpenDataLX/LxPOI/MapServer/116/query?text=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryPoint&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;objectIds=1&amp;amp;where=&amp;amp;time=&amp;amp;returnCountOnly=false&amp;amp;returnIdsOnly=false&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;outSR=4326&amp;amp;outFields=*&amp;amp;f=pjson" title="http://digc.cm-lisboa.pt/DIGC/rest/services/OpenDataLX/LxPOI/MapServer/116/query?text=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryPoint&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;objectIds=1&amp;amp;where=&amp;amp;time=&amp;amp;returnCountOnly=false&amp;amp;returnIdsOnly=false&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;outSR=4326&amp;amp;outFields=*&amp;amp;f=pjson"&gt;http://digc.cm-lisboa.pt/DIGC/rest/services/OpenDataLX/LxPOI/MapServer/116/query?text=&amp;amp;geometry=&amp;amp;geometryType=esriGeomet…&lt;/A&gt;&amp;nbsp; (see also &lt;A href="http://digc.cm-lisboa.pt/DIGC/rest/services/OpenDataLX/LxPOI/MapServer/116/query?text=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryPoint&amp;amp;inSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;objectIds=1&amp;amp;where=&amp;amp;time=&amp;amp;returnCountOnly=false&amp;amp;returnIdsOnly=false&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;outSR=4326&amp;amp;outFields=*&amp;amp;f=html"&gt;here&lt;/A&gt; for an HTML interface)&lt;/LI&gt;&lt;LI&gt;Use the runtime &lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_geometry_engine.html"&gt;GeometryEngine&lt;/A&gt; class to &lt;A href="https://developers.arcgis.com/ios/api-reference/interface_a_g_s_geometry_engine.html#adf9adc2b5ec8aea58a166a9b97192f8d"&gt;project&lt;/A&gt; the point from WKID 102113 to WKID 4326.&lt;/LI&gt;&lt;LI&gt;Do your own maths to translate the Web Mercator (102113) coordinate -1024499.0043,4678426.5468 to the Lat/Lon (4326) coordinate -9.20323083499994,38.6974539920001. There are plenty of algorithms around, but I don't recommend this approach.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you don't &lt;EM&gt;have&lt;/EM&gt; to work with the Esri SDKs and APIs to use the data as it comes out of the service, but they can make your life a lot easier if you do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick.​&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2015 18:38:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/geometry-type-esrigeometrypoint-160-extent-160/m-p/238357#M2215</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2015-03-26T18:38:15Z</dc:date>
    </item>
  </channel>
</rss>

