Envelope Example - C#
The following shows a C# example that returns an Envelope object.
public static Envelope buildEnvelope()
{
Envelope envelope = new Envelope();
envelope.srsName = "EPSG:4326";
//set the startPoint
Pos[] Pos = new Pos[2];
Pos[0] = new Pos();
Pos[0].X = -75.44;
Pos[0].Y = 45.66;
//set the endPoint.
Pos[1] = new Pos();
Pos[1].X = -73.44;
Pos[1].Y = 48.66;
envelope.Pos = Pos;
return envelope;
}