Introduction to ArcXML |
Usa.axl map configuration file using ArcXML: |
<?xml version="1.0"
encoding="UTF-8"?> <ARCXML version="1.1"> <CONFIG> <ENVIRONMENT> <LOCALE country="US" language="en" variant="" /> <UIFONT color="0,0,0" name="Arial" size="12" style="regular" /> </ENVIRONMENT> <MAP> <PROPERTIES> <ENVELOPE minx="-125" miny="25" maxx="-67" maxy="50" name="Initial_Extent" /> <MAPUNITS units="decimal_degrees" /> </PROPERTIES> <WORKSPACES> <SHAPEWORKSPACE name="shp_ws-0" directory="C:\ESRIDATA\USA" /> </WORKSPACES> <LAYER type="featureclass" name="STATES" visible="true" id="0"> <DATASET name="STATES" type="polygon" workspace="shp_ws-0" /> <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL fillcolor="0,0,255" filltype="solid" /> </SIMPLERENDERER> </LAYER> <LAYER type="featureclass" name="CITIES" visible="true" id="1"> <DATASET name="CITIES" type="point" workspace="shp_ws-0" /> <SIMPLERENDERER> <SIMPLEMARKERSYMBOL color="255,0,0" width="6" /> </SIMPLERENDERER> </LAYER> </MAP> </CONFIG> </ARCXML> |
A sample request: |
<?xml version="1.0"
encoding="UTF-8" ?> <ARCXML version="1.1"> <REQUEST> <GET_IMAGE> <PROPERTIES> <ENVELOPE minx="-125" miny="25" maxx="-67" maxy="50" /> </PROPERTIES> </GET_IMAGE> </REQUEST> </ARCXML> |
Request to change the zoom area and layer color of a MapService: |
<?xml version="1.0"?> <ARCXML version="1.0"> <REQUEST> <GET_IMAGE> <PROPERTIES> <ENVELOPE minx="-88" miny="30" maxx="-67" maxy="50.0" /> <IMAGESIZE width="500" height="350" /> <LAYERLIST> <LAYERDEF id="0" visible="true" > <SIMPLERENDERER> <SIMPLEPOLYGONSYMBOL filltype="solid" fillcolor="255,255,0" /> </SIMPLERENDERER> </LAYERDEF> </LAYERLIST> </PROPERTIES> </GET_IMAGE> </REQUEST> </ARCXML> |
A sample response: |
<?xml version="1.0"?> <ARCXML version="1.0"> <RESPONSE> <IMAGE> <ENVELOPE minx="-87.5" miny="30.0" maxx="-59.5" maxy="50.0" /> <OUTPUT file="C:\ArcIMS\output\usa_image_MYCOMPUTER2953026.jpg" url="http://mycomputer.domain.com/output/usa_image_MYCOMPUTER2953026.jpg" /> </IMAGE> </RESPONSE> </ARCXML> |