using_the_arcgis_server_rest_api

更新时间:2023-08-06 16:17:01 阅读量: 实用文档 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

介绍如何使用arcgis server的REST接口

Using the ArcGIS Server REST API

Jeremy Bartley& Keyur Shah

ESRI Developer Summit 2008

介绍如何使用arcgis server的REST接口

Schedule 75 minute session– 60– 65 minute lecture– 10– 15 minutes Q& A following the lecture

Cell phones and pagers

Please complete the session survey– we take your feedback very seriously!ESRI Developer Summit 2008 2

介绍如何使用arcgis server的REST接口

Agenda Introduction Services Design and Concepts Supported Formats REST API Admin Security Demos Conclusion

ESRI Developer Summit 2008

介绍如何使用arcgis server的REST接口

Agenda

Introduction Services Design and Concepts Supported Formats REST API Admin Security Demos Conclusion

ESRI Developer Summit 2008

介绍如何使用arcgis server的REST接口

Introduction Developers should do simple things simply ArcGIS Server is REST enabled– Available in both Java and .NET Server

ArcGIS Server embraces open web standards

ESRI Developer Summit 2008

介绍如何使用arcgis server的REST接口

ArcGIS Server can work with many different clients.Net Java PopFly Yahoo Pipes SAP Google Maps Microsoft Silverlight Yahoo! Maps Ruby Python OpenLayers ArcGIS MobileESRI Developer Summit 2008 6

ArcGIS Explorer Microsoft Virtual Earth Flex/Flash Google Earth ArcMap PHP

介绍如何使用arcgis server的REST接口

Agenda Introduction

Services Design and Concepts Supported Formats REST API Admin Security Demos Conclusion

ESRI Developer Summit 2008

介绍如何使用arcgis server的REST接口

ArcGIS Server Services Map– Based on a Map Document (.mxd) authored using ArcMap– Can be used to identify features on the map– Can be used to query individual layers in the map

Geocode– Published locator file that can be used to perform find address and find location

Geometry– A computational service, not bound to any data on the server. New at 9.3– An ArcGIS Server can host a Geometry Service– Provides basic geometric operations for use by web service clientsESRI Developer Summit 2008 8

介绍如何使用arcgis server的REST接口

ArcGIS Server Services Geoprocessing– Allows organizations to centralize both data and processing on the server– Exposes spatial analysis functionality as easy to use tasks– Allows GIS Analysts to easily author and publish geoprocessing models

ImageServer, Geodata, Network Analysis

ESRI Developer Summit 2008

介绍如何使用arcgis server的REST接口

ArcGIS Server– Publishing GIS Web Services Author GIS resources (eg maps, locators, models) using desktop. Publish GIS resources to create GIS Services. Each capability is exposed to consumers as an independent GIS Web Service accessible through SOAP or REST

ESRI Developer Summit 2008

介绍如何使用arcgis server的REST接口

Agenda Introduction Services

Design and Concepts Supported Formats REST API Admin Security Demos Conclusion

ESRI Developer Summit 2008

介绍如何使用arcgis server的REST接口

REST– The Elevator Pitch4 Key Principles* Identification Of Resources In Simple Terms Everything is a URL

Manipulation Of Resources Exchange standard formats using Through Representations standard verbs Self-Descriptive Messages Every request asks the full question, every response includes

the full answer Hyperlinks<a href=“url”>Yeah!</a>

Hypermedia As The Engine Of Application State

*Thank you: http://www.77cn.com.cn/blog/2198.html

ESRI Developer Summit 2008

介绍如何使用arcgis server的REST接口

Everything is a URL Hierarchy of resources–Catalog, Services (Map, Geocode, etc.), Layers, Tasks, etc.

wget, curl... JavaScript, Ruby, Python, Perl... Java, .NET–interoperable

Bookmark-able Browser is the new command lineESRI Developer Summit 2008 13

介绍如何使用arcgis server的REST接口

HTTP Goodness HTTP as an application protocol–Cache-Control headers–ETags (Conditional GETs)–Compression (gzip)–Status codesESRI Developer Summit 2008 14

介绍如何使用arcgis server的REST接口

Every request is stateless Scalable GETs are cache-able Services Explorer is index-able–easy to discover your content

ESRI Developer Summit 2008

介绍如何使用arcgis server的REST接口

Resources and Operations Everything is a resource...– But…

We have categorized resources into 2 types–Resources that are in and by themselves

Catalog, Map Service, Layer, etc.–Resources that are results of operations

Users are used to the vocabulary:– Export Map v. Map Image– Query v. Results– Reverse Geocode v. Location AddressESRI Developer Summit 2008 16

介绍如何使用arcgis server的REST接口

Agenda Introduction Services Design and Concepts

Supported Formats REST API Admin Security Demos Conclusion

ESRI Developer Summit 2008

介绍如何使用arcgis server的REST接口

Supported Formats All REST URLs support an f (format) parameter– Default is html

List of supported formats– html (Services Explorer)– json– kmz– image– help– lyr, nmf, jsapi, gmaps, ve

ESRI Developer Summit 2008

介绍如何使用arcgis server的REST接口

f=html Services Explorer– simple and instant access to Service Level Metadata Designed to be a developer tool Developers who work with the JavaScript APIs might not work with the json responses directly, but will work with the Services Explorer. f=help (Context Sensitive API Reference)

ESRI Developer Summit 2008

本文来源:https://www.bwwdw.com/article/2wyj.html

Top