<tiles_uri>/dataimport[.<format>]? dataType=SMTILES
<tiles_uri>/dataimport[.<format>]? dataType=GEOPACKAGE
The dataimport resource can be used to upload cache tiles to DataStore. By sending POST request to dataimport resource, you can upload tiles file to DataStore. The supported tiles types so far include: smtiles、geopackage。
Supported Methods:
Supported output formats: rjson, json, html, xml.
Implement the HTTP request on the following URI, where supermapiserver is the server name, with rjson being the output format.
http://supermapiserver:8090/iserver/services/datacatalog/rest/datacatalog/tiles/dataimport.rjson
Executes upload to put tiles file in DataStore.
Following arguments need to be contained in URI:
Name | Type | Description |
dataType | String | [Required] File of the following type: SMTILES、GEOPACKAGE。 |
Executes POST request on dataimport resource. The response arguments are as follows:
Field | Type | Description |
newResourceID | String | Id generated by importing cache tiles data package. |
newResourceLocation | String | URL generated by importing cache tiles data package. |
succeed | String | Whether it's successful to import data. |
The returned rjson format representation after implementing the GET request on the dataimport resource http://supermapiserver:8090/iserver/services/datacatalog/rest/datacatalog/tiles/dataimport.rjson?dataType=SMTILES is as follows:
{
"newResourceID": "9accb6389acc9db1fa31e6dec77b3e8b_8a8c2b83_6ff8_4694_9e8e_4a31e62887d5"
"newResourceLocation": "http://supermapiserver:8090/iserver/services/datacatalog/rest/datacatalog/tiles/datas/9accb6389acc9db1fa31e6dec77b3e8b_8a8c2b83_6ff8_4694_9e8e_4a31e62887d5"
"succeed": True
}
The returned rjson format representation after implementing the GET request on the dataimport resource http://supermapiserver:8090/iserver/services/datacatalog/rest/datacatalog/tiles/dataimport.rjson?dataType=GEOPACKAGE is as follows:
{
"newResourceID": "9accb6389acc9db1fa31e6dec77b3e8b_c26bdfbb_4708_4e5a_8062_a80cf7fba464"
"newResourceLocation": "http://supermapiserver:8090/iserver/services/datacatalog/rest/datacatalog/tiles/datas/9accb6389acc9db1fa31e6dec77b3e8b_c26bdfbb_4708_4e5a_8062_a80cf7fba464"
"succeed": True
}
Asks for the response identical to the one that would correspond to a GET request, but without the response body. This is useful for retrieving meta-information contained in response headers, without having to transport the entire content. The meta-information includes the media-type, content-encoding, transfer-encoding, content-length, etc.
HEAD request can be used to check whether the dataimport resource exists, or whether the client has the permission to access it. It can also determine if the dataimport resource supports an output format <format> if performed on a URI with .<format> included.