Extent values from GET_IMAGE requests are truncated when using the ArcIMS 9.2 .NET Web ADF


Extent values from GET_IMAGE requests are truncated when using the ArcIMS 9.2 .NET Web ADF on a machine whose locale uses a comma separator. For example, French, German and Danish versions of Windows use commas as the decimal separator.

A symptom of this behavior is that the initial map extent appears to be shifted. Confirmation of this issue can be determined by examining the ImageServer LOG files. The following example demonstrates the GET_IMAGE request and its associated response where the extent values have been truncated.

Sample Request:

<ARCXML version="1.1">
<GET_IMAGE returnscale="true">
<ENVELOPE minx="-122496433" miny="37721315" maxx="-122384655" maxy="37802594" />
<FEATURECOORDSYS string="GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]" />
<FILTERCOORDSYS string="GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]" />
<BACKGROUND color="255,255,255" />
<IMAGESIZE width="744" height="541" dpi="96"/>
<OUTPUT type="png8"/>
<LAYERLIST order="true" >
<LAYERDEF id="0" visible="true"/>

In the response, the spatial server only returns the full extent values for the miny and maxy attributes. The minx, maxx values have been truncated:

<ARCXML version="1.1">
<ENVELOPE minx="-122496433" miny="37721314,7836021" maxx="-122384655" maxy="37802594,2163979" />
<SCALE rf="1:63140159652,6425" />
<OUTPUT url="http://wiggles/output/sanfran_wiggles273226363.png" />


The cause of this issue is that the locale for the map service has not been defined in the AXL file.

Solution or Workaround

Set the locale setting in the AXL file.

For example, using a Danish Windows locale would require the LOCALE tag defined in the AXL file:

<ARCXML version="1.1">
<LOCALE country="DK" language="da" variant="" />

    Article ID:000009611

    • Legacy Products

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Discover more on this topic