getMapData
Receiving raster map fragment in required format and putting graphic data on this fragment.
Request's scheme
Parameters
| Parameter |
Description |
<authority> |
contains unique identifier that defines access level to the service. |
<database> |
database name to which inquiry is made. |
<view> |
type of representation of cartographical information. If it is absent, MainView will be used. |
<rectangle> |
package containing fragment of frame of surface which should be displayed. |
<objects> |
package containing one and more objects with specified identifiers. Each object is marked. |
<points> |
package containing one and more points with specified coordinates. Magnitude of attribute «icon» indicates ID
of systemic icon (see. getSystemIcons). |
<polyline> |
contains not less than two points along which the line will be drawn. It may include width and scale attributes.
If scale will be equal to «true» magnitude, «width» will be represented in meters or in pixels not
depending on the scale. |
<width>, <height> |
width and height (in pixel) of image fragment where specified surface area should be included. |
<format> |
format of displayed image can have the following values: JPG, PNG, GIF, BMP. |
<watermark> |
watermark. |
<url> |
way to the file of mask, black color will be transparent, if there is no parameter or file read error and «watermark» is ignored. |
<transparent> |
identifes transparency within 0 and 255 (0 - transparent), 128 - default value |
<outtype> |
may contain two values «multiple» and «single». If there is any, «single» will be used. |
<outpoint> |
has «x» and «y» attributes. If there is no such attributes, «watermark» will
be put in the centre of fragment
(it shall be ignored if «multiple» output mode is installed). |
Examples
Request
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<request>
<authority key="AUTHORITYKEY"/>
<method name="getMapData"/>
<parameters>
<database>World_ru</database>
<rectangle
max_lat="50.590690"
max_lng="30.825643"
min_lat="50.213278"
min_lng="30.236488"/>
<image>
<width>550</width>
<height>320</height>
<format>PNG</format>
</image>
</parameters>
</request>
Response
|