GetRelatedFeatures command does not return geometry
We are developing a custom module for Geocortex Viewer for HTML5 2.7. We are trying to get the features related to a feature in a table. The relationship is configured for the layer.
We are executing the following code:
var args = {
mapService: layer.mapService,
relationshipId: 1,
objectId: objectId,
returnGeometry: true, // Not documented in API and does not appear to affect the results
successCallback: function (results: esri.Graphic) {
console.info(results);
},
errorCallback: function (error: Error) {
console.error(error.message);
}
}
this.app.commandRegistry.command("GetRelatedFeatures").execute(args);
The command is successful and ‘results’ esri.Geometry object returned in the successCallback function is populated. However, the geometry property for each element in the results array is null. This is illustrated in the following image:

We have intercepted the REST request from the command in Fiddler and the query string contains a “returnGeometry” parameter with a value of “false”:
<ArcGIS Server Rest base URL>/FeatureServer/4/queryRelatedRecords?f=json&definitionExpression=&relationshipId=1&returnGeometry=false&objectIds=27106&outFields=*
Is it possible to get the geometry for the related features? It does not appear to be documented in the API reference.
0
-
Hi Joe,
Sorry for the late reply but for the record, I have confirmed the API does not support the returngeometry parameter.
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar