// 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
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
ArcGIS API for iOS 使您可使用 Objective C 构建多种应用程序(这些应用程序将运用 ArcGIS Server 提供的强大制图、地理编码、地理处理和自定义功能)并将它们部署到 Apple iPhone、iPod Touch 和 iPad 设备。API 包括可在 Xcode 集成开发环境 (IDE) 中使用的本地 Objective C 库、模板和实例。
资源推荐
资源详情
资源评论
收起资源包目录
GeometryServiceTaskDemo.zip (20个子文件)
GeometryServiceTaskDemo
esri.png 2KB
GeometryServiceSampleViewController.xib 31KB
pushpin.png 1KB
GpsDisplayHeading.png 2KB
GeometryServiceTaskDemo-Info.plist 917B
icon@2x.png 3KB
GeometryServiceTaskDemo_Prefix.pch 211B
GpsDisplay@2x.png 3KB
MainWindow.xib 10KB
GeometryServiceTaskDemo.xcodeproj
project.pbxproj 17KB
main.m 653B
GpsDisplay.png 1KB
.DS_Store 6KB
Classes
GeometryServiceSampleViewController.h 2KB
GeometryServiceSampleAppDelegate.m 995B
GeometryServiceSampleViewController.m 10KB
GeometryServiceSampleAppDelegate.h 813B
GpsDisplayHeading@2x.png 3KB
icon.png 2KB
esri@2x.png 5KB
共 20 条
- 1
资源评论
- dianfu20112013-05-16很好的例子 ,值得学习
逍遥墨君
- 粉丝: 26
- 资源: 631
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 现场评定检查表——建筑外墙、屋面保温和建筑外墙装饰.docx
- 现场评定检查表--气体灭火系统.docx
- 消防第三方技术服务模拟验收抽查记录表.doc
- 现场评定检查表——总平面布局.docx
- 消防验收过程服务--现场记录表.doc
- 消防第三方技术服务现场交底监督记录表.doc
- 向日葵被控端绿色精简运行版
- 学生心理档案表.docx
- 验收确认单表格.docx
- 阳宅净宅表文.docx
- 医疗废弃物建设项目环境风险简单分析表.docx
- 原材料检测报告.docx
- 造林补助实施方案小班一览表、造林补助(新增部分)分行政村(国有林场)任务落实情况表.xls
- 造林补助(新增部分)分行政村(国有林场)任务落实情况表.docx
- 肢体残疾标准.docx
- 职工工伤与职业病致残等级分级表十级.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功