Select to view content in your preferred language

Integrate GPS in application but having projection issue

562
1
09-05-2012 04:53 AM
Labels (1)
YanWang
Emerging Contributor
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;
        }
0 Kudos
1 Reply
MiriRevivo
Deactivated User
Hi,

It's supposed to work in the described scenario, take a look at the GPS Layer help page, they're also demonstrating it using a tiled layer with Web Mercator spatial reference:

http://resources.arcgis.com/en/help/runtime-wpf/concepts/index.html#/How_to_use_a_GPS_for_WPF/017000...

Try with that same basemap, and if your GPS layer works with it, you might have a problem with the TPK you've created.
0 Kudos