Exemplo n.º 1
0
		public static void main(string[] args)
		{
			// create a factory using default values (e.g. floating precision)
			GeometryFactory fact = new GeometryFactory();
			
			IPoint p1 = fact.CreatePoint(new Coordinate(0, 0));
			Console.WriteLine(p1);
			
			IPoint p2 = fact.CreatePoint(new Coordinate(1, 1));
			Console.WriteLine(p1);
			
			IMultiPoint mpt = fact.CreateMultiPoint(new ICoordinate[]{ new Coordinate(0, 0), new Coordinate(1, 1), });
			Console.WriteLine(mpt);
		}
Exemplo n.º 2
0
 internal static MultiPoint ToNTSMultiPoint(Geometries.MultiPoint multiPoint,
                                            GeometryFactory factory)
 {
     GisSharpBlog.NetTopologySuite.Geometries.Point[] points =
         new GisSharpBlog.NetTopologySuite.Geometries.Point[multiPoint.Points.Count];
     int index = 0;
     foreach (Point point in multiPoint.Points)
         points[index++] = ToNTSPoint(point, factory);
     return factory.CreateMultiPoint(points) as MultiPoint;
 }