ywang2007

Integrate GPS in application but having projection issue

Discussion created by ywang2007 on Sep 5, 2012
Latest reply on Sep 6, 2012 by miripsystematics-co-il-esridist
We just downloaded and started to use the Runtime SDK for WPF because of it's GPS capabilities. The following code works fine using ESRI's basemap tpk which is in WGS84 but not ours which is in NAD83 feet. So does the locationwatcher only work with WGS84? Is there a workaround for this? I could write code to convert each GPS point then add it to a graphics layer but it'd defeat the whole purpose of using, and purchasing deployment licenses, the Runtime SDK. Thanks in advance!

        SerialPortGpsCoordinateWatcher _locationWatcher;
        public MainWindow()
        {
            InitializeComponent();
            LocalServer.Initialize();
            _locationWatcher = new SerialPortGpsCoordinateWatcher() { PortName = COM# };
            MyGpsLayer.GeoPositionWatcher = _locationWatcher;
        }

Outcomes