English

Bug: ArcMap Server does not return the envelope of a GET_FEATURES request

Description

When making a GET_FEATURES request on an ArcMap Service and requesting the envelope (envelope = "true") the envelope is not returned for the target layer.

Cause

ArcMap Server is looking for the #SHAPE# field in the list of subfields of target layer in order to return the envelope.

Workaround

Include the #SHAPE# field in the subfields of target layer in the GET_FEATURES request.

Example:

Code:

<BUFFER distance="0.1" bufferunits="miles">
<TARGETLAYER id="1" />
<SPATIALQUERY subfields="#SHAPE# NAME" />
</BUFFER>