// Copyright 2010 ESRI
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// You may freely redistribute and use this sample code, with or
// without modification, provided you include the original copyright
// notice and use restrictions.
//
// See the use restrictions at http://help.arcgis.com/en/sdk/10.0/usageRestrictions.htm
//
#import <UIKit/UIKit.h>
#import "ArcGIS.h"
#define kBaseMapService @"http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"
#define kGeometryBufferService @"http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/buffer"
#define kesriSRUnit_SurveyMile 9035
#define kesriSRUnit_Meter 9001
#define kWebMercator 102100
@interface GeometryServiceSampleViewController : UIViewController < AGSGeometryServiceTaskDelegate, AGSMapViewDelegate > {
UINavigationBar *_navBar;
UIButton *_goBtn;
UIButton *_clearGraphicsBtn;
UIView *_statusView;
UILabel *_statusLabel; /* label that informs user to click points/number of pts clicked */
AGSMapView *_mapView;
AGSGraphicsLayer *_graphicsLayer;
NSMutableArray *_geometryArray; /* holds on to the buffered geometries until "clear" clicked */
NSInteger _numPoints; /* keeps track of the number of points the user has clicked */
NSMutableArray *_pushpins; /* holds on to the pushpins that mark where the user clicks */
AGSGeometryServiceTask *_gst; /* The Geometry Service Task we will use to execute operations */
}
@property (nonatomic, retain) IBOutlet UIButton *goBtn;
@property (nonatomic, retain) IBOutlet UIButton *clearGraphicsBtn;
@property (nonatomic, retain) IBOutlet UINavigationBar *navBar;
@property (nonatomic, retain) IBOutlet UIView *statusView;
@property (nonatomic, retain) IBOutlet UILabel *statusLabel;
@property (nonatomic, retain) IBOutlet AGSMapView *mapView;
@property (nonatomic, retain) AGSGraphicsLayer *graphicsLayer;
@property (nonatomic, retain) NSMutableArray *geometryArray;
@property (nonatomic, retain) NSMutableArray *pushpins;
@property (nonatomic, retain) AGSGeometryServiceTask *gst;
/* Called when the user clicks the "Go" button on the UINavigation Bar
* Kicks off the Geometry Service Task given the user has selected >= 1 point
*/
- (IBAction)goBtnClicked:(id)sender;
/* Clears all of the graphics from the view
*/
- (IBAction)clearGraphicsBtnClicked:(id)sender;
@end

逍遥墨君
- 粉丝: 26
- 资源: 631
最新资源
- 基于纳什谈判理论的风光氢多主体能源系统合作博弈运行策略MATLAB仿真实现,基于纳什谈判理论的风光氢多主体能源系统合作博弈运行策略研究,MATLAB代码:基于纳什谈判理论的风–光–氢多主体能源系统合作
- leaflet.markercluster.js
- 基于ECMS搭建的混合动力汽车Simulink模型:能量管理研究资料与参考赠送,适用于多种工况模拟研究,基于ECMS搭建的混合动力汽车Simulink模型:能量管理研究资料与参考赠送,适用于多种工况开
- 基于解析表达文法的文本模式匹配工具LPEG及其优化实现与性能分析
- PLTreprint-master.MATLAB 绘图复刻
- MarkerCluster.css
- MarkerCluster.Default.css
- 单电源供电的RC文氏电桥振荡电路 Multisim仿真源文件
- 基于MATLAB平台的LSTM长短期记忆网络回归预测算法研究,基于MATLAB平台的LSTM长短期记忆网络回归预测模型,基于MATLAB的'LSTM长短期记忆网络预测 基于MATLAB平台,对数据进行
- 办公软件-开源软件-LibreOffice-25.2.0-Win-x86-64-安装包.msi
- 关于银河麒麟系统微信无法打开,软件商店“微信”无法安装的解决方案
- 完美注释版D* lite算法:无人机、无人车、机器人及无人船路径规划解决方案(MATLAB实现),完美注释版D* lite路径规划算法:无人机、无人车、机器人及无人船应用,MATLAB实现,结果展示为
- DeepSeek本地部署,保姆级教程
- java项目,毕业设计(包含源代码)-基于vue的MOBA类游戏攻略分享平台
- TowerAOI-master
- pda安装包12-44
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈


