TerraService
Click here for a complete list of operations.
GetAreaFromRect
Test
The test form is only available for requests from the local machine.SOAP
The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.
POST /TerraService.asmx HTTP/1.1
Host: terraserver.microsoft.net
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://terraserver-usa.com/terraserver/GetAreaFromRect"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetAreaFromRect xmlns="http://terraserver-usa.com/terraserver/">
<upperLeft>
<Lon>double</Lon>
<Lat>double</Lat>
</upperLeft>
<lowerRight>
<Lon>double</Lon>
<Lat>double</Lat>
</lowerRight>
<theme>Photo or Topo or Relief</theme>
<scale>Scale1mm or Scale2mm or Scale4mm or Scale8mm or Scale16mm or Scale32mm or Scale63mm or Scale125mm or Scale250mm or Scale500mm or Scale1m or Scale2m or Scale4m or Scale8m or Scale16m or Scale32m or Scale64m or Scale128m or Scale256m or Scale512m or Scale1km or Scale2km or Scale4km or Scale8km or Scale16km</scale>
</GetAreaFromRect>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetAreaFromRectResponse xmlns="http://terraserver-usa.com/terraserver/">
<GetAreaFromRectResult>
<NorthWest>
<TileMeta>
<Id xsi:nil="true" />
<TileExists>boolean</TileExists>
<NorthWest xsi:nil="true" />
<NorthEast xsi:nil="true" />
<SouthWest xsi:nil="true" />
<SouthEast xsi:nil="true" />
<Center xsi:nil="true" />
<Capture>dateTime</Capture>
</TileMeta>
<Offset>
<Point xsi:nil="true" />
<XOffset>int</XOffset>
<YOffset>int</YOffset>
</Offset>
</NorthWest>
<NorthEast>
<TileMeta>
<Id xsi:nil="true" />
<TileExists>boolean</TileExists>
<NorthWest xsi:nil="true" />
<NorthEast xsi:nil="true" />
<SouthWest xsi:nil="true" />
<SouthEast xsi:nil="true" />
<Center xsi:nil="true" />
<Capture>dateTime</Capture>
</TileMeta>
<Offset>
<Point xsi:nil="true" />
<XOffset>int</XOffset>
<YOffset>int</YOffset>
</Offset>
</NorthEast>
<SouthWest>
<TileMeta>
<Id xsi:nil="true" />
<TileExists>boolean</TileExists>
<NorthWest xsi:nil="true" />
<NorthEast xsi:nil="true" />
<SouthWest xsi:nil="true" />
<SouthEast xsi:nil="true" />
<Center xsi:nil="true" />
<Capture>dateTime</Capture>
</TileMeta>
<Offset>
<Point xsi:nil="true" />
<XOffset>int</XOffset>
<YOffset>int</YOffset>
</Offset>
</SouthWest>
<SouthEast>
<TileMeta>
<Id xsi:nil="true" />
<TileExists>boolean</TileExists>
<NorthWest xsi:nil="true" />
<NorthEast xsi:nil="true" />
<SouthWest xsi:nil="true" />
<SouthEast xsi:nil="true" />
<Center xsi:nil="true" />
<Capture>dateTime</Capture>
</TileMeta>
<Offset>
<Point xsi:nil="true" />
<XOffset>int</XOffset>
<YOffset>int</YOffset>
</Offset>
</SouthEast>
<Center>
<TileMeta>
<Id xsi:nil="true" />
<TileExists>boolean</TileExists>
<NorthWest xsi:nil="true" />
<NorthEast xsi:nil="true" />
<SouthWest xsi:nil="true" />
<SouthEast xsi:nil="true" />
<Center xsi:nil="true" />
<Capture>dateTime</Capture>
</TileMeta>
<Offset>
<Point xsi:nil="true" />
<XOffset>int</XOffset>
<YOffset>int</YOffset>
</Offset>
</Center>
<NearestPlace>string</NearestPlace>
<OverlappingThemeInfos>
<OverlappingThemeInfo>
<LocalTheme>boolean</LocalTheme>
<Theme>Photo or Topo or Relief</Theme>
<Point xsi:nil="true" />
<ThemeName>string</ThemeName>
<Capture>dateTime</Capture>
<ProjectionId>Geographic or UtmNad27 or UtmNad83</ProjectionId>
<LoScale>Scale1mm or Scale2mm or Scale4mm or Scale8mm or Scale16mm or Scale32mm or Scale63mm or Scale125mm or Scale250mm or Scale500mm or Scale1m or Scale2m or Scale4m or Scale8m or Scale16m or Scale32m or Scale64m or Scale128m or Scale256m or Scale512m or Scale1km or Scale2km or Scale4km or Scale8km or Scale16km</LoScale>
<HiScale>Scale1mm or Scale2mm or Scale4mm or Scale8mm or Scale16mm or Scale32mm or Scale63mm or Scale125mm or Scale250mm or Scale500mm or Scale1m or Scale2m or Scale4m or Scale8m or Scale16m or Scale32m or Scale64m or Scale128m or Scale256m or Scale512m or Scale1km or Scale2km or Scale4km or Scale8km or Scale16km</HiScale>
<Url>string</Url>
</OverlappingThemeInfo>
<OverlappingThemeInfo>
<LocalTheme>boolean</LocalTheme>
<Theme>Photo or Topo or Relief</Theme>
<Point xsi:nil="true" />
<ThemeName>string</ThemeName>
<Capture>dateTime</Capture>
<ProjectionId>Geographic or UtmNad27 or UtmNad83</ProjectionId>
<LoScale>Scale1mm or Scale2mm or Scale4mm or Scale8mm or Scale16mm or Scale32mm or Scale63mm or Scale125mm or Scale250mm or Scale500mm or Scale1m or Scale2m or Scale4m or Scale8m or Scale16m or Scale32m or Scale64m or Scale128m or Scale256m or Scale512m or Scale1km or Scale2km or Scale4km or Scale8km or Scale16km</LoScale>
<HiScale>Scale1mm or Scale2mm or Scale4mm or Scale8mm or Scale16mm or Scale32mm or Scale63mm or Scale125mm or Scale250mm or Scale500mm or Scale1m or Scale2m or Scale4m or Scale8m or Scale16m or Scale32m or Scale64m or Scale128m or Scale256m or Scale512m or Scale1km or Scale2km or Scale4km or Scale8km or Scale16km</HiScale>
<Url>string</Url>
</OverlappingThemeInfo>
</OverlappingThemeInfos>
</GetAreaFromRectResult>
</GetAreaFromRectResponse>
</soap:Body>
</soap:Envelope>