- URL:
- https://<root>/<serviceName>/MapServer/exts/SchematicServer/templates/<tempID>/queryAssociatedSchematicFeatures
- Methods:
POST
- Version Introduced:
- 10.1
Description
The query
operation returns the schematic features in a diagram that are associated with a set of objects. It is performed on a Schematic Diagram Template resource. The result of this operation is a list of schematic features ID per schematic feature class ID. It is used to retrieve the schematic features contained in a diagram that are associated with a set of objects.
The associated
object returned by the REST API gives the associated schematic features as a list of schematic features names per schematic feature class ID as follows:
feature
: The schematic feature class ID (Long).Class ID object
: An array of schematic feature names (String), each name corresponding to the SCHEMATICID field value for the schematic feature in the schematic feature class.Name
You can provide arguments to the query
operation as query parameters defined in the parameters table below.
Request Parameters
Parameter | Details |
---|---|
| The response format. The default response format is Values: |
(Required) | The diagram name. Syntax: Example: |
(Required) | The list of the GIS features/objects IDs per feature class/table name for which the operation has to retrieved the associated schematic features. Each GIS feature/object ID corresponds to a value of the OBJECTID field in the GIS feature class/table. Syntax:
Example: |
Example usage
Example 1: query
on the MPS_Goldmine diagram, based on the template which ID is 2 under the S1_Schematics Schematics sample service, with [{"object
for the selection parameter, returns the only schematic feature link associated with the PrimaryLine GIS feature which OBJECTID is '1554'.
https:/myserver.esri.com/arcgis/rest/services/S1_Schematics/MapServer/exts/SchematicsServer/templates/2/queryAssociatedSchematicFeatures?name=MPS_Goldmine&selection=%5B%7B%22objectClassName%22%3A+%22PrimaryLine%22%2C+%22objectIDs%22%3A+%5B1554%5D%7D%5D&f=pjson
Example 2: query
on the Substation 08 diagram, based on the template which ID is 1, under the S1_Schematics Schematics sample service, with [{"object
for the selection parameter, returns all the schematic features associated with the Substation GIS feature which OBJECTID is '1'. This substation is associated with all the schematic features contained in the Substation 08 diagram.
https://myserver.esri.com/arcgis/rest/services/S1_Schematics/MapServer/exts/SchematicsServer/templates/1/queryAssociatedSchematicFeatures?name=Substation+08&selection=%5B%7B%22objectClassName%22%3A+%22Substation%22%2C+%22objectIDs%22%3A+%5B1%5D%7D%5D&f=pjson
JSON Response syntax
{
"associatedFeatures" : [
{
"featureClassID" : <schFeatureClass1ID>,
"objectNames" : [
"<schFeatureName1>",
...,
"<schFeatureNameN>";
]
},
{
...
},
{
"featureClassID" : <schFeatureClass2ID>,
"objectNames" : [
"<schFeatureName1>",
...,
"<schFeatureNameM>"
]
}
]
}
JSON Response example
The following is an example for a given diagram with selection = {"object
{
"associatedFeatures" : [
{
"featureClassID" : 885,
"objectNames" : [
"859-3-0"
]
}
]
}