Инструменты пользователя

Инструменты сайта


ru:airlay:dataloader

Различия

Показаны различия между двумя версиями страницы.

Ссылка на это сравнение

Предыдущая версия справа и слева Предыдущая версия
Следующая версия
Предыдущая версия
Следующая версия Следующая версия справа и слева
ru:airlay:dataloader [2019/06/26 15:19]
Рыков Павел [Коды ошибок]
ru:airlay:dataloader [2020/08/20 15:59]
Максим [Коды ошибок]
Строка 7: Строка 7:
 <code javascript> <code javascript>
 api type: POST api type: POST
-/api/v2/dataLoader/send+/api/v3/dataLoader/send
 //headers// //headers//
 Authorization: Bearer YOUR_TOKEN Authorization: Bearer YOUR_TOKEN
Строка 13: Строка 13:
 //body// //body//
 body : string(данные для отправки) body : string(данные для отправки)
 +dataSetId : string(id dataSet)
  
-//return//+//return// возвращает id лога
 Корректная отправка Корректная отправка
 { {
     "status": 200,     "status": 200,
-    "message": "OK",+    "message": "5d2*******d0c80",
     "code": 0     "code": 0
 } }
Строка 43: Строка 44:
 <code javascript> <code javascript>
 id = logId id = logId
-/api/v3/log/get+format = json 
 +/api/v3/logs/get
 { {
     "time" : "2019-06-24T05:48:57.000Z",     "time" : "2019-06-24T05:48:57.000Z",
Строка 64: Строка 66:
 1. Блок "Модуль загрузки" отвечает за создание нового модуля с указанием имени `/api/dataLoader/create`. 1. Блок "Модуль загрузки" отвечает за создание нового модуля с указанием имени `/api/dataLoader/create`.
  
-2. Блок "Дополнительные конфигурации". Данный блок содержит настройки места отправки "Хранилище данных\DataSet" и "Тип отправляемых данных". Можно выбрать "Устройства\location", "Статичные\Static". Формат данных для "Static" [[ru:airlay:importformat|Описание формата загрузки и выгрузки ]], формат данных для location [[ru:dsp:formats:processing_client_http_backend|формат location]].+2. Блок "Дополнительные конфигурации". Данный блок содержит настройки места отправки "Хранилище данных\DataSet" и "Тип отправляемых данных". Можно выбрать "Устройства\location", "Статичные\Static". Формат данных для "Static" [[ru:airlay:importformat|Описание формата загрузки и выгрузки ]], формат данных для location [[ru:formats:processing_client_http_backend|формат location]].
  
 3. Блоке "Список токенов" содержит в себе список доступных для заданного DataLoader-а токенов. При необходимости можно запросить новый токен указав имя для него. 3. Блоке "Список токенов" содержит в себе список доступных для заданного DataLoader-а токенов. При необходимости можно запросить новый токен указав имя для него.
Строка 70: Строка 72:
 4. Блок "Способ отправки данных" содержит форму запроса к API. 4. Блок "Способ отправки данных" содержит форму запроса к API.
 ==== Коды ошибок ==== ==== Коды ошибок ====
 +
 +=== Ошибки загурзки ===
 +
 +  * 1 Invalid dataSet id
 +  * 2 File not parsed
 +  * 3 Icon not updated
 +  * 4 Data set log not found
 +  * 5 Invalid DataSet Type 
 +  * 6 Save error
 +
 +=== Import data ===
 +  * 101 Invalid input data
 +  * 102 Invalid feature
 +  * 103 Object not delete. Unique field not set
 +  * 104 Object not delete. Object not found
 +  * 105 Coordinates must be is numeric
 +
 === relation === === relation ===
-  *   201 Relation properties not exists +  * 201 Relation properties not exists 
-  *   202 Relation members not exists +  * 202 Geometry cannot be built. Relation coordinates not exists 
-  *   203 Relation geometryType not exists+  * 203 Relation geometryType not exists 
 +  * 204 Relation has no members
  
 === member === === member ===
-  * 301 'Member not found. Id +  * 300 Member not found. Id 
-  * 302 'Node not found'+  * 301 Node not found 
 +  * 302 Way not found
   * 303 Invalid member type   * 303 Invalid member type
   * 304 One relation members expected for polygon   * 304 One relation members expected for polygon
   * 305 Three or more node members expected for polygon   * 305 Three or more node members expected for polygon
   * 306 Impossible to build the geometry of different types   * 306 Impossible to build the geometry of different types
-  * 307 One relation member is expected for a point +  * 307 One and more relation member is expected for a multi point 
-[geometry] +  * 308 Master feature for dependent dataset not found  
-401 Geometry type point is expected for Point relation +  * 309 One relation member is expected for Point  
-402 Geometry type Point or LineString is expected for a LineString. + 
-403 Invalid geometry, is not array +=== geometry === 
-404 Invalid geometry, coordinates must contain one pair/triplet of coordinates +  * 400 Relation not found 
-405 Invalid geometry, incorrect longitude value +  * 401 Impossible merge two types of geometry 
-405 Invalid geometry, incorrect latitude value +  * 402 Impossible convert type of geometry 
-406 Invalid geometry, the lineString must consist of 2 or more points +  403 Invalid geometry, is not array 
-407 Invalid geometry, duplicate points in line: +  404 Invalid geometry, coordinates must contain one pair/triplet of coordinates 
-408 Invalid geometry, the polygon must consist of 4 or more points: +  405 Invalid geometry, incorrect longitude value  
-409 Invalid geometry, the polygon is not closed +  405 Invalid geometry, incorrect latitude value 
-410 Polygon crosses itself+  406 Invalid geometry, the lineString must consist of 2 or more points 
 +  407 Invalid geometry, duplicate points in line 
 +  408 Invalid geometry, the polygon must consist of 4 or more points 
 +  409 Invalid geometry, the polygon is not closed 
 +  410 Invalid geometry, the polygon must consist at least one LinearRing 
 +  * 411 Invalid geometry, the LinearRing must consist of 3 or more Points 
 +  * 412 Invalid geometry, the MultiLineSting must consist of 1 or more Lines 
 +  * 413 Invalid geometry, the MultiPoint must consist of 1 or more Points 
 +  * 414 Invalid geometry, the MultiPolygon must consist of 1 or more Polygons 
 +  * 415 Invalid geometry, the MultiPolygon has self intersection 
 +  * 416 Invalid geometry, the Bbox must consist of 1 or more coordinates 
 +  * 417 Nested GeometryCollection is not supported 
 +  * 418 Polygon crosses itself 
 +  * 419 Invalid geometry type 
 +  * 420 Empty geometry coordinates 
 +  * 421 Exceeded the maximum length 
 +  * 422 Invalid update properties strategy 
 +  * 423 Invalid geometry type for combining 
 +  * 424 Empty geometry geometries
ru/airlay/dataloader.txt · Последнее изменение: 2021/05/17 20:59 — Лев