2010年8月26日周四_understanding ArcGIS Server_using an ArcGIS Server service_8.3

/***********************************************************************************/

// Using an ArcGIS Server service

//2010年8月26日

//Version 2.0

/***********************************************************************************/

 

To use an ArcGIS Server service in the ArcGIS API for Flex, you need to know the URL of the service. URLs can vary but will often look like the following:

http://www.example.com/arcgis/rest/services/ExampleService/MapServer

为了在ArcGIS API for Flex中使用一个ArcGIS Server服务,你需要知道服务的URL,URL可能有些不同,但是大多数的都和下面的相似:

http://www.example.com/arcgis/rest/services/ExampleService/MapServer

 

Using map services

You can obtain information about a map service either from your ArcGIS Server administrator or by searching the ArcGIS Services Directory.

In addition to the service's URL, you may also need further information to use a map service:

  • Map layer IDs. These are necessary if you intend to identify or query on those layers.
    NOTE: IDs are usually integer values and are not the same as the layer name, which is assigned by the author of the map.
  • Names of the attribute fields in a layer. These are needed if you intend to specify which fields are returned from a query.
  • Other map information, such as the spatial extent of the map or individual layers, the feature type of a layer (point, line, or polygon), or the minimum and maximum scales at which the layer will display.

你可以从你的ArcGIS Server管理员那里或者通过搜索ArcGIS Services 目录来获取一个地图服务的的信息。除了服务的URL,你可能还需要更多的信息来使用Map服务。

1:Map layer 的ID。如果你打算鉴定或者查询这些图层,他们是必须的。

注意:ID值通常是整形值,并且和layer的名称不相同,它是由地图的创建者指定的

2:图层中属性字段的名称。 如果你打算指定在一个查询中返回那些字段值,那么这些字段值的名称是必须的。

3:其他的地图信息,比如:地图或者单独图层的显示范围,一个图层的feature类型(点、线、面)或者地图将要展示的最大或者最小比例尺。

 

Using other service types

Other services require different information. For example, geocoding services have address fields that you provide inputs for, such as street, city and state, and postal code, to return a result. Geoprocessing services contain input parameters for which you supply information. These parameters have certain data types and may or may not be required.

This data can be obtained from the ArcGIS Services Directory associated with the ArcGIS Server you want to use. In addition, some services may be secured so only authorized users may access them.

使用其他的服务类型。

其他的服务需要不同的信息、 比如:地理编码字段拥有地址字段值,她的值由你提供输入,比如:一个街道、城市和州、邮政编码等来返回结果。Geoprocessing服务包含输入变量,用来接受你提供的信息。 这些变量有一些数据类型,这些类型可能是要求的也可能不是要求的。

这些数据你可以从ArcGIS Services目录中获取,这个目录与你想使用的ArcGIS 服务器想关联。

原文地址:https://www.cnblogs.com/xingchen/p/1809080.html