Wiki source code of Экспорт/импорт геообъектов
Version 10.1 by Андрей Калиновский on 2023/02/26 23:12
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | (% style="font-size: 13.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Экспорт | ||
| 2 | |||
| 3 | (% style="line-height:1.38" %) | ||
| 4 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Экспорт полей – быстрый способ выгрузки полей во внешний источник. В роли внешнего источника выступает набор shape-файлов. Для экспорта необходимо выбрать поля в дереве. Результат экспорта сохраняется в архив формата 7z. | ||
| 5 | |||
| 6 | [[image:image-20230226225439-1.png||height="164" width="440"]] | ||
| 7 | |||
| 8 | |||
| 9 | (% style="line-height:1.38" %) | ||
| 10 | (% style="font-size: 13.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Импорт | ||
| 11 | |||
| 12 | (% style="line-height:1.38" %) | ||
| 13 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Импорт полей – быстрый способ загрузки полей из внешнего источника. В роли внешнего источника могут выступать файлы формата csv, kml или набор shape-файлов. Процесс Импорта состоит из 4 шагов: | ||
| 14 | |||
| 15 | |||
| 16 | (% style="line-height:1.38" %) | ||
| 17 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Шаг 1. Выбор источника данных: | ||
| 18 | |||
| 19 | (% style="line-height:1.38" %) | ||
| 20 | [[image:image-20230226230121-2.png||height="424" width="617"]] | ||
| 21 | |||
| 22 | |||
| 23 | (% style="line-height:1.38" %) | ||
| 24 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Шаг 2. Зависит от типа источника. | ||
| 25 | |||
| 26 | |||
| 27 | (% style="line-height:1.38" %) | ||
| 28 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)2.1) Для файлов формата csv страница импорта содержит следующие настройки: | ||
| 29 | |||
| 30 | (% style="line-height:1.38" %) | ||
| 31 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• название файла импорта | ||
| 32 | |||
| 33 | (% style="line-height:1.38" %) | ||
| 34 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• имя файла | ||
| 35 | |||
| 36 | (% style="line-height:1.38" %) | ||
| 37 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• разделитель для CSV файла | ||
| 38 | |||
| 39 | (% style="line-height:1.38" %) | ||
| 40 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• формат описания геометрических объектов: Широта/Долгота, WKT, GeoJson• соответствующий геометрическому формату столбец из csv файла | ||
| 41 | |||
| 42 | (% style="line-height:1.38" %) | ||
| 43 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• проекция. По умолчанию используется WGS 84. • столбец из csv файла, соответствующий названию поля | ||
| 44 | |||
| 45 | (% style="line-height:1.38" %) | ||
| 46 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• тип кодировки | ||
| 47 | |||
| 48 | |||
| 49 | (% style="line-height:1.38" %) | ||
| 50 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)2.2) Для набора shape-файлов страница импорта содержит следующие настройки: • название файла импорта | ||
| 51 | |||
| 52 | (% style="line-height:1.38" %) | ||
| 53 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• имя файла | ||
| 54 | |||
| 55 | (% style="line-height:1.38" %) | ||
| 56 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• проекция. По умолчанию используется WGS 84 | ||
| 57 | |||
| 58 | (% style="line-height:1.38" %) | ||
| 59 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• столбец из shape файла, соответствующий названию поля | ||
| 60 | |||
| 61 | (% style="line-height:1.38" %) | ||
| 62 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• тип кодировки | ||
| 63 | |||
| 64 | (% style="line-height:1.38" %) | ||
| 65 | [[image:image-20230226230304-4.png||height="428" width="619"]] | ||
| 66 | |||
| 67 | |||
| 68 | (% style="line-height:1.38" %) | ||
| 69 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)2.3) Для файлов формата kml страница импорта содержит следующие настройки: • название файла импорта | ||
| 70 | |||
| 71 | (% style="line-height:1.38" %) | ||
| 72 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• имя файла | ||
| 73 | |||
| 74 | (% style="line-height:1.38" %) | ||
| 75 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• проекция. По умолчанию используется WGS 84 | ||
| 76 | |||
| 77 | (% style="line-height:1.38" %) | ||
| 78 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• столбец из kml файла, соответствующий названию поля | ||
| 79 | |||
| 80 | (% style="line-height:1.38" %) | ||
| 81 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• тип кодировки | ||
| 82 | |||
| 83 | (% style="line-height:1.38" %) | ||
| 84 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Для всех типов источника данных в таблице под настройками отображается пример записей из файлов, которые будут далее импортированы. | ||
| 85 | |||
| 86 | |||
| 87 | (% style="line-height:1.38" %) | ||
| 88 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Шаг 3. Настройки отображения контуров на карте | ||
| 89 | |||
| 90 | (% style="line-height:1.38" %) | ||
| 91 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Представляет собой страницу по настройке отображения контуров полей на карте | ||
| 92 | |||
| 93 | [[image:image-20230226230502-5.png||height="488" width="615"]] | ||
| 94 | |||
| 95 | |||
| 96 | (% style="line-height:1.38" %) | ||
| 97 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Шаг 4. Источник загрузки | ||
| 98 | |||
| 99 | (% style="line-height:1.38" %) | ||
| 100 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Содержит информацию о источнике загрузки. Также есть настройки ширины/радиуса, а также запуска расчета гео событий. Настройка Ширины/радиуса является актуальной только для геозон, для которых допустимы простые типы геометрических областей, например, линии. При импорте полей типы загружаемых геометрических областей обязательно должны быть полигонами. | ||
| 101 | |||
| 102 | [[image:image-20230226230550-6.png||height="424" width="615"]] | ||
| 103 | |||
| 104 | |||
| 105 | (% style="line-height:1.38" %) | ||
| 106 | (% style="font-size: 13.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Импорт истории севооборота | ||
| 107 | |||
| 108 | (% style="line-height:1.38" %) | ||
| 109 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Импорт истории севооборота полей – быстрый способ загрузки севооборота из внешнего источника в виде csv файлов. | ||
| 110 | |||
| 111 | (% style="line-height:1.38" %) | ||
| 112 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Для загрузки необходимо выбрать csv-файл. Для создания csv-файла можно загрузить шаблон. Шаблон содержит все поля клиента (id и название). Таблица севооборота включает следующие сведения: | ||
| 113 | |||
| 114 | (% style="line-height:1.38" %) | ||
| 115 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Id поля | ||
| 116 | |||
| 117 | (% style="line-height:1.38" %) | ||
| 118 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Поле | ||
| 119 | |||
| 120 | (% style="line-height:1.38" %) | ||
| 121 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Год | ||
| 122 | |||
| 123 | (% style="line-height:1.38" %) | ||
| 124 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Id культуры | ||
| 125 | |||
| 126 | (% style="line-height:1.38" %) | ||
| 127 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Культура | ||
| 128 | |||
| 129 | (% style="line-height:1.38" %) | ||
| 130 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Урожайность | ||
| 131 | |||
| 132 | (% style="line-height:1.38" %) | ||
| 133 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Площадь | ||
| 134 | |||
| 135 | (% style="line-height:1.38" %) | ||
| 136 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Валовый сбор | ||
| 137 | |||
| 138 | (% style="line-height:1.38" %) | ||
| 139 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Фактическая урожайность | ||
| 140 | |||
| 141 | (% style="line-height:1.38" %) | ||
| 142 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Фактическая площадь | ||
| 143 | |||
| 144 | (% style="line-height:1.38" %) | ||
| 145 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Фактический валовый сбор | ||
| 146 | |||
| 147 | (% style="line-height:1.38" %) | ||
| 148 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Начало работ | ||
| 149 | |||
| 150 | (% style="line-height:1.38" %) | ||
| 151 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Сев | ||
| 152 | |||
| 153 | (% style="line-height:1.38" %) | ||
| 154 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Уборка | ||
| 155 | |||
| 156 | [[image:image-20230226230901-7.png||height="384" width="653"]] | ||
| 157 | |||
| 158 | |||
| 159 | (% style="font-size: 13.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Импорт культур | ||
| 160 | |||
| 161 | (% style="line-height:1.38" %) | ||
| 162 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Импорт культур – быстрый способ назначения культур на поля из внешнего источника виде Excel файла. Для загрузки необходимо выбрать xls-файл. Для создания xls-файла можно загрузить шаблон. | ||
| 163 | |||
| 164 | (% style="line-height:1.38" %) | ||
| 165 | [[image:image-20230226231127-8.png||height="150" width="793"]] | ||
| 166 | |||
| 167 | (% style="line-height:1.38" %) | ||
| 168 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Шаблон импорта имеет следующую структуру: AgroLandName, CultureName, Color. • Столбец AgroLandName содержит названия полей | ||
| 169 | |||
| 170 | (% style="line-height:1.38" %) | ||
| 171 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Столбец CultureName содержит названия культур | ||
| 172 | |||
| 173 | (% style="line-height:1.38" %) | ||
| 174 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)• Столбец Color – цвета для культур | ||
| 175 | |||
| 176 | (% style="line-height:1.38" %) | ||
| 177 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)При загрузке файла импорта сервер по списку названий полей выбирает все поля клиента, удовлетворяющие названию, текущему году, наличию годового планирования, отсутствию оперативного планирования. Этим полям и назначается культура. Список Названий культур также анализируется сервером и при отсутствии какой-либо культуры названием из списка такая культура создается. | ||
| 178 | |||
| 179 | (% style="line-height:1.38" %) | ||
| 180 | (% style="font-size: 10.5pt; font-variant: normal; white-space: pre-wrap; font-family: Arial; color: rgb(51, 51, 51); font-weight: 400; font-style: normal; text-decoration: none" %)Кроме того, для полей, у которых отсутствует годовое планирование система создаст его, при условии наличия технологии культуры по умолчанию. | ||
| 181 | |||
| 182 |