MapServer queries in ArcGIS use

Source: Internet
Author: User

Way One, ArcMap

    1. Open ArcMap, or the mid format file that already exists.

      1. Double-click Layer Information

      2. Select-Define Query

2. Click Query Builder

      1. Select the field of the layer feature for the query

      2. Select a logical judgment character

      3. Query the value after the feature field is de-weighed

      4. Select one of the values


Mode two, JS call mode

    1. Enter the rest request address to ArcGIS (http://27.0.0.1:6080/arcgis/rest)

      1. Go to the corresponding layer MapServer

      2. Enter the export map operator interface

]

2. Layer definitions meaning is almost the result filter in the layer

      1. You can use the JSON format, or the key value format to refer to the contents of the document


How to use Exportmap in Arcgisserver

Objective: In order to obtain a map service image of a certain range;

A problem exists:

1, due to the large amount of data, the use of dynamic graph to obtain, service response is too slow;

2, due to the frequent updating of data, the use of slice map to obtain, there is a need to re-slice at any time;

3, the solution of the problem: the use of arcgisserver in the Exportmap method;

Parameters supported in Exportmap:

1, F: return type, HTML supported | JSON | Image | KMZ four format, we request is the picture, choose F=image can;

2, Bbox: Map of the lower left corner coordinates and the upper-right coordinates, the order is <xmin>, <ymin>, <xmax>, <ymax>. e.g. bbox=-104,35.6,-94.32,41;

3, Size: Returns the size, width and length of the picture, for example: size=600,550;

4, IMAGESR: request the picture coordinate system;

5. Format: Request a picture in the following ways: PNG | Png8 | Png24 | JPG | PDF | BMP | GIF | SVG | Png32

6, layers: Request a picture of the layer, there are four keywords: show (show) Hide (hide) include (including) exclude (not included); For example: Show:1 (indicates the first layer of data), the same hide:1 (means to hide the first layer of data);

7, layer definitions: To obtain the data satisfying the current condition, equivalent to the Where condition or filter; for example: layerdefs=0:com1= ' COPPER ' (for layer No. 0, the value in field COM1 equals "COPPER" ) of all elements;

8, transparent: transparency, only valid for PNG format;

1. Examples of valid EPXORTMAP requests:

http://192.168.5.253/arcgis/rest/services/test/mapserver/export?bbox=-197.259167,- 84.50000035,208.475833,87.83333335&bboxsr=&layers=&layerdefs=0:com1%3d%27copper%27&size=& Imagesr=4326&format=&transparent=false&dpi=&f=html

2, the use of exportmap need to pay attention to the problem:

1), Map publishing services, whether dynamic services or slicing services, you can use the Exportmap method;

2), the use of their own time, after testing the feeling, slicing service request faster than the dynamic service request speed;

3), if using the slicing service, need to add all the required levels when establishing the tiled, can not do the cache processing, if the level is not added, when the requested range is less than the hour, the picture will look for the most suitable level of the current crop scale display, an incorrect picture will appear, when the scale is added, Although not done cache processing, still can get the correct picture;

4), cutting services, you can choose to cut layers, in the advance options can be selected;




Reference articles are as follows:

How to use Exportmap in Arcgisserver

Http://wenku.baidu.com/link?url=MO1EkpUSPQ7MvIt5ShOwpxi4lyEb18x-pVxQkeqvlk_ Ty5dmxnykwvbe6ka7egvv4sciyvbk0igvh7bhbj3qupadh8hjnhs5gb0l_p4shtm

MapServer queries in ArcGIS use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.