Share via


LatLongRectangle.Southwest Property

The latitude and longitude coordinates (LatLong object) for the southwest corner of a minimum bounding rectangle.

Public Dim Southwest As
  [Namespace].LatLong
    Member of [Namespace].LatLongRectangle
[C#]
public [Namespace].LatLong Southwest
    Member of [Namespace].LatLongRectangle

Remarks

  • The Southwest property latitude coordinate (LatLong.Latitude property) must be less than or equal to the Northeast property latitude coordinate.

Example

 
[Visual Basic] 
'This example assumes that the service instance 
''renderService' has already been created and that 
'the MapPoint Web Service namespace has been imported 

'Get a map using a bounding rectangle
Dim myViews(0) As ViewByBoundingRectangle
myViews(0) = New ViewByBoundingRectangle()
myViews(0).BoundingRectangle = New LatLongRectangle()
myViews(0).BoundingRectangle.Northeast = New LatLong()
myViews(0).BoundingRectangle.Southwest = New LatLong()
myViews(0).BoundingRectangle.Northeast.Latitude = 41
myViews(0).BoundingRectangle.Northeast.Longitude = -121
myViews(0).BoundingRectangle.Southwest.Latitude = 40
myViews(0).BoundingRectangle.Southwest.Longitude = -122

Dim mapSpec As New MapSpecification()
mapSpec.DataSourceName = "MapPoint.NA"
mapSpec.Views = myViews

Dim mapImages() As MapImage
mapImages = renderService.GetMap(mapSpec)

 
[C#]
//This example assumes that the service instance 
//'renderService' has already been created and that 
//the MapPoint Web Service namespace has been imported 

//Get a map using a bounding rectangle
ViewByBoundingRectangle[] myViews = new ViewByBoundingRectangle[1];
myViews[0] = new ViewByBoundingRectangle();
myViews[0].BoundingRectangle = new LatLongRectangle();
myViews[0].BoundingRectangle.Northeast = new LatLong();
myViews[0].BoundingRectangle.Southwest = new LatLong();
myViews[0].BoundingRectangle.Northeast.Latitude = 41;
myViews[0].BoundingRectangle.Northeast.Longitude = -121;
myViews[0].BoundingRectangle.Southwest.Latitude = 40;
myViews[0].BoundingRectangle.Southwest.Longitude = -122;

MapSpecification mapSpec  = new MapSpecification();
mapSpec.DataSourceName = "MapPoint.NA";
mapSpec.Views = myViews;

MapImage[] mapImages;
mapImages = renderService.GetMap(mapSpec);

 

See Also

LatLongRectangle Class | LatLong Class | LatLong.Latitude Property | LatLongRectangle.Northeast Property