130 likes | 178 Views
ArcXML. Ashraf Memon. ArcXML and ArcIMS. ArcXML. use to define map configuration use to define metadata configuration use to define ArcIMS request use to define ArcIMS response http://downloads.esri.com/support/documentation/ims_/ArcXML_Guide/Support_files/elements/introduction.htm.
E N D
ArcXML Ashraf Memon
ArcXML • use to define map configuration • use to define metadata configuration • use to define ArcIMS request • use to define ArcIMS response • http://downloads.esri.com/support/documentation/ims_/ArcXML_Guide/Support_files/elements/introduction.htm
ArcXML Requests • GET_IMAGE • GET_FEATURES • GET_GEOCODE • GET_EXTRACT • GET_SERVICE_INFO • GET_RASTER_INFO • GET_LAYOUT • GET_METADATA • PUBLISH_METADATA
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>
Sample Response • <?xml version="1.0" encoding="UTF-8" ?><ARCXML version="1.1"> <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>
GET_IMAGE <ARCXML version="1.1"> <REQUEST> <GET_IMAGE> <PROPERTIES> <ENVELOPE minx="-122.524464" miny="37.690002" maxx="-122.349621" maxy="37.834193" /> <IMAGESIZE width="500" height="350" /> </PROPERTIES> </GET_IMAGE> </REQUEST> </ARCXML>
GET_FEATURES <ARCXML version="1.1"> <REQUEST> <GET_FEATURES outputmode="newxml" geometry="false" envelope="true" compact="true"> <LAYER id="states" /> <SPATIALQUERY subfields="#ALL#" > </SPATIALQUERY> </GET_FEATURES> </REQUEST> </ARCXML>
Testing our own service • Enabling debug in your arcimsparam.js • open the file in text editor C:\data\arcims\website\storm\arcimsparam.js • Search for debug=0 and change it to debug=3 • Now open web browser and visit http://localhost/website/storm/ • Check out the communication between the client and server
Lets play with it • Sandbox information • C:\tools\arcxmlvalidator.exe • Server Name : titan.sdsc.edu • Service name: Nevada or Arizona • Layers: states (polygon), interstate (line), cities (point)
Further Reading • Please refer to the URL and try out different examples • http://downloads.esri.com/support/documentation/ims_/ArcXML_Guide/Support_files/arcxmlguide.htm