MultiPoint Example - C#

The following shows a C# example that returns a MultiPoint object.


public static MultiPoint buildMultiPoint()
{
    MultiPoint multiPoint = new MultiPoint();
    multiPoint.srsName = "EPSG:4326";
    Point[] point = new Point[2];
    point[0] = new Point();
    point[0].srsName = "EPSG:4326";
    Pos Pos = new Pos();
    Pos.X = -75.44;
    Pos.Y = 45.66;
    point[0].Pos = Pos;
    point[1] = new Point();
    point[1].srsName = "EPSG:4326";
    Pos Pos1 = new Pos();
    Pos1.X = -73.44;
    Pos1.Y = 43.66;
    point[1].Pos = Pos1;
    multiPoint.Point = point;
    return multiPoint;
}