Resource Chaining
Input
Links will be specified in the input columns with the link name, followed by the list of requested columns in the link table in parentheses.
Ex. GEOMETRY,PropertyLocation(TAX_ID)
Output
The output XML will contain a separate RecordSet for each table in the result, with links specified as shown below:
<Response>
<RecordSet Resource=?Parcels?>
<Row GEOMETRY="POLYGON ((-117.859239631834 33.6727472827397, -117.859348859208 33.6727389552775, -117.859836246139 33.6730783470354, -117.859881735292 33.6734954267937, -117.859653217024 33.6737248360077, -117.859543988444 33.6737331637343, -117.859309587354 33.6735699397017, -117.859299627396 33.67347861444, -117.859393734994 33.6733841403457, -117.859365952643 33.6733647954669, -117.859432553035 33.6732979352239, -117.859054370428 33.6730345888823, -117.859044410798 33.6729432635873, -117.859239631834 33.6727472827397))">
<Link Name="PropertyLocation" Resource="PropertyLocation" >0,1,2,3,4,5,6,7,8,9</Link>
</Row>
</RecordSet>
<RecordSet Resource="PropertyLocation">
<Row TAX_ID="US_06_059_39298853">
<Link Name="Parcels" Resource="Parcels" >0</Link>
</Row>
<Row TAX_ID="US_06_059_39298852">
<Link Name="Parcels" Resource="Parcels" >0</Link>
</Row>
<Row TAX_ID="US_06_059_39298851">
<Link Name="Parcels" Resource="Parcels" >0</Link>
</Row>
<Row TAX_ID="US_06_059_39298846">
<Link Name="Parcels" Resource="Parcels" >0</Link>
</Row>
<Row TAX_ID="US_06_059_39298841">
<Link Name="Parcels" Resource="Parcels" >0</Link>
</Row>
<Row TAX_ID="US_06_059_39298922">
<Link Name="Parcels" Resource="Parcels" >0</Link>
</Row>
<Row TAX_ID="US_06_059_39298921">
<Link Name="Parcels" Resource="Parcels" >0</Link>
</Row>
<Row TAX_ID="US_06_059_39298842">
<Link Name="Parcels" Resource="Parcels" >0</Link>
</Row>
<Row TAX_ID="US_06_059_39298845">
<Link Name="Parcels" Resource="Parcels" >0</Link>
</Row>
<Row TAX_ID="US_06_059_39298844">
<Link Name="Parcels" Resource="Parcels" >0</Link>
</Row>
</RecordSet>
</Response>
Each recordset for a resource will
not exceed 'MaxRecords' records.
Hierarchical
Output and Link Attributes
You can specify a different output format by by assigning 'nested'
parameter as 'true'
Also, you can specify link attributes by adding a field to a link. The format is <LinkName>.<LinkAttribute>. The only Link Attributes currently supported are:
1)
_GEO_DISTANCE - the distance (in meters) of the shortest line that
touches the subject geometry and the object geometry. This value is 0 if the geometries touch or
overlap.
2)
_GEO_OVERLAP - the area (in meters squared) of the intersection of
the subject geometry and the object geometry. This value is 0 if the geometries touch, do not overlap, or if either
the geometries is a
point.
Example:
Input: GetGeocode.aspx?address=123
Fake
St&fields=*,PARCELS(*,FLOODZONE(*,FLOODZONE._GEO_OVERLAP,FLOODZONE._GEO_DISTANCE))&nested=true
Output: