FEATURES

Used in

RESPONSE  

Servers

Query  Feature  

Parent elements

RESPONSE 

Syntax

<FEATURES >
     No Attributes

     (r)<FEATURECOUNT... />
     <ENVELOPE... />
     (m)<FEATURE... />

</FEATURES >
(r): Attribute or child element is required.
(m):  Child element can be used multiple times.

Description

Returns attribute data, feature geometry data, or both. Data is returned in a binary stream from the Feature Server or in ArcXML format from the Query Server.

Notes

 

Examples for FEATURES

Example 1: When envelope and globalenvelope are both requested.
<?xml version="1.0" encoding="UTF8"?>
<ARCXML version="1.1">
  <RESPONSE>
    <FEATURES>
      <FEATURE>
        <ENVELOPE minx="-124.731422424316" miny="45.5432510375977" maxx="-116.918151855469" maxy="49.0000038146973"/>
      </FEATURE>
      <FEATURE>
        <ENVELOPE minx="-124.558395385742" miny="41.9877891540527" maxx="-116.469444274902" maxy="46.2362594604492"/>
      </FEATURE>
      <FEATURE>
        <ENVELOPE minx="-124.391471862793" miny="32.5357246398926" maxx="-114.124450683594" maxy="42.0023460388184"/>
      </FEATURE>
      <FEATURE>
        <ENVELOPE minx="-160.245178222656" miny="18.9247817993164" maxx="-154.793869018555" maxy="22.2324924468994"/>
      </FEATURE>
      <FEATURE>
        <ENVELOPE minx="-178.215026855469" miny="51.5844345092773" maxx="-129.990539550781" maxy="71.4066467285156"/>
      </FEATURE>
      <FEATURECOUNT count="5" hasmore="false" />
      <ENVELOPE minx="-178.215026855469" miny="18.9247817993164" maxx="-114.124450683594" maxy="71.4066467285156"/>
    </FEATURES>
  </RESPONSE>
</ARCXML>

Example 2: When attributes are included.
<?xml version="1.0" encoding="UTF8"?>  
<ARCXML version="1.1">
  <RESPONSE>
    <FEATURES>
      <FEATURE>
        <ENVELOPE minx="-99.127571105957" miny="19.4270458221436" maxx="-99.127571105957" maxy="19.4270458221436"/>
        <FIELDS NAME="Mexico City" POPULATION="14100000" #SHAPE#="[Geometry]" />
      </FEATURE>
      <FEATURE>
        <ENVELOPE minx="-74.0999984741211" miny="40.75" maxx="-74.0999984741211" maxy="40.75"/>
        <FIELDS NAME="New York" POPULATION="16472000" #SHAPE#="[Geometry]" />
      </FEATURE>
      <FEATURECOUNT count="2" hasmore="false" />
      <ENVELOPE minx="-99.127571105957" miny="19.4270458221436" maxx="-74.0999984741211" maxy="40.75"/>
    </FEATURES>
  </RESPONSE>
</ARCXML>

Example 3: When retrieving only the feature count and the global envelope. In the GET_FEATURES request, the attributes envelope, geometry, and attributes are set to "false". The attribute globalenvelope is set to "true".
<?xml version="1.0" encoding="UTF-8"?>
<ARCXML version="1.1">
  <RESPONSE>
    <FEATURES>
      <FEATURECOUNT count="32" hasmore="false" />
      <ENVELOPE minx="-97.1244430541992" miny="48.1409759521484" maxx="150.780014038086" maxy="68.9635467529297"/>
    </FEATURES>
  </RESPONSE>
</ARCXML>

Back to top