我正在尝试从中提取 x 和 y 坐标,self.mapView.gps.currentPoint
我该怎么做?
这是我到目前为止所做的:
NSLog(@"Location1 : %@", self.mapView.gps.currentPoint);
结果:
Location1 : AGSMutablePoint: x = 29841.008687, y = 40101.841687, spatial reference:
[AGSSpatialReference: wkid = 0, wkt = "PROJCS["SVY21",
GEOGCS[
"SVY21[WGS84]",
DATUM[
"D_WGS_1984",
SPHEROID["WGS_1984",6378137.0,298.257223563]
],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]
],
PROJECTION["Transverse_Mercator"],
PARAMETER["False_Easting",28001.642],
PARAMETER["False_Northing",38744.572],
PARAMETER["Central_Meridian",103.8333333333333],
PARAMETER["Scale_Factor",1.0],
PARAMETER["Latitude_Of_Origin",1.366666666666667],
UNIT["Meter",1.0]
]"]`
如果我使用NSLog(@"Location2 : %@", self.mapView.gps.currentPoint.x);
它将返回错误错误访问。