Базовая информация о слое
Метод: GET http://maps.kosmosnimki.ru/rest/ver1/layers/{Id}/info
Данные для создания должны быть предварительно залиты на сайт.
Это асинхронный запрос. Процесс создания слоя может занять продолжительное время.
Параметры запроса
apikey (тип: string )
Api ключ для авторизации. Вместо ключа могут использоваться куки или другие методы авторизации. Об авторизации.
Id (тип: string , обязательный параметр)
Идентификатор слоя
Примеры ответов сервера
Запрос
http://maps.kosmosnimki.ru/rest/ver1/layers/A9C7A97D0F2C4261B49B064B2B55A35E/info?&apikey=api_key
Ответ.
Статус: 200
{
"properties" : {
"Access" : "edit",
"name" : "A9C7A97D0F2C4261B49B064B2B55A35E",
"title" : "tilestemp_2",
"description" : "",
"Copyright" : "",
"Owner" : "LayerManager",
"MetaProperties" : {
},
"LayerVersion" : 0,
"LayerID" : "A9C7A97D0F2C4261B49B064B2B55A35E",
"type" : "Raster",
"date" : "2017-03-16",
"Legend" : "",
"MinZoom" : 0,
"MaxZoom" : 4,
"RasterPath" : "workfolderUserFolderLayerManager 85ce4ae9MapsDefaultMapкривой растрtilestemp_2.tiles"
},
"geometry" : {
"type" : "Polygon",
"coordinates" : [
[
[
-179.9999999,
85.0511288
],
[
-157.5,
85.0511288
],
[
-112.5,
85.0511288
],
[
180,
85.0511288
],
[
180,
-74.0195433
],
[
-112.5,
-74.0195433
],
[
-157.5,
-74.0195433
],
[
-179.9999999,
-74.0195433
],
[
-180,
-74.0195433
],
[
-180,
85.0511288
],
[
-179.9999999,
85.0511288
]
]
]
}
}
Запрос
http://maps.kosmosnimki.ru/rest/ver1/layers/477A0437134246D8B64288105C96511E/info?&apikey=api_key
Ответ.
Статус: 200
{
"properties" : {
"Access" : "edit",
"name" : "477A0437134246D8B64288105C96511E",
"title" : "576",
"description" : "",
"Copyright" : "",
"Owner" : "LayerManager",
"MetaProperties" : {
},
"LayerVersion" : 2,
"LayerID" : "477A0437134246D8B64288105C96511E",
"type" : "Vector",
"date" : "2016-12-12",
"Legend" : null,
"EncodeSource" : null,
"VtMinZoom" : 6,
"VtMaxZoom" : 6,
"MinZoom" : 6,
"MaxZoom" : 6,
"identityField" : "gmx_id",
"NameObject" : "",
"tilesOrder" : [
"X",
"Y",
"Z",
"V"
],
"tilesSimple" : [
1,
0,
2,
10,
5,
2,
4,
10,
23,
8,
6,
10,
6,
2,
4,
10
],
"tiles" : [
46,
16,
7,
47,
16,
7,
46,
17,
7,
47,
17,
7,
23,
9,
6,
24,
8,
6,
24,
9,
6
],
"tilesVers" : [
7,
7,
7,
7,
7,
7,
7
],
"GeometryType" : "Polygon",
"attributes" : [
"Name",
"OBJECTID",
"government",
"COUNTRY",
"TYPE_NL",
"NAME_E",
"Shape_Length",
"S",
"YEAR_",
"Location",
"PROV_NL",
"PROVINCE_E",
"FID_Pa_eco",
"NAME_R",
"Updated",
"Shape_Area",
"TYPE_E",
"SubGovernm",
"KN",
"gml_id",
"Doc",
"ShortName",
"AREA_DOC",
"Id",
"kkk",
"dd"
],
"attrTypes" : [
"string",
"integer",
"string",
"string",
"string",
"string",
"float",
"float",
"integer",
"string",
"string",
"string",
"integer",
"string",
"string",
"float",
"string",
"string",
"string",
"string",
"string",
"string",
"float",
"float",
"string",
"datetime"
]
},
"geometry" : {
"type" : "Polygon",
"coordinates" : [
[
[
130.3930908,
42.2933656
],
[
130.3930908,
47.4086874
],
[
138.7048797,
47.4086874
],
[
138.7048797,
42.2933656
],
[
130.3930908,
42.2933656
]
]
]
}
}
Запрос
http://maps.kosmosnimki.ru/rest/ver1/layers/2A276A808D17490AAC06E96FF7F345FD/info?&apikey=api_key
Ответ.
Статус: 200
{
"properties" : {
"Access" : "edit",
"name" : "2A276A808D17490AAC06E96FF7F345FD",
"title" : "Table_xy_date",
"description" : "",
"Copyright" : "",
"Owner" : "LayerManager",
"MetaProperties" : {
},
"LayerVersion" : 3,
"LayerID" : "2A276A808D17490AAC06E96FF7F345FD",
"type" : "Vector",
"date" : "2017-03-04",
"Legend" : null,
"EncodeSource" : null,
"VtMinZoom" : 1,
"VtMaxZoom" : 1,
"MinZoom" : 1,
"MaxZoom" : 1,
"identityField" : "id",
"NameObject" : "",
"tiles" : [
],
"tilesVers" : [
],
"TemporalTiles" : [
[
1,
13576,
0,
0,
1
],
[
1,
13575,
0,
0,
1
],
[
1,
13574,
0,
0,
1
],
[
4,
3394,
0,
0,
1
],
[
4,
3393,
0,
0,
1
],
[
16,
848,
0,
0,
1
]
],
"TemporalVers" : [
9,
9,
9,
9,
9,
9
],
"Temporal" : true,
"maxShownPeriod": 0,
"TemporalPeriods" : [
1,
4,
16
],
"ZeroDate" : "1980-01-01",
"TemporalColumnName" : "dt",
"DateBegin" : "2017-03-01",
"DateEnd" : "2017-03-03",
"DateBeginUTC" : "2017-03-01 00:00:00",
"DateEndUTC" : "2017-03-03 00:00:00",
"GeometryType" : "Point",
"attributes" : [
"x",
"y",
"dt",
"name"
],
"attrTypes" : [
"float",
"float",
"datetime",
"string"
]
},
"geometry" : {
"type" : "Polygon",
"coordinates" : [
[
[
10.0000001,
3.9999998
],
[
10.0000001,
54.9999998
],
[
63.0000003,
54.9999998
],
[
63.0000003,
3.9999998
],
[
10.0000001,
3.9999998
]
]
]
}
}