ArcXML learning notes (1)

Source: Internet
Author: User

1. Overview:
configuration files are divided into four types:
1> used for Image Service and Feature Service map configuration file (MAP configuration file) ,
generated by ArcIMS author , the output is ArcXML ;
2> map configuration file used for ArcMap server (MAP configuration file) ,
generated by ArcMap , output is ArcMap file (*. mxd ,*. PMF)
3> viewer configuration file
4> default. axl

1. axl is used for communication between the client's browser and ArcIMS server, edited and output by ArcIMS author ;
2. each map service points to a Axl file;

UsedImage ServiceAndFeature ServiceMap configuration file
 Generally, the map configuration fileArcIMSThe service input provides the default properties and representations of the layer.RequestWill overwrite the default properties and Drawing Method of the layer in the map configuration file,RequestIf there is no corresponding parameter command overwrite,ArcIMS ServiceThe default value in the map configuration file is used.
**For non-English charactersLayer nameOrFont NameRequiredAuthorOrXMLEditor editing;
**The map configuration file does not contain the data source (Data Source),File only references it. The map configuration file only contains the defaultMap attribute operations and plotting methods;

Composition of the map configuration file:
1> <? XML version = "1.0" encoding = "UTF-8"?> : Prolog ( Collation ) , General XML Definition at the beginning of a file
2> <ArcXML version = "1.1"> Element that appears in all ArcXML File;
3> <config> Element pair, indicating a configuration file;
|
4> | -- <environment> Element pair, including local configuration;  
| -- <Locale \>
| -- <Uifont \>
| -- <Separators \>
| -- <Screen \>
|
5> | -- <map> Element pair, including map configuration.
| -- <Properties>
| -- <Envelope> // Range
| -- <Mapunits> // Unit
|
| -- <Workspaces>
| -- <Shapeworkspace> // Record all Shape File directory
| (Details of a Layer Shape File in <Layer> Records)
| -- <Imageworkspace>
| -- <Sdeworkspace> // Record all SDE Server Information of the table
| (Corresponding to a layer SDE The table name is in <Layer> Records)  
| -- <Layer>
 
<Environment> Details:  
Includes: <Locale \> Definition Country, language
<Uifont \> Definition Arcjavase4, Java Viewer Default font
<Separators \> Definition TS Property defines all coordinates (X, y) The delimiter between vertices;
CS Attribute definition Separation X Coordinates and Y Coordinate separator;
<Screen \> Definition Default Client resolution Parameters; DPI = "96" Is 1024x768
Example:
<Environment>
<Locale Country = "cn" Language = "ZH" variant = ""/>
<Uifont color = "0, 0" name = "Arial" size = "12" style = "regular"/>
<Separators cs = "" Ts = ";"/>
<Screen DPI = "96"/>
</Environment>
<Map>
Includes: <Properties> Define ArcIMS Service The required attribute frame, including the initial length and width of the map image, maximum length and width, unit, and current projection.
<Workspaces> Storage path for data required to create a map layer
<Layer> Every Layer An element is applied to a layer, containing how the layer data is symbolic.

<Properties> Details:  
Must contain <Envelope>, In the map configuration file <Envelope> Define the length and width range
<Envelope> By defining X , Y The maximum and minimum coordinates define a quadrilateral.  
& Lt; envelope Minx = "115.16805678807434"
Miny = "39.39748735639008"
Maxx = "117.50695799536"
Max y = "41.0590057298794"
Name = "initial_extent"/>
Name = "initial_extent" The initial size of the first access to the map image;
Name = "extent_limit" It indicates that the map can be enlarged to the maximum extent. Extent_limit In Get_image And Get_features Of Requests Will be ignored, Serviceinfo Of Response Valid

<Mapunits> Defines the unit of data used in the map
Units = "decimal_degrees" Longitude and latitude
Units = "feet" Feet
Units = "meters" Meters
<Properties> Include Featurecoordsys and filtercoordsys Hour
<Mapunits> By ArcIMS spatial Server Automatically Selected. In the map configuration file <Mapunits> Ignored.

<Workspaces> Details:  
Includes: <Shapeworkspace
Name = "shp_ws-0" // Workspace Must be unique in the dataset.
Directory = "C: \ esridata "// Include Shape File Path
/>
<Imageworkspace
Name = "jai_ws-1"
Directory = "C: \ esridata "// Include Image File Path
/>
<Sdeworkspace
Name = "sde_ws-314"
Server = "172.18.2.6"
Instance = "port: 5151" // SDE instance Of Port No,
// Format: "Port: Port Number " .
// For example SDE Direct Connection,
// The format is "SDE: <database_vendor>"
// Currently : "SDE: Oracle" (Oracle 8i ),
// "SDE: oracle9i" (Oracle 9i ),
// "SDE: sqlserver ".
Database = ""
User = "mapuser"
Encrypted = "true "// Access ArcSDE instance Of Password Encrypted?
Password = "qkwrieuxaefijt"
// For example SDE For direct connection, the password must be followed
// "@ <Net8 service name>"
Geoindexdir = "C: \ docume ~ 1 \ admini ~ 1 \ locals ~ 1 \ temp \"
// Geocoding Index Created directory ,
// Windows The default directory is "Temp"
// Unix The default directory is /Tmp
/>

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.