Исходный код вики Экспорт/импорт геообъектов
Редактировал(а) Андрей Калиновский 2025/01/29 13:45
Последние авторы
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 файла, соответствующий названию поля | ||
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 | [[image:image-20250129133914-1.png]] | ||
78 | |||
79 | |||
80 | (% style="line-height:1.38" %) | ||
81 | (% 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 страница импорта содержит следующие настройки: | ||
82 | |||
83 | (% style="line-height:1.38" %) | ||
84 | (% 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" %)• название файла импорта | ||
85 | |||
86 | (% style="line-height:1.38" %) | ||
87 | (% 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" %)• имя файла | ||
88 | |||
89 | (% style="line-height:1.38" %) | ||
90 | (% 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) | ||
91 | |||
92 | (% style="line-height:1.38" %) | ||
93 | (% 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 файла, соответствующий названию поля | ||
94 | |||
95 | (% style="line-height:1.38" %) | ||
96 | (% 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" %)• тип кодировки | ||
97 | |||
98 | (% style="line-height:1.38" %) | ||
99 | (% 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" %)Для всех типов источника данных в таблице под настройками отображается пример записей из файлов, которые будут далее импортированы. | ||
100 | |||
101 | |||
102 | (% style="line-height:1.38" %) | ||
103 | (% 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. Настройки отображения контуров на карте | ||
104 | |||
105 | (% style="line-height:1.38" %) | ||
106 | (% 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" %)Представляет собой страницу по настройке отображения контуров полей на карте: | ||
107 | |||
108 | [[image:image-20230226230502-5.png||height="488" width="615"]] | ||
109 | |||
110 | |||
111 | (% style="line-height:1.38" %) | ||
112 | (% 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. Источник загрузки | ||
113 | |||
114 | (% style="line-height:1.38" %) | ||
115 | (% 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" %)Содержит информацию о источнике загрузки. Также есть настройки ширины/радиуса, а также запуска расчета геособытий. Настройка Ширины/радиуса является актуальной только для геозон, для которых допустимы простые типы геометрических областей, например, линии. При импорте полей типы загружаемых геометрических областей обязательно должны быть полигонами. | ||
116 | |||
117 | [[image:image-20230226230550-6.png||height="424" width="615"]] | ||
118 | |||
119 | |||
120 | (% style="line-height:1.38" %) | ||
121 | (% 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" %)Импорт истории севооборота | ||
122 | |||
123 | (% style="line-height:1.38" %) | ||
124 | (% 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 файлов. | ||
125 | |||
126 | (% style="line-height:1.38" %) | ||
127 | (% 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 и название). Таблица севооборота включает следующие сведения: | ||
128 | |||
129 | (% style="line-height:1.38" %) | ||
130 | (% 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 поля | ||
131 | |||
132 | (% style="line-height:1.38" %) | ||
133 | (% 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" %)• Поле | ||
134 | |||
135 | (% style="line-height:1.38" %) | ||
136 | (% 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" %)• Год | ||
137 | |||
138 | (% style="line-height:1.38" %) | ||
139 | (% 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 культуры | ||
140 | |||
141 | (% style="line-height:1.38" %) | ||
142 | (% 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" %)• Культура | ||
143 | |||
144 | (% style="line-height:1.38" %) | ||
145 | (% 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" %)• Урожайность | ||
146 | |||
147 | (% style="line-height:1.38" %) | ||
148 | (% 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" %)• Площадь | ||
149 | |||
150 | (% style="line-height:1.38" %) | ||
151 | (% 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" %)• Валовый сбор | ||
152 | |||
153 | (% style="line-height:1.38" %) | ||
154 | (% 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" %)• Фактическая урожайность | ||
155 | |||
156 | (% style="line-height:1.38" %) | ||
157 | (% 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" %)• Фактическая площадь | ||
158 | |||
159 | (% style="line-height:1.38" %) | ||
160 | (% 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" %)• Фактический валовый сбор | ||
161 | |||
162 | (% style="line-height:1.38" %) | ||
163 | (% 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" %)• Начало работ | ||
164 | |||
165 | (% style="line-height:1.38" %) | ||
166 | (% 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" %)• Сев | ||
167 | |||
168 | (% style="line-height:1.38" %) | ||
169 | (% 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" %)• Уборка | ||
170 | |||
171 | [[image:image-20230226230901-7.png||height="384" width="653"]] | ||
172 | |||
173 | |||
174 | (% 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" %)Импорт культур | ||
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" %)Импорт культур – быстрый способ назначения культур на поля из внешнего источника виде Excel файла. Для загрузки необходимо выбрать xls-файл. Для создания xls-файла можно загрузить шаблон. | ||
178 | |||
179 | (% style="line-height:1.38" %) | ||
180 | [[image:image-20230226231127-8.png||height="150" width="793"]] | ||
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 | (% style="line-height:1.38" %) | ||
186 | (% 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 | ||
187 | |||
188 | (% style="line-height:1.38" %) | ||
189 | (% 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 содержит названия полей | ||
190 | |||
191 | (% style="line-height:1.38" %) | ||
192 | (% 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 содержит названия культур | ||
193 | |||
194 | (% style="line-height:1.38" %) | ||
195 | (% 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 – цвета для культур | ||
196 | |||
197 | (% style="line-height:1.38" %) | ||
198 | (% 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" %)При загрузке файла импорта сервер по списку названий полей выбирает все поля клиента, удовлетворяющие названию, текущему году, наличию годового планирования, отсутствию оперативного планирования. Этим полям и назначается культура. Список Названий культур также анализируется сервером и при отсутствии какой-либо культуры названием из списка такая культура создается. | ||
199 | |||
200 | (% style="line-height:1.38" %) | ||
201 | (% 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" %)Кроме того, для полей, у которых отсутствует годовое планирование система создаст его, при условии наличия технологии культуры по умолчанию. | ||
202 | |||
203 |