Hi there. I've to add a point (based on degrees, minutes and seconds notation) on a map. I've done in this way, but the point is always drawn in the bottom of the map and the existing layer are made small.
VectorLayer layPunti = new VectorLayer("LayerPunti"); List<SharpMap.Geometries.Geometry> pti = new List<SharpMap.Geometries.Geometry>();
Point p = Point.FromDMS(40,38,10,17,58,58); System.Drawing.PointF q = map.WorldToImage(p);
pti.Add(p);
layPunti.DataSource = new GeometryProvider(pti); layPunti.Style.Symbol = new Bitmap("bitmap");
map.Layers.Add(layPunti); map.ZoomToExtents();
I've also try to change the point coordinates, but there aren't any changes Can someone help me?Thanks.
Hi codewithhart, my problem is this: I've got a map with only a layer. The user insert a point coordinates and my web application have to show this point on the map. My application shows the point on the map, but I've the point in the bottom and the existing layer that are made very very small and take place in high.
I know that my first problem is that my only layer takes its informations from a shapefile with Gauss-Boaga coordinate system, while the point is in WGS84 notation. Thus I think that I've to do something like this: