This code demonstrates the method for declaring a new coordinate and creating a point from that coordinate.

using DotSpatial.Topology;
using DotSpatial.Common;

        private void btnCoord_Click(object sender, EventArgs e)
            //creates a new coordinate 
            Coordinate c = new Coordinate(2.4, 2.4);
            //passes the coordinate to a new point
            DotSpatial.Topology.Point p = new DotSpatial.Topology.Point(c);
            //displayes the new point's x and y coordiantes
            MessageBox.Show("Point p is: x= " + p.X + " & y= "  + p.Y);    

Last edited May 20, 2015 at 7:42 PM by mbayles, version 5