Copyright © 2002-2008 Open Geospatial Consortium, Inc. All Rights Reserved.
30
Figure 4 GetPortrayMapCapilities Response
Copyright © 2002-2008 Open Geospatial Consortium, Inc. All Rights Reserved.
31
Figure 5 PortrayMap Request
Copyright © 2002-2008 Open Geospatial Consortium, Inc. All Rights Reserved.
32
Figure 6 PortrayMap Response 15.4.4 Request and Response Pairs for Use Cases
The following are examples of one way to solve the use cases defined in Section 8; they are not the only solutions.
15.4.4.1 Use Case 1 Example
In order to satisfy Use Case 1, the application must acquire a Position ADT for where Joe’s home is located. One way to do this is to have the Geocoder Service geocode his
address, thus determining a Position ADT.
In this example we are asking for: 640x480 image in PNG format
At a scale of 1:20000 In WGS 84 UTM zone 11N EPSG:32611 projection
With a north orientation
Copyright © 2002-2008 Open Geospatial Consortium, Inc. All Rights Reserved.
33 Centered on Joe’s house
Base map will consist of all layers using default style made available by the implementation
The location of Joe’s home will be shown using the default style provided by the implementation
Request:
?xml version=1.0 encoding=UTF-8? PortrayMapRequest
Output width=”640” height=”480” format=”imagepng” gml:Envelope
gml:pos -114.342 50.234
gml:pos gml:pos
-114.123 50.031 gml:pos
gml:Envelope Output
— Ask the impl to exclude no layers thus, create the base map with all your layers
-- Basemap
filter =
Exclude Overlay
Position --
This ADT contains the latlon of Joes House --
Position Overlay
PortrayMapRequest
Response:
?xml version=1.0 encoding=UTF-8? PortrayMapResponse
-- There is an OutputResponse for each Output request in the same order as requested
-- Map
Content width
= 640
height =
480 format
= imagepng
URL http:www.mapseter.comlbsmapshgtr837468.png URL Content
gml:Envelope gml:pos
-114.342 50.234 gml:pos
gml:pos -114.123 50.031
gml:pos gml:Envelope
Map PortrayMapResponse
Copyright © 2002-2008 Open Geospatial Consortium, Inc. All Rights Reserved.
34
15.4.4.2 Use Case 2 Example
A prerequisite for this use case are Position ADTs for Joe’s home and the Hotel. We also need the Route ADT, which shows the route from the home to the hotel. The Route ADT
may be obtained from the Route Service.
Because the route is very large and we want to see it at a detailed scale we will be asking for multiple maps.
We are asking for: N maps centered on different points of the route
640x480 image in PNG format At a scale of 1:80000
In UTM projection With a north orientation
Base map will consist of only the road network and landmarks The base map and the ADTs will be displayed using the “post-modernistic” style
The position of Joe’s House and the Hotel will be drawn on top of the route Request:
PortrayMapRequest Output width=”640” height=”480” format=”imagepng”
gml:Envelope gml:pos
-114.342 50.234 gml:pos
gml:pos -114.123 50.031
gml:pos gml:Envelope
Output Output width=”640” height=”480” format=”imagepng”
gml:Envelope gml:pos
-120.312 48.823 gml:pos
gml:pos -114.123 50.031
gml:pos gml:Envelope
Output Output width=”640” height=”480” format=”imagepng”
gml:Envelope gml:pos
-120.312 48.823 gml:pos
gml:pos -125.235 46.284
gml:pos gml:Envelope
Output --
Multiple more outputs can be request, but I think you get the point : --
Copyright © 2002-2008 Open Geospatial Consortium, Inc. All Rights Reserved.
35
Basemap filter
= Include
Layer name=” Road Network
” Style
Name post-modernistic
Name Style
Layer Layer name=”
Landmarks ”
Style Name
post-modernistic Name
Style Layer
Basemap Overlay
zorder =
RouteGeometry --
This ADT contains the route from Joes Home to the Hotel --
RouteGeometry Style
Name post-modernistic
Name Style
Overlay Overlay
zorder =
1 Position
-- This ADT contains the latlon of Joes House
-- Position
Style Name
post-modernistic Name
Style Overlay
Overlay zorder
= 1
Position --
This ADT contains the latlon of the Hotel --
Position Style
Name post-modernistic
Name Style
Overlay PortrayMapRequest
Response:
PortrayMapResponse --
There is an OutputResponse for each Output request in the same order as requested --
Map Content
width =
640 height
= 480
format =
imagepng URL http:www.mapseter.comlbsmapshgtr837468.png URL
Content Output width=”640” height=”480” format=”imagepng”
gml:Envelope gml:pos
-114.342 50.234 gml:pos
gml:pos -114.123 50.031
gml:pos gml:Envelope