Wiki source code of Экспорт/импорт геообъектов
Last modified by Андрей Калиновский on 2025/04/21 14:43
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
11.1 | 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" %)Экспорт |
| |
10.1 | 2 | |
| 3 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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. |
| |
10.1 | 5 | |
| 6 | [[image:image-20230226225439-1.png||height="164" width="440"]] | ||
| 7 | |||
| 8 | |||
| 9 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)Импорт |
| |
10.1 | 11 | |
| 12 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 шагов: |
| |
10.1 | 14 | |
| 15 | |||
| 16 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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. Выбор источника данных: |
| |
10.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" %) | ||
| |
11.1 | 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 зависит от типа источника. |
| |
10.1 | 25 | |
| 26 | |||
| 27 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 страница импорта содержит следующие настройки: |
| |
10.1 | 29 | |
| 30 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• название файла импорта |
| |
10.1 | 32 | |
| 33 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• имя файла |
| |
10.1 | 35 | |
| 36 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 файла |
| |
10.1 | 38 | |
| 39 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 |
| |
10.1 | 41 | |
| 42 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 файла |
| |
10.1 | 44 | |
| 45 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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) |
| |
10.1 | 47 | |
| |
11.1 | 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 файла, соответствующий названию поля | ||
| |
10.1 | 50 | |
| 51 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• тип кодировки |
| |
10.1 | 53 | |
| |
11.1 | 54 | |
| |
10.1 | 55 | (% style="line-height:1.38" %) |
| |
11.1 | 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-файлов страница импорта содержит следующие настройки: |
| |
10.1 | 57 | |
| 58 | (% style="line-height:1.38" %) | ||
| |
13.1 | 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" %)• **Имя **- имя файла |
| |
10.1 | 60 | |
| 61 | (% style="line-height:1.38" %) | ||
| |
13.1 | 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) |
| |
10.1 | 63 | |
| 64 | (% style="line-height:1.38" %) | ||
| |
16.2 | 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) |
| |
10.1 | 66 | |
| 67 | (% style="line-height:1.38" %) | ||
| |
13.1 | 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" %)• **Кодировка **- тип кодировки |
| |
11.1 | 69 | |
| 70 | (% style="line-height:1.38" %) | ||
| |
14.1 | 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" %)• (%%)**Подразделение **- привязка импортируемого геообъекта к подразделению |
| |
11.1 | 72 | |
| 73 | (% style="line-height:1.38" %) | ||
| |
13.1 | 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" %)• (%%)**Ширина/радиус, м** - Ширина или радиус геообъекта |
| |
10.1 | 75 | |
| |
13.1 | 76 | (% style="line-height:1.38" %) |
| |
16.2 | 77 | Таблица содержит пример данных из файла |
| |
10.1 | 78 | |
| |
16.2 | 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 **- Наименование геообъекта | ||
| |
13.1 | 81 | |
| |
10.1 | 82 | (% style="line-height:1.38" %) |
| |
16.2 | 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" %) | ||
| |
11.1 | 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 страница импорта содержит следующие настройки: |
| |
10.1 | 96 | |
| 97 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• название файла импорта |
| |
10.1 | 99 | |
| 100 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• имя файла |
| |
10.1 | 102 | |
| 103 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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) |
| |
10.1 | 105 | |
| 106 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 файла, соответствующий названию поля |
| |
10.1 | 108 | |
| 109 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• тип кодировки |
| |
10.1 | 111 | |
| |
11.1 | 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" %)Для всех типов источника данных в таблице под настройками отображается пример записей из файлов, которые будут далее импортированы. | ||
| |
10.1 | 114 | |
| |
11.1 | 115 | |
| |
10.1 | 116 | (% style="line-height:1.38" %) |
| |
11.1 | 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. Настройки отображения контуров на карте |
| |
10.1 | 118 | |
| 119 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)Представляет собой страницу по настройке отображения контуров полей на карте: |
| |
10.1 | 121 | |
| 122 | [[image:image-20230226230502-5.png||height="488" width="615"]] | ||
| 123 | |||
| 124 | |||
| 125 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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. Источник загрузки |
| |
10.1 | 127 | |
| 128 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)Содержит информацию о источнике загрузки. Также есть настройки ширины/радиуса, а также запуска расчета геособытий. Настройка Ширины/радиуса является актуальной только для геозон, для которых допустимы простые типы геометрических областей, например, линии. При импорте полей типы загружаемых геометрических областей обязательно должны быть полигонами. |
| |
10.1 | 130 | |
| 131 | [[image:image-20230226230550-6.png||height="424" width="615"]] | ||
| 132 | |||
| 133 | |||
| 134 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)Импорт истории севооборота |
| |
10.1 | 136 | |
| 137 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 файлов. |
| |
10.1 | 139 | |
| 140 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 и название). Таблица севооборота включает следующие сведения: |
| |
10.1 | 142 | |
| 143 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 поля |
| |
10.1 | 145 | |
| 146 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• Поле |
| |
10.1 | 148 | |
| 149 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• Год |
| |
10.1 | 151 | |
| 152 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 культуры |
| |
10.1 | 154 | |
| 155 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• Культура |
| |
10.1 | 157 | |
| 158 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• Урожайность |
| |
10.1 | 160 | |
| 161 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• Площадь |
| |
10.1 | 163 | |
| 164 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• Валовый сбор |
| |
10.1 | 166 | |
| 167 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• Фактическая урожайность |
| |
10.1 | 169 | |
| 170 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• Фактическая площадь |
| |
10.1 | 172 | |
| 173 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• Фактический валовый сбор |
| |
10.1 | 175 | |
| 176 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• Начало работ |
| |
10.1 | 178 | |
| 179 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• Сев |
| |
10.1 | 181 | |
| 182 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)• Уборка |
| |
10.1 | 184 | |
| 185 | [[image:image-20230226230901-7.png||height="384" width="653"]] | ||
| 186 | |||
| 187 | |||
| |
11.1 | 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" %)Импорт культур |
| |
10.1 | 189 | |
| 190 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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-файла можно загрузить шаблон. |
| |
10.1 | 192 | |
| 193 | (% style="line-height:1.38" %) | ||
| 194 | [[image:image-20230226231127-8.png||height="150" width="793"]] | ||
| 195 | |||
| 196 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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" %)Шаблон импорта имеет следующую структуру: |
| |
10.1 | 198 | |
| 199 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 |
| |
10.1 | 201 | |
| 202 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 содержит названия полей |
| |
10.1 | 204 | |
| 205 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 содержит названия культур |
| |
10.1 | 207 | |
| 208 | (% style="line-height:1.38" %) | ||
| |
11.1 | 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 – цвета для культур |
| |
10.1 | 210 | |
| |
11.1 | 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 | |||
| |
10.1 | 217 |