AnsweredAssumed Answered

Geometry Type: esriGeometryPoint  Extent:  XMin: YMin: XMax: YMax: Spatial Reference: 102113

Question asked by savio47 on Jul 23, 2014
Latest reply on Mar 26, 2015 by NFurness-esristaff

Hi,

 

My question: Do we have to work with ArcGIS Runtime SDK for iOS in order to plot esri points x,y ?

 

I live in Portugal, and the city of Lisbon has many web services we can use, but I found myself in a big issue:

i.e (if I try to use one of the web services api they have at:
http://digc.cm-lisboa.pt/DIGC/...

and if I choose i.e. option /116/1 that stands for "traditional coffee shops" and get the first item
http://digc.cm-lisboa.pt/DIGC/...

Just take a look at the geo coordinates....

What the **** is Point:
X: -1024499,0043
Y: 4678426,5468

if I try to draw it on the map it doesn't correspond to the real Lat Long for that coffee shop.

Take a closer look at this link:
http://digc.cm-lisboa.pt/DIGC/...
Geometry Type: esriGeometryPoint

Extent:
XMin: -1028372.32756313
YMin: 4676782.25640479
XMax: -1011303.94154349
YMax: 4693079.50182223
Spatial Reference: 102113

//My question:
//Do we have to work with ArcGIS Runtime SDK for iOS in order to plot esri points x,y ?

- (void)viewDidLoad {
[super viewDidLoad];

NSURL *mapUrl = [NSURL URLWithString:@"http://services.arcgisonline.c..."];
AGSTiledMapServiceLayer *tiledLyr = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:mapUrl];
[self.mapView addMapLayer:tiledLyr withName:@"Tiled Layer"];

//

AGSSpatialReference *sr = [AGSSpatialReference spatialReferenceWithWKID:102113];
AGSEnvelope *env = [AGSEnvelope envelopeWithXmin:-1028372.32756313 ymin:4676782.25640479 xmax:-1011303.94154349 ymax:4693079.50182223 spatialReference:sr];

[self.mapView zoomToEnvelope:env animated:YES]

}

Outcomes