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