debian/bullseye
|
Last change
on this file since d660d75 was d660d75, checked in by Joachim Langenbach <joachim.langenbach@…>, 6 years ago |
|
Added all generated code to the soruce tree, to avoid generation during package build time
|
-
Property mode
set to
100644
|
|
File size:
1.1 KB
|
| Line | |
|---|
| 1 | import connexion
|
|---|
| 2 | import six
|
|---|
| 3 |
|
|---|
| 4 | from gnuboat.deviceservice.models.http_error import HttpError # noqa: E501
|
|---|
| 5 | from gnuboat.deviceservice import util
|
|---|
| 6 | from gnuboat.deviceservice_impl.controllers import device_maps_controller
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 | def maps_get(): # noqa: E501
|
|---|
| 10 | """maps_get
|
|---|
| 11 |
|
|---|
| 12 | Get a list of currently installed maps # noqa: E501
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 | :rtype: List[Dict]
|
|---|
| 16 | """
|
|---|
| 17 | return device_maps_controller.maps_get()
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 | def maps_tile_get(mapname, zoom, x_tile, y_tile): # noqa: E501
|
|---|
| 21 | """maps_tile_get
|
|---|
| 22 |
|
|---|
| 23 | Get tiles of a map with help of it's tiles urls # noqa: E501
|
|---|
| 24 |
|
|---|
| 25 | :param mapname: Map basename
|
|---|
| 26 | :type mapname: str
|
|---|
| 27 | :param zoom: Zoomlevel
|
|---|
| 28 | :type zoom: int
|
|---|
| 29 | :param x_tile: Number of the tile in x dimension
|
|---|
| 30 | :type x_tile: int
|
|---|
| 31 | :param y_tile: Number of the tile in y dimension
|
|---|
| 32 | :type y_tile: int
|
|---|
| 33 |
|
|---|
| 34 | :rtype: file
|
|---|
| 35 | """
|
|---|
| 36 | return device_maps_controller.maps_tile_get(mapname, zoom, x_tile, y_tile)
|
|---|
| 37 |
|
|---|
| 38 |
|
|---|
| 39 | def maps_upload(body): # noqa: E501
|
|---|
| 40 | """maps_upload
|
|---|
| 41 |
|
|---|
| 42 | Upload a new mbtiles file as a new map # noqa: E501
|
|---|
| 43 |
|
|---|
| 44 | :param body:
|
|---|
| 45 | :type body: str
|
|---|
| 46 |
|
|---|
| 47 | :rtype: List[Dict]
|
|---|
| 48 | """
|
|---|
| 49 | return device_maps_controller.maps_upload(body)
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.