Display GPS data

4188
1
03-02-2015 05:38 AM
ClemensHoffmann
New Contributor

Hello,

I have some GPS coordinates which I want to display in a map.

I downloaded ArcGIS Runtime SDK for DotNet 1025

and created a sample application.

I can display a map in a WPF aplication.

I am searching for some time but did not find how to navigate to a given position.

I did the same uing the Bing Map control.

There it is pretty simple:

this.LocalMap.Center = new Location(position.Latitude, position.Longitude);

Is there somethis similar in Arc GIS?

greetings

      Clemens

0 Kudos
1 Reply
ClemensHoffmann
New Contributor

Hallo,

I figured it out mayself.

GeometryEngine.Project is doing the job

The GPS coordinates for Parque Jose Marin in Cinefuegos has

a lattitude of -80.4531737 and a longitude of 22.1459153.

The GPS MapPoint is new MapPoint(-80.4531737, 22.1459153, SpatialReferences.Wgs84)

The GPS location is converted using GeometryEngine.Project

MapPoint mapped = GeometryEngine.Project(location, SpatialReferences.WebMercator) as MapPoint;

The mapped point can be used to create a marker and to set the position.

greetings

      Clemens Hoffmann

0 Kudos