| Numéro d’ID de bogue |
BUG-000140486 |
| Envoi | June 4, 2021 |
| Dernière modification | August 6, 2025 |
| S’applique à | ArcGIS Online |
| Version trouvée | 9.2 |
| Système d’exploitation | Windows OS |
| Version du système d’exploitation | 10.0 |
| Statut | Known Limit
Après examen par l’équipe de développement, il a été déterminé que ce problème est lié à une limitation connue du logiciel sur laquelle Esri n’a aucun contrôle. Pour d’autres explications, reportez-vous à la section Informations supplémentaires correspondant au problème.
|
Informations supplémentaires
The slope values appear inaccurate when working with short elevation profiles. Higher resolution profiles are downsampled to a 10m (32.8ft) sampling distance before the slope is calculated. Refer to https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile-ElevationProfileLine.html#statistics
This is because the elevation preview model (EPW) was initially created for measuring profiles of larger areas with coarser elevation data. The default elevation services are not precise enough and can have a lot of noise in the dataset. This may result in the generation of false reports, e.g. too steep maxSlope values.
Solution de contournement
For calculating the slope value of more precise datasets, iterate through the list of ElevationProfileSamples of a ElevationProfileViewModel and calculate the maximum and average slope values from that. Refer to an example here, https://codepen.io/gsoosalu/pen/MWoGMOe However, it is not possible to overwrite the widget’s legend (the numeric reports) with the new values, i.e. the out-of-the-box legend must be hidden. Refer to https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-ElevationProfile.html#visibleElements and the newly calculated ones are displayed in a container outside of the widget. The line graph visualization remains accurate because it is drawn based on the data from the ElevationProfileSamples.
Étapes pour reproduire
ID de bogue: BUG-000140486
Logiciel: