laptop and a wrench

不具合

The Location.Velocity property is not reporting in the WPF application for .NET Runtime SDK on Surface Pro 4.

最後に公開された状態: March 30, 2018 ArcGIS Runtime SDK
不具合 ID 番号 BUG-000110589
送信されましたJanuary 4, 2018
最終更新日June 5, 2024
適用対象ArcGIS Runtime SDK
見つかったバージョン100.1.0
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスWill Not Be Addressed

参考情報

The reason Collector for Windows is reporting the Course and Speed values is it is a UWP app and is using the Windows 10 Windows.Devices.Geolocation.Geolocator API. By contrast, the ArcGIS Runtime WPF API uses the .NET Framework System.Device.Location.GeoCoordinateWatcher API. There appears to be an underlying issue in System.Device.Location.GeoCoordinateWatcher, which means that the values set is not visible. There are a few reasons for this, such as issues related to driver or a Windows / .NET Framework. You will be able to reproduce this outside of the ArcGIS Runtime by extending the sample for GeoCoordinateWatcher to report Course and Speed values: https://msdn.microsoft.com/en-us/library/system.device.location.geocoordinatewatcher(v=vs.110).aspx. Workarounds: The Windows 10 API will report the values. To retrieve these values in your custom application you have two options: #1. Use the NMEA feed from the GPS instead of using the Windows location service (for an example see https://github.com/dotMorten/NmeaParser/tree/ArcGISLocationProvider). Depending on your requirements, we would typically recommend this approach due to the extra information you can obtain regarding the quality of the position. This is the preferred approach for Collector. #2. Use the Windows 10 API (within the existing WPF application). For more information on accessing Windows 10 APIs from within WPF projects see https://blogs.windows.com/buildingapps/2017/01/25/calling-windows-10-apis-desktop-application. Having referenced the assembly and winmd, you can use the newer API for updates e.g. ``` Geolocator locator = new Windows.Devices.Geolocation.Geolocator(); … locator.PositionChanged += Locator_PositionChanged; … private void Locator_PositionChanged(Windows.Devices.Geolocation.Geolocator sender, Windows.Devices.Geolocation.PositionChangedEventArgs args) { var position = args.Position; var heading = position.Coordinate.Heading; var speed = position.Coordinate.Speed; Debug.WriteLine("Heading: " + heading); Debug.WriteLine("Velocity: " + speed); }); } ```

再現の手順

不具合 ID: BUG-000110589

ソフトウェア:

  • ArcGIS Runtime SDK

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動