PROBLEM

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

Last Published: April 25, 2020

Description

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">
<REQUEST>
<GET_IMAGE returnscale="true">
<PROPERTIES>
<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"/>
</LAYERLIST>
</PROPERTIES>
</GET_IMAGE>
</REQUEST>
</ARCXML>

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">
<RESPONSE>
<IMAGE>
<ENVELOPE minx="-122496433" miny="37721314,7836021" maxx="-122384655" maxy="37802594,2163979" />
<SCALE rf="1:63140159652,6425" />
<OUTPUT url="http://wiggles/output/sanfran_wiggles273226363.png" />
</IMAGE>
</RESPONSE>
</ARCXML>

Cause

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">
<CONFIG>
<ENVIRONMENT>
<LOCALE country="DK" language="da" variant="" />
...
...
</ENVIRONMENT>

    Article ID:000009611

    Software:
    • Legacy Products

    Get help from ArcGIS experts

    Contact technical support

    Download the Esri Support App

    Go to download options

    Discover more on this topic