Way One, ArcMap
Open ArcMap, or the mid format file that already exists.
Double-click Layer Information
Select-Define Query
2. Click Query Builder
Select the field of the layer feature for the query
Select a logical judgment character
Query the value after the feature field is de-weighed
Select one of the values
Mode two, JS call mode
Enter the rest request address to ArcGIS (http://27.0.0.1:6080/arcgis/rest)
Go to the corresponding layer MapServer
Enter the export map operator interface
]
2. Layer definitions meaning is almost the result filter in the layer
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