public override SpatialReference GetSpatialReference()
Public Overrides Function GetSpatialReference() As SpatialReference
public override SpatialReference GetSpatialReference()
Public Overrides Function GetSpatialReference() As SpatialReference
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run |
bool isConnected = DeviceLocationService.Instance.IsDeviceConnected(); var src = DeviceLocationService.Instance.GetSource(); if (src is SerialPortDeviceLocationSource serialPortSrc) { var port = serialPortSrc.ComPort; var antennaHeight = serialPortSrc.AntennaHeight; var dataBits = serialPortSrc.DataBits; var baudRate = serialPortSrc.BaudRate; var parity = serialPortSrc.Parity; var stopBits = serialPortSrc.StopBits; // retrieving spatial reference needs the MCT var sr = await QueuedTask.Run(() => { return serialPortSrc.GetSpatialReference(); }); } var dlProps = DeviceLocationService.Instance.GetProperties(); var accuracy = dlProps.AccuracyThreshold;
Target Platforms: Windows 11, Windows 10