g3w-admin-processing 1.2.1b1.dev1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- g3w_admin_processing-1.2.1b1.dev1.dist-info/METADATA +258 -0
- g3w_admin_processing-1.2.1b1.dev1.dist-info/RECORD +80 -0
- g3w_admin_processing-1.2.1b1.dev1.dist-info/WHEEL +5 -0
- g3w_admin_processing-1.2.1b1.dev1.dist-info/licenses/LICENSE +373 -0
- g3w_admin_processing-1.2.1b1.dev1.dist-info/top_level.txt +1 -0
- qprocessing/__init__.py +7 -0
- qprocessing/admin.py +21 -0
- qprocessing/api/__init__.py +0 -0
- qprocessing/api/permissions.py +41 -0
- qprocessing/api/views/__init__.py +4 -0
- qprocessing/api/views/actions.py +84 -0
- qprocessing/api/views/admin.py +76 -0
- qprocessing/api/views/models.py +219 -0
- qprocessing/api/views/upload.py +177 -0
- qprocessing/apiurls.py +64 -0
- qprocessing/apps.py +38 -0
- qprocessing/configs.py +131 -0
- qprocessing/forms.py +133 -0
- qprocessing/migrations/0001_initial.py +24 -0
- qprocessing/migrations/0002_auto_20230615_1609.py +23 -0
- qprocessing/migrations/0003_qprocessinginputupload.py +32 -0
- qprocessing/migrations/0004_auto_20230809_0920.py +26 -0
- qprocessing/migrations/0005_alter_qprocessinginputupload_user.py +21 -0
- qprocessing/migrations/__init__.py +0 -0
- qprocessing/models.py +143 -0
- qprocessing/receivers.py +100 -0
- qprocessing/sitetrees.py +31 -0
- qprocessing/static/qprocessing/js/components/DrawInputVectorFeatures.js +180 -0
- qprocessing/static/qprocessing/js/components/InputFieldChooser.js +226 -0
- qprocessing/static/qprocessing/js/components/InputPrjRasterLayer.js +135 -0
- qprocessing/static/qprocessing/js/components/InputPrjVectorLayer.js +415 -0
- qprocessing/static/qprocessing/js/components/ModelPanel.js +496 -0
- qprocessing/static/qprocessing/js/components/ModelResults.js +73 -0
- qprocessing/static/qprocessing/js/components/OutputFile.js +63 -0
- qprocessing/static/qprocessing/js/components/OutputRasterLayer.js +63 -0
- qprocessing/static/qprocessing/js/components/OutputVectorLayer.js +115 -0
- qprocessing/static/qprocessing/js/components/UploadVectorFile.js +53 -0
- qprocessing/static/qprocessing/js/i18n/en.js +33 -0
- qprocessing/static/qprocessing/js/i18n/index.js +7 -0
- qprocessing/static/qprocessing/js/i18n/it.js +33 -0
- qprocessing/static/qprocessing/js/plugin.js +122 -0
- qprocessing/tasks.py +136 -0
- qprocessing/templates/qprocessing/project_form.html +70 -0
- qprocessing/templates/qprocessing/projects_list.html +72 -0
- qprocessing/tests/__init__.py +0 -0
- qprocessing/tests/base.py +104 -0
- qprocessing/tests/data/models/qbuffer.model3 +233 -0
- qprocessing/tests/data/models/qintersection.model3 +288 -0
- qprocessing/tests/data/models/qpointspolygons.model3 +222 -0
- qprocessing/tests/data/models/test.model3 +321 -0
- qprocessing/tests/data/models/test_buffer_all_inputs.model3 +269 -0
- qprocessing/tests/data/models/test_buffer_layer1.model3 +201 -0
- qprocessing/tests/data/project_data/buildings.geojson +15 -0
- qprocessing/tests/data/project_data/qprocessing.gpkg +0 -0
- qprocessing/tests/data/qprocessing_qprocessing.qgs +2813 -0
- qprocessing/tests/data/qprocessing_qprocessing_attachments.zip +0 -0
- qprocessing/tests/data/test_qgis_328.qgs +954 -0
- qprocessing/tests/data/test_qgis_328_attachments.zip +0 -0
- qprocessing/tests/data/upload/fail_shp_to_upload.zip +0 -0
- qprocessing/tests/data/upload/linestring_to_upload.geojson +9 -0
- qprocessing/tests/data/upload/point_to_upload.geojson +10 -0
- qprocessing/tests/data/upload/point_to_upload_espg4326.geojson +10 -0
- qprocessing/tests/data/upload/point_to_upload_espg4326.qmd +26 -0
- qprocessing/tests/data/upload/polygon_to_upload.geojson +9 -0
- qprocessing/tests/data/upload/shp_to_upload.cpg +1 -0
- qprocessing/tests/data/upload/shp_to_upload.dbf +0 -0
- qprocessing/tests/data/upload/shp_to_upload.prj +1 -0
- qprocessing/tests/data/upload/shp_to_upload.qix +0 -0
- qprocessing/tests/data/upload/shp_to_upload.shp +0 -0
- qprocessing/tests/data/upload/shp_to_upload.shx +0 -0
- qprocessing/tests/data/upload/shp_to_upload.zip +0 -0
- qprocessing/tests/test_algorithm.py +52 -0
- qprocessing/tests/test_api.py +173 -0
- qprocessing/tests/test_api_models.py +459 -0
- qprocessing/urls.py +33 -0
- qprocessing/utils/__init__.py +0 -0
- qprocessing/utils/data.py +283 -0
- qprocessing/utils/exceptions.py +20 -0
- qprocessing/utils/formtypes.py +521 -0
- qprocessing/views.py +96 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
"""" Base qprocessing test module
|
|
3
|
+
|
|
4
|
+
.. note:: This program is free software; you can redistribute it and/or modify
|
|
5
|
+
it under the terms of the Mozilla Public License 2.0.
|
|
6
|
+
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
__author__ = 'lorenzetti@gis3w.it'
|
|
10
|
+
__date__ = '2023-05-10'
|
|
11
|
+
__copyright__ = 'Copyright 2015 - 2023, Gis3w'
|
|
12
|
+
__license__ = 'MPL 2.0'
|
|
13
|
+
|
|
14
|
+
from django.test import TestCase, override_settings
|
|
15
|
+
from django.core.files import File
|
|
16
|
+
from core.models import G3WSpatialRefSys, Group as CoreGroup
|
|
17
|
+
from usersmanage.tests.utils import setup_testing_user
|
|
18
|
+
from qdjango.utils.data import QgisProject
|
|
19
|
+
import os
|
|
20
|
+
|
|
21
|
+
CURRENT_PATH = os.path.dirname(__file__)
|
|
22
|
+
TEST_BASE_PATH = 'data/'
|
|
23
|
+
DATASOURCE_PATH = '{}/{}project_data'.format(CURRENT_PATH, TEST_BASE_PATH)
|
|
24
|
+
MODEL_FILE = 'models/test_buffer_all_inputs.model3'
|
|
25
|
+
MODEL_FILE_ONLY_BUFFER = 'models/test_buffer_layer1.model3'
|
|
26
|
+
|
|
27
|
+
MODEL_FILE_BUFFER = 'models/qbuffer.model3'
|
|
28
|
+
MODEL_FILE_INTERSECTIONS = 'models/qintersection.model3'
|
|
29
|
+
MODEL_FILE_POINTSPOLYGONS = 'models/qpointspolygons.model3'
|
|
30
|
+
|
|
31
|
+
QGS_PROJECT_FILE = 'test_qgis_328.qgs'
|
|
32
|
+
QGS_PROJECT_QPROCESSING_FILE = 'qprocessing_qprocessing.qgs'
|
|
33
|
+
|
|
34
|
+
# Upload file
|
|
35
|
+
UPLOAD_FILE_POINT = 'upload/point_to_upload.geojson'
|
|
36
|
+
UPLOAD_FILE_POLYGON = 'upload/polygon_to_upload.geojson'
|
|
37
|
+
UPLOAD_FILE_LINESTRING = 'upload/linestring_to_upload.geojson'
|
|
38
|
+
UPLOAD_FILE_SHP_POLYGON_ZIP = 'upload/shp_to_upload.zip'
|
|
39
|
+
UPLOAD_FILE_SHP_POLYGON_ZIP_FAIL = 'upload/fail_shp_to_upload.zip'
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
@override_settings(
|
|
43
|
+
CACHES={
|
|
44
|
+
'default': {
|
|
45
|
+
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
|
46
|
+
'LOCATION': 'some',
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
DATASOURCE_PATH=DATASOURCE_PATH,
|
|
50
|
+
LANGUAGE_CODE='en',
|
|
51
|
+
LANGUAGES = (
|
|
52
|
+
('en', 'English'),
|
|
53
|
+
),
|
|
54
|
+
HUEY={
|
|
55
|
+
# Huey implementation to use.
|
|
56
|
+
'huey_class': 'huey.RedisExpireHuey',
|
|
57
|
+
'name': 'g3w-suite',
|
|
58
|
+
'url': 'redis://localhost:6379/?db=0',
|
|
59
|
+
'immediate': True,
|
|
60
|
+
'consumer': {
|
|
61
|
+
'workers': 1,
|
|
62
|
+
'worker_type': 'process',
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
class TestQProcessingBase(TestCase):
|
|
67
|
+
"""
|
|
68
|
+
Base class for QProcessing tests
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
fixtures = ['BaseLayer.json',
|
|
72
|
+
'G3WMapControls.json',
|
|
73
|
+
'G3WSpatialRefSys.json',
|
|
74
|
+
'G3WGeneralDataSuite.json'
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
@classmethod
|
|
78
|
+
def setUpClass(cls):
|
|
79
|
+
super().setUpClass()
|
|
80
|
+
|
|
81
|
+
setup_testing_user(cls)
|
|
82
|
+
|
|
83
|
+
cls.model_file = os.path.join(CURRENT_PATH, TEST_BASE_PATH, MODEL_FILE)
|
|
84
|
+
cls.qgis_file = os.path.join(CURRENT_PATH, TEST_BASE_PATH, QGS_PROJECT_FILE)
|
|
85
|
+
|
|
86
|
+
cls.qgis_qprocessing_file = os.path.join(CURRENT_PATH, TEST_BASE_PATH, QGS_PROJECT_QPROCESSING_FILE)
|
|
87
|
+
cls.model_file_buffer = os.path.join(CURRENT_PATH, TEST_BASE_PATH, MODEL_FILE_BUFFER)
|
|
88
|
+
cls.model_file_intersections = os.path.join(CURRENT_PATH, TEST_BASE_PATH, MODEL_FILE_INTERSECTIONS)
|
|
89
|
+
cls.model_file_ponintspolygons = os.path.join(CURRENT_PATH, TEST_BASE_PATH, MODEL_FILE_POINTSPOLYGONS)
|
|
90
|
+
|
|
91
|
+
@classmethod
|
|
92
|
+
def setUp(cls):
|
|
93
|
+
|
|
94
|
+
# main project group
|
|
95
|
+
cls.project_group = CoreGroup(name='QProcessing', title='QProcessing', header_logo_img='',
|
|
96
|
+
srid=G3WSpatialRefSys.objects.get(auth_srid=3857))
|
|
97
|
+
cls.project_group.save()
|
|
98
|
+
|
|
99
|
+
# Add projects to DB
|
|
100
|
+
qgis_project_file = File(open(cls.qgis_qprocessing_file, 'r'))
|
|
101
|
+
cls.project = QgisProject(qgis_project_file)
|
|
102
|
+
cls.project.title = 'QProcessing Test Project'
|
|
103
|
+
cls.project.group = cls.project_group
|
|
104
|
+
cls.project.save()
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
<!DOCTYPE model>
|
|
2
|
+
<Option type="Map">
|
|
3
|
+
<Option type="Map" name="children">
|
|
4
|
+
<Option type="Map" name="native:buffer_1">
|
|
5
|
+
<Option type="bool" name="active" value="true"/>
|
|
6
|
+
<Option name="alg_config"/>
|
|
7
|
+
<Option type="QString" name="alg_id" value="native:buffer"/>
|
|
8
|
+
<Option type="QString" name="color" value=""/>
|
|
9
|
+
<Option type="Map" name="comment">
|
|
10
|
+
<Option type="QString" name="color" value=""/>
|
|
11
|
+
<Option type="QString" name="component_description" value=""/>
|
|
12
|
+
<Option type="double" name="component_height" value="60"/>
|
|
13
|
+
<Option type="double" name="component_pos_x" value="539"/>
|
|
14
|
+
<Option type="double" name="component_pos_y" value="245"/>
|
|
15
|
+
<Option type="double" name="component_width" value="100"/>
|
|
16
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
17
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
18
|
+
</Option>
|
|
19
|
+
<Option type="QString" name="component_description" value="Buffer"/>
|
|
20
|
+
<Option type="double" name="component_height" value="30"/>
|
|
21
|
+
<Option type="double" name="component_pos_x" value="371"/>
|
|
22
|
+
<Option type="double" name="component_pos_y" value="247"/>
|
|
23
|
+
<Option type="double" name="component_width" value="200"/>
|
|
24
|
+
<Option name="dependencies"/>
|
|
25
|
+
<Option type="QString" name="id" value="native:buffer_1"/>
|
|
26
|
+
<Option type="Map" name="outputs">
|
|
27
|
+
<Option type="Map" name="Buffer results">
|
|
28
|
+
<Option type="QString" name="child_id" value="native:buffer_1"/>
|
|
29
|
+
<Option type="QString" name="color" value=""/>
|
|
30
|
+
<Option type="Map" name="comment">
|
|
31
|
+
<Option type="QString" name="color" value=""/>
|
|
32
|
+
<Option type="QString" name="component_description" value=""/>
|
|
33
|
+
<Option type="double" name="component_height" value="60"/>
|
|
34
|
+
<Option type="double" name="component_pos_x" value="0"/>
|
|
35
|
+
<Option type="double" name="component_pos_y" value="0"/>
|
|
36
|
+
<Option type="double" name="component_width" value="100"/>
|
|
37
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
38
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
39
|
+
</Option>
|
|
40
|
+
<Option type="QString" name="component_description" value="Buffer results"/>
|
|
41
|
+
<Option type="double" name="component_height" value="30"/>
|
|
42
|
+
<Option type="double" name="component_pos_x" value="539"/>
|
|
43
|
+
<Option type="double" name="component_pos_y" value="335"/>
|
|
44
|
+
<Option type="double" name="component_width" value="200"/>
|
|
45
|
+
<Option type="invalid" name="default_value"/>
|
|
46
|
+
<Option type="bool" name="mandatory" value="false"/>
|
|
47
|
+
<Option type="QString" name="name" value="Buffer results"/>
|
|
48
|
+
<Option type="QString" name="output_name" value="OUTPUT"/>
|
|
49
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
50
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
51
|
+
</Option>
|
|
52
|
+
</Option>
|
|
53
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
54
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
55
|
+
<Option type="Map" name="params">
|
|
56
|
+
<Option type="List" name="DISSOLVE">
|
|
57
|
+
<Option type="Map">
|
|
58
|
+
<Option type="QString" name="parameter_name" value="dissolve"/>
|
|
59
|
+
<Option type="int" name="source" value="0"/>
|
|
60
|
+
</Option>
|
|
61
|
+
</Option>
|
|
62
|
+
<Option type="List" name="DISTANCE">
|
|
63
|
+
<Option type="Map">
|
|
64
|
+
<Option type="QString" name="parameter_name" value="distance"/>
|
|
65
|
+
<Option type="int" name="source" value="0"/>
|
|
66
|
+
</Option>
|
|
67
|
+
</Option>
|
|
68
|
+
<Option type="List" name="END_CAP_STYLE">
|
|
69
|
+
<Option type="Map">
|
|
70
|
+
<Option type="int" name="source" value="2"/>
|
|
71
|
+
<Option type="int" name="static_value" value="0"/>
|
|
72
|
+
</Option>
|
|
73
|
+
</Option>
|
|
74
|
+
<Option type="List" name="INPUT">
|
|
75
|
+
<Option type="Map">
|
|
76
|
+
<Option type="QString" name="parameter_name" value="buffer_layer2"/>
|
|
77
|
+
<Option type="int" name="source" value="0"/>
|
|
78
|
+
</Option>
|
|
79
|
+
</Option>
|
|
80
|
+
<Option type="List" name="JOIN_STYLE">
|
|
81
|
+
<Option type="Map">
|
|
82
|
+
<Option type="int" name="source" value="2"/>
|
|
83
|
+
<Option type="int" name="static_value" value="0"/>
|
|
84
|
+
</Option>
|
|
85
|
+
</Option>
|
|
86
|
+
<Option type="List" name="MITER_LIMIT">
|
|
87
|
+
<Option type="Map">
|
|
88
|
+
<Option type="int" name="source" value="2"/>
|
|
89
|
+
<Option type="double" name="static_value" value="2"/>
|
|
90
|
+
</Option>
|
|
91
|
+
</Option>
|
|
92
|
+
<Option type="List" name="SEGMENTS">
|
|
93
|
+
<Option type="Map">
|
|
94
|
+
<Option type="int" name="source" value="2"/>
|
|
95
|
+
<Option type="int" name="static_value" value="5"/>
|
|
96
|
+
</Option>
|
|
97
|
+
</Option>
|
|
98
|
+
</Option>
|
|
99
|
+
</Option>
|
|
100
|
+
</Option>
|
|
101
|
+
<Option name="designerParameterValues"/>
|
|
102
|
+
<Option name="groupBoxes"/>
|
|
103
|
+
<Option name="help"/>
|
|
104
|
+
<Option type="QString" name="internal_version" value="Version1"/>
|
|
105
|
+
<Option name="modelVariables"/>
|
|
106
|
+
<Option type="QString" name="model_group" value="Qprocessing"/>
|
|
107
|
+
<Option type="QString" name="model_name" value="Crea il buffer dei tuoi sogni!"/>
|
|
108
|
+
<Option type="Map" name="parameterDefinitions">
|
|
109
|
+
<Option type="Map" name="buffer_layer2">
|
|
110
|
+
<Option type="List" name="data_types">
|
|
111
|
+
<Option type="int" value="0"/>
|
|
112
|
+
<Option type="int" value="2"/>
|
|
113
|
+
</Option>
|
|
114
|
+
<Option type="invalid" name="default"/>
|
|
115
|
+
<Option type="invalid" name="defaultGui"/>
|
|
116
|
+
<Option type="QString" name="description" value="Buffer layer"/>
|
|
117
|
+
<Option type="int" name="flags" value="0"/>
|
|
118
|
+
<Option type="QString" name="help" value=""/>
|
|
119
|
+
<Option name="metadata"/>
|
|
120
|
+
<Option type="QString" name="name" value="buffer_layer2"/>
|
|
121
|
+
<Option type="QString" name="parameter_type" value="source"/>
|
|
122
|
+
</Option>
|
|
123
|
+
<Option type="Map" name="dissolve">
|
|
124
|
+
<Option type="bool" name="default" value="false"/>
|
|
125
|
+
<Option type="invalid" name="defaultGui"/>
|
|
126
|
+
<Option type="QString" name="description" value="Dissolve?"/>
|
|
127
|
+
<Option type="int" name="flags" value="0"/>
|
|
128
|
+
<Option type="QString" name="help" value=""/>
|
|
129
|
+
<Option name="metadata"/>
|
|
130
|
+
<Option type="QString" name="name" value="dissolve"/>
|
|
131
|
+
<Option type="QString" name="parameter_type" value="boolean"/>
|
|
132
|
+
</Option>
|
|
133
|
+
<Option type="Map" name="distance">
|
|
134
|
+
<Option type="int" name="data_type" value="1"/>
|
|
135
|
+
<Option type="double" name="default" value="25000"/>
|
|
136
|
+
<Option type="invalid" name="defaultGui"/>
|
|
137
|
+
<Option type="int" name="default_unit" value="9"/>
|
|
138
|
+
<Option type="QString" name="description" value="Distance"/>
|
|
139
|
+
<Option type="int" name="flags" value="0"/>
|
|
140
|
+
<Option type="QString" name="help" value=""/>
|
|
141
|
+
<Option type="double" name="max" value="50000"/>
|
|
142
|
+
<Option name="metadata"/>
|
|
143
|
+
<Option type="double" name="min" value="10000"/>
|
|
144
|
+
<Option type="QString" name="name" value="distance"/>
|
|
145
|
+
<Option type="QString" name="parameter_type" value="distance"/>
|
|
146
|
+
<Option type="QString" name="parent" value="buffer_layer2"/>
|
|
147
|
+
</Option>
|
|
148
|
+
<Option type="Map" name="native:buffer_1:Buffer results">
|
|
149
|
+
<Option type="bool" name="create_by_default" value="true"/>
|
|
150
|
+
<Option type="int" name="data_type" value="2"/>
|
|
151
|
+
<Option type="invalid" name="default"/>
|
|
152
|
+
<Option type="invalid" name="defaultGui"/>
|
|
153
|
+
<Option type="QString" name="description" value="Buffer results"/>
|
|
154
|
+
<Option type="int" name="flags" value="0"/>
|
|
155
|
+
<Option type="QString" name="help" value=""/>
|
|
156
|
+
<Option type="Map" name="metadata">
|
|
157
|
+
<Option type="QString" name="_modelChildId" value="native:buffer_1"/>
|
|
158
|
+
<Option type="QString" name="_modelChildOutputName" value="Buffer results"/>
|
|
159
|
+
<Option type="QString" name="_modelChildProvider" value="native"/>
|
|
160
|
+
</Option>
|
|
161
|
+
<Option type="QString" name="name" value="native:buffer_1:Buffer results"/>
|
|
162
|
+
<Option type="QString" name="parameter_type" value="sink"/>
|
|
163
|
+
<Option type="bool" name="supports_append" value="true"/>
|
|
164
|
+
<Option type="bool" name="supports_non_file_outputs" value="true"/>
|
|
165
|
+
</Option>
|
|
166
|
+
</Option>
|
|
167
|
+
<Option name="parameterOrder"/>
|
|
168
|
+
<Option type="Map" name="parameters">
|
|
169
|
+
<Option type="Map" name="buffer_layer2">
|
|
170
|
+
<Option type="QString" name="color" value=""/>
|
|
171
|
+
<Option type="Map" name="comment">
|
|
172
|
+
<Option type="QString" name="color" value=""/>
|
|
173
|
+
<Option type="QString" name="component_description" value=""/>
|
|
174
|
+
<Option type="double" name="component_height" value="60"/>
|
|
175
|
+
<Option type="double" name="component_pos_x" value="575"/>
|
|
176
|
+
<Option type="double" name="component_pos_y" value="405"/>
|
|
177
|
+
<Option type="double" name="component_width" value="100"/>
|
|
178
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
179
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
180
|
+
</Option>
|
|
181
|
+
<Option type="QString" name="component_description" value="buffer_layer2"/>
|
|
182
|
+
<Option type="double" name="component_height" value="30"/>
|
|
183
|
+
<Option type="double" name="component_pos_x" value="375"/>
|
|
184
|
+
<Option type="double" name="component_pos_y" value="450"/>
|
|
185
|
+
<Option type="double" name="component_width" value="200"/>
|
|
186
|
+
<Option type="QString" name="name" value="buffer_layer2"/>
|
|
187
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
188
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
189
|
+
</Option>
|
|
190
|
+
<Option type="Map" name="dissolve">
|
|
191
|
+
<Option type="QString" name="color" value=""/>
|
|
192
|
+
<Option type="Map" name="comment">
|
|
193
|
+
<Option type="QString" name="color" value=""/>
|
|
194
|
+
<Option type="QString" name="component_description" value=""/>
|
|
195
|
+
<Option type="double" name="component_height" value="60"/>
|
|
196
|
+
<Option type="double" name="component_pos_x" value="641"/>
|
|
197
|
+
<Option type="double" name="component_pos_y" value="15"/>
|
|
198
|
+
<Option type="double" name="component_width" value="100"/>
|
|
199
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
200
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
201
|
+
</Option>
|
|
202
|
+
<Option type="QString" name="component_description" value="dissolve"/>
|
|
203
|
+
<Option type="double" name="component_height" value="30"/>
|
|
204
|
+
<Option type="double" name="component_pos_x" value="441"/>
|
|
205
|
+
<Option type="double" name="component_pos_y" value="60"/>
|
|
206
|
+
<Option type="double" name="component_width" value="200"/>
|
|
207
|
+
<Option type="QString" name="name" value="dissolve"/>
|
|
208
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
209
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
210
|
+
</Option>
|
|
211
|
+
<Option type="Map" name="distance">
|
|
212
|
+
<Option type="QString" name="color" value=""/>
|
|
213
|
+
<Option type="Map" name="comment">
|
|
214
|
+
<Option type="QString" name="color" value=""/>
|
|
215
|
+
<Option type="QString" name="component_description" value=""/>
|
|
216
|
+
<Option type="double" name="component_height" value="60"/>
|
|
217
|
+
<Option type="double" name="component_pos_x" value="494"/>
|
|
218
|
+
<Option type="double" name="component_pos_y" value="356"/>
|
|
219
|
+
<Option type="double" name="component_width" value="100"/>
|
|
220
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
221
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
222
|
+
</Option>
|
|
223
|
+
<Option type="QString" name="component_description" value="distance"/>
|
|
224
|
+
<Option type="double" name="component_height" value="30"/>
|
|
225
|
+
<Option type="double" name="component_pos_x" value="119"/>
|
|
226
|
+
<Option type="double" name="component_pos_y" value="146"/>
|
|
227
|
+
<Option type="double" name="component_width" value="200"/>
|
|
228
|
+
<Option type="QString" name="name" value="distance"/>
|
|
229
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
230
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
231
|
+
</Option>
|
|
232
|
+
</Option>
|
|
233
|
+
</Option>
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
<!DOCTYPE model>
|
|
2
|
+
<Option type="Map">
|
|
3
|
+
<Option type="Map" name="children">
|
|
4
|
+
<Option type="Map" name="native:intersection_1">
|
|
5
|
+
<Option type="bool" name="active" value="true"/>
|
|
6
|
+
<Option name="alg_config"/>
|
|
7
|
+
<Option type="QString" name="alg_id" value="native:intersection"/>
|
|
8
|
+
<Option type="QString" name="color" value=""/>
|
|
9
|
+
<Option type="Map" name="comment">
|
|
10
|
+
<Option type="QString" name="color" value=""/>
|
|
11
|
+
<Option type="QString" name="component_description" value=""/>
|
|
12
|
+
<Option type="double" name="component_height" value="60"/>
|
|
13
|
+
<Option type="double" name="component_pos_x" value="429"/>
|
|
14
|
+
<Option type="double" name="component_pos_y" value="389"/>
|
|
15
|
+
<Option type="double" name="component_width" value="100"/>
|
|
16
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
17
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
18
|
+
</Option>
|
|
19
|
+
<Option type="QString" name="component_description" value="Intersezione"/>
|
|
20
|
+
<Option type="double" name="component_height" value="30"/>
|
|
21
|
+
<Option type="double" name="component_pos_x" value="253"/>
|
|
22
|
+
<Option type="double" name="component_pos_y" value="331"/>
|
|
23
|
+
<Option type="double" name="component_width" value="200"/>
|
|
24
|
+
<Option name="dependencies"/>
|
|
25
|
+
<Option type="QString" name="id" value="native:intersection_1"/>
|
|
26
|
+
<Option type="Map" name="outputs">
|
|
27
|
+
<Option type="Map" name="Intersection">
|
|
28
|
+
<Option type="QString" name="child_id" value="native:intersection_1"/>
|
|
29
|
+
<Option type="QString" name="color" value=""/>
|
|
30
|
+
<Option type="Map" name="comment">
|
|
31
|
+
<Option type="QString" name="color" value=""/>
|
|
32
|
+
<Option type="QString" name="component_description" value=""/>
|
|
33
|
+
<Option type="double" name="component_height" value="60"/>
|
|
34
|
+
<Option type="double" name="component_pos_x" value="0"/>
|
|
35
|
+
<Option type="double" name="component_pos_y" value="0"/>
|
|
36
|
+
<Option type="double" name="component_width" value="100"/>
|
|
37
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
38
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
39
|
+
</Option>
|
|
40
|
+
<Option type="QString" name="component_description" value="Intersection"/>
|
|
41
|
+
<Option type="double" name="component_height" value="30"/>
|
|
42
|
+
<Option type="double" name="component_pos_x" value="429"/>
|
|
43
|
+
<Option type="double" name="component_pos_y" value="479"/>
|
|
44
|
+
<Option type="double" name="component_width" value="200"/>
|
|
45
|
+
<Option type="invalid" name="default_value"/>
|
|
46
|
+
<Option type="bool" name="mandatory" value="false"/>
|
|
47
|
+
<Option type="QString" name="name" value="Intersection"/>
|
|
48
|
+
<Option type="QString" name="output_name" value="OUTPUT"/>
|
|
49
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
50
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
51
|
+
</Option>
|
|
52
|
+
</Option>
|
|
53
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
54
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
55
|
+
<Option type="Map" name="params">
|
|
56
|
+
<Option type="List" name="GRID_SIZE">
|
|
57
|
+
<Option type="Map">
|
|
58
|
+
<Option type="int" name="source" value="2"/>
|
|
59
|
+
<Option type="invalid" name="static_value"/>
|
|
60
|
+
</Option>
|
|
61
|
+
</Option>
|
|
62
|
+
<Option type="List" name="INPUT">
|
|
63
|
+
<Option type="Map">
|
|
64
|
+
<Option type="QString" name="parameter_name" value="base_layer"/>
|
|
65
|
+
<Option type="int" name="source" value="0"/>
|
|
66
|
+
</Option>
|
|
67
|
+
</Option>
|
|
68
|
+
<Option type="List" name="INPUT_FIELDS">
|
|
69
|
+
<Option type="Map">
|
|
70
|
+
<Option type="QString" name="parameter_name" value="base_layer_fields"/>
|
|
71
|
+
<Option type="int" name="source" value="0"/>
|
|
72
|
+
</Option>
|
|
73
|
+
</Option>
|
|
74
|
+
<Option type="List" name="OVERLAY">
|
|
75
|
+
<Option type="Map">
|
|
76
|
+
<Option type="QString" name="parameter_name" value="overlay_layer"/>
|
|
77
|
+
<Option type="int" name="source" value="0"/>
|
|
78
|
+
</Option>
|
|
79
|
+
</Option>
|
|
80
|
+
<Option type="List" name="OVERLAY_FIELDS">
|
|
81
|
+
<Option type="Map">
|
|
82
|
+
<Option type="int" name="source" value="2"/>
|
|
83
|
+
<Option type="StringList" name="static_value">
|
|
84
|
+
<Option type="QString" value="name"/>
|
|
85
|
+
</Option>
|
|
86
|
+
</Option>
|
|
87
|
+
</Option>
|
|
88
|
+
<Option type="List" name="OVERLAY_FIELDS_PREFIX">
|
|
89
|
+
<Option type="Map">
|
|
90
|
+
<Option type="int" name="source" value="2"/>
|
|
91
|
+
<Option type="QString" name="static_value" value=""/>
|
|
92
|
+
</Option>
|
|
93
|
+
</Option>
|
|
94
|
+
</Option>
|
|
95
|
+
</Option>
|
|
96
|
+
</Option>
|
|
97
|
+
<Option type="Map" name="designerParameterValues">
|
|
98
|
+
<Option type="QString" name="layer1" value="poligono1_069a3071_cdc7_4979_ab79_e3b3ab6885a0"/>
|
|
99
|
+
<Option type="List" name="layer1fileds">
|
|
100
|
+
<Option type="QString" value="fid"/>
|
|
101
|
+
<Option type="QString" value="name"/>
|
|
102
|
+
</Option>
|
|
103
|
+
<Option type="QString" name="layer2" value="poligono2_ca3f4152_353f_471b_a7dc_5fd1b1b0bffe"/>
|
|
104
|
+
<Option type="List" name="layer2fields">
|
|
105
|
+
<Option type="QString" value="name"/>
|
|
106
|
+
</Option>
|
|
107
|
+
<Option type="QgsProcessingOutputLayerDefinition" name="native:intersection_1:Intersection">
|
|
108
|
+
<Option type="Map">
|
|
109
|
+
<Option type="Map" name="create_options">
|
|
110
|
+
<Option type="QString" name="fileEncoding" value="System"/>
|
|
111
|
+
</Option>
|
|
112
|
+
<Option type="Map" name="sink">
|
|
113
|
+
<Option type="bool" name="active" value="true"/>
|
|
114
|
+
<Option type="int" name="type" value="1"/>
|
|
115
|
+
<Option type="QString" name="val" value="TEMPORARY_OUTPUT"/>
|
|
116
|
+
</Option>
|
|
117
|
+
</Option>
|
|
118
|
+
</Option>
|
|
119
|
+
</Option>
|
|
120
|
+
<Option name="groupBoxes"/>
|
|
121
|
+
<Option name="help"/>
|
|
122
|
+
<Option type="QString" name="internal_version" value="Version1"/>
|
|
123
|
+
<Option name="modelVariables"/>
|
|
124
|
+
<Option type="QString" name="model_group" value="QProcessing"/>
|
|
125
|
+
<Option type="QString" name="model_name" value="QIntersection"/>
|
|
126
|
+
<Option type="Map" name="parameterDefinitions">
|
|
127
|
+
<Option type="Map" name="base_layer">
|
|
128
|
+
<Option type="List" name="data_types">
|
|
129
|
+
<Option type="int" value="1"/>
|
|
130
|
+
<Option type="int" value="2"/>
|
|
131
|
+
</Option>
|
|
132
|
+
<Option type="invalid" name="default"/>
|
|
133
|
+
<Option type="invalid" name="defaultGui"/>
|
|
134
|
+
<Option type="QString" name="description" value="Base Layer"/>
|
|
135
|
+
<Option type="int" name="flags" value="0"/>
|
|
136
|
+
<Option type="QString" name="help" value=""/>
|
|
137
|
+
<Option name="metadata"/>
|
|
138
|
+
<Option type="QString" name="name" value="base_layer"/>
|
|
139
|
+
<Option type="QString" name="parameter_type" value="source"/>
|
|
140
|
+
</Option>
|
|
141
|
+
<Option type="Map" name="base_layer_fields">
|
|
142
|
+
<Option type="bool" name="allow_multiple" value="true"/>
|
|
143
|
+
<Option type="int" name="data_type" value="-1"/>
|
|
144
|
+
<Option type="invalid" name="default"/>
|
|
145
|
+
<Option type="invalid" name="defaultGui"/>
|
|
146
|
+
<Option type="bool" name="default_to_all_fields" value="true"/>
|
|
147
|
+
<Option type="QString" name="description" value="Base Layer Fields"/>
|
|
148
|
+
<Option type="int" name="flags" value="8"/>
|
|
149
|
+
<Option type="QString" name="help" value=""/>
|
|
150
|
+
<Option name="metadata"/>
|
|
151
|
+
<Option type="QString" name="name" value="base_layer_fields"/>
|
|
152
|
+
<Option type="QString" name="parameter_type" value="field"/>
|
|
153
|
+
<Option type="QString" name="parent_layer" value="base_layer"/>
|
|
154
|
+
</Option>
|
|
155
|
+
<Option type="Map" name="native:intersection_1:Intersection">
|
|
156
|
+
<Option type="bool" name="create_by_default" value="true"/>
|
|
157
|
+
<Option type="int" name="data_type" value="-1"/>
|
|
158
|
+
<Option type="invalid" name="default"/>
|
|
159
|
+
<Option type="invalid" name="defaultGui"/>
|
|
160
|
+
<Option type="QString" name="description" value="Intersection"/>
|
|
161
|
+
<Option type="int" name="flags" value="0"/>
|
|
162
|
+
<Option type="QString" name="help" value=""/>
|
|
163
|
+
<Option type="Map" name="metadata">
|
|
164
|
+
<Option type="QString" name="_modelChildId" value="native:intersection_1"/>
|
|
165
|
+
<Option type="QString" name="_modelChildOutputName" value="Intersection"/>
|
|
166
|
+
<Option type="QString" name="_modelChildProvider" value="native"/>
|
|
167
|
+
</Option>
|
|
168
|
+
<Option type="QString" name="name" value="native:intersection_1:Intersection"/>
|
|
169
|
+
<Option type="QString" name="parameter_type" value="sink"/>
|
|
170
|
+
<Option type="bool" name="supports_append" value="false"/>
|
|
171
|
+
<Option type="bool" name="supports_non_file_outputs" value="true"/>
|
|
172
|
+
</Option>
|
|
173
|
+
<Option type="Map" name="overlay_layer">
|
|
174
|
+
<Option type="List" name="data_types">
|
|
175
|
+
<Option type="int" value="2"/>
|
|
176
|
+
</Option>
|
|
177
|
+
<Option type="invalid" name="default"/>
|
|
178
|
+
<Option type="invalid" name="defaultGui"/>
|
|
179
|
+
<Option type="QString" name="description" value="Overlay Layer"/>
|
|
180
|
+
<Option type="int" name="flags" value="0"/>
|
|
181
|
+
<Option type="QString" name="help" value=""/>
|
|
182
|
+
<Option name="metadata"/>
|
|
183
|
+
<Option type="QString" name="name" value="overlay_layer"/>
|
|
184
|
+
<Option type="QString" name="parameter_type" value="source"/>
|
|
185
|
+
</Option>
|
|
186
|
+
<Option type="Map" name="overlay_layer_fields">
|
|
187
|
+
<Option type="bool" name="allow_multiple" value="true"/>
|
|
188
|
+
<Option type="int" name="data_type" value="-1"/>
|
|
189
|
+
<Option type="invalid" name="default"/>
|
|
190
|
+
<Option type="invalid" name="defaultGui"/>
|
|
191
|
+
<Option type="bool" name="default_to_all_fields" value="false"/>
|
|
192
|
+
<Option type="QString" name="description" value="Overlay Layer Fields"/>
|
|
193
|
+
<Option type="int" name="flags" value="0"/>
|
|
194
|
+
<Option type="QString" name="help" value=""/>
|
|
195
|
+
<Option name="metadata"/>
|
|
196
|
+
<Option type="QString" name="name" value="overlay_layer_fields"/>
|
|
197
|
+
<Option type="QString" name="parameter_type" value="field"/>
|
|
198
|
+
<Option type="QString" name="parent_layer" value="overlay_layer"/>
|
|
199
|
+
</Option>
|
|
200
|
+
</Option>
|
|
201
|
+
<Option name="parameterOrder"/>
|
|
202
|
+
<Option type="Map" name="parameters">
|
|
203
|
+
<Option type="Map" name="base_layer">
|
|
204
|
+
<Option type="QString" name="color" value=""/>
|
|
205
|
+
<Option type="Map" name="comment">
|
|
206
|
+
<Option type="QString" name="color" value=""/>
|
|
207
|
+
<Option type="QString" name="component_description" value=""/>
|
|
208
|
+
<Option type="double" name="component_height" value="60"/>
|
|
209
|
+
<Option type="double" name="component_pos_x" value="976"/>
|
|
210
|
+
<Option type="double" name="component_pos_y" value="349"/>
|
|
211
|
+
<Option type="double" name="component_width" value="100"/>
|
|
212
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
213
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
214
|
+
</Option>
|
|
215
|
+
<Option type="QString" name="component_description" value="base_layer"/>
|
|
216
|
+
<Option type="double" name="component_height" value="30"/>
|
|
217
|
+
<Option type="double" name="component_pos_x" value="776"/>
|
|
218
|
+
<Option type="double" name="component_pos_y" value="394"/>
|
|
219
|
+
<Option type="double" name="component_width" value="200"/>
|
|
220
|
+
<Option type="QString" name="name" value="base_layer"/>
|
|
221
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
222
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
223
|
+
</Option>
|
|
224
|
+
<Option type="Map" name="base_layer_fields">
|
|
225
|
+
<Option type="QString" name="color" value=""/>
|
|
226
|
+
<Option type="Map" name="comment">
|
|
227
|
+
<Option type="QString" name="color" value=""/>
|
|
228
|
+
<Option type="QString" name="component_description" value=""/>
|
|
229
|
+
<Option type="double" name="component_height" value="60"/>
|
|
230
|
+
<Option type="double" name="component_pos_x" value="369"/>
|
|
231
|
+
<Option type="double" name="component_pos_y" value="518"/>
|
|
232
|
+
<Option type="double" name="component_width" value="100"/>
|
|
233
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
234
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
235
|
+
</Option>
|
|
236
|
+
<Option type="QString" name="component_description" value="base_layer_fields"/>
|
|
237
|
+
<Option type="double" name="component_height" value="30"/>
|
|
238
|
+
<Option type="double" name="component_pos_x" value="394"/>
|
|
239
|
+
<Option type="double" name="component_pos_y" value="155"/>
|
|
240
|
+
<Option type="double" name="component_width" value="200"/>
|
|
241
|
+
<Option type="QString" name="name" value="base_layer_fields"/>
|
|
242
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
243
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
244
|
+
</Option>
|
|
245
|
+
<Option type="Map" name="overlay_layer">
|
|
246
|
+
<Option type="QString" name="color" value=""/>
|
|
247
|
+
<Option type="Map" name="comment">
|
|
248
|
+
<Option type="QString" name="color" value=""/>
|
|
249
|
+
<Option type="QString" name="component_description" value=""/>
|
|
250
|
+
<Option type="double" name="component_height" value="60"/>
|
|
251
|
+
<Option type="double" name="component_pos_x" value="1196"/>
|
|
252
|
+
<Option type="double" name="component_pos_y" value="15"/>
|
|
253
|
+
<Option type="double" name="component_width" value="100"/>
|
|
254
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
255
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
256
|
+
</Option>
|
|
257
|
+
<Option type="QString" name="component_description" value="overlay_layer"/>
|
|
258
|
+
<Option type="double" name="component_height" value="30"/>
|
|
259
|
+
<Option type="double" name="component_pos_x" value="863"/>
|
|
260
|
+
<Option type="double" name="component_pos_y" value="173"/>
|
|
261
|
+
<Option type="double" name="component_width" value="200"/>
|
|
262
|
+
<Option type="QString" name="name" value="overlay_layer"/>
|
|
263
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
264
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
265
|
+
</Option>
|
|
266
|
+
<Option type="Map" name="overlay_layer_fields">
|
|
267
|
+
<Option type="QString" name="color" value=""/>
|
|
268
|
+
<Option type="Map" name="comment">
|
|
269
|
+
<Option type="QString" name="color" value=""/>
|
|
270
|
+
<Option type="QString" name="component_description" value=""/>
|
|
271
|
+
<Option type="double" name="component_height" value="60"/>
|
|
272
|
+
<Option type="double" name="component_pos_x" value="1283"/>
|
|
273
|
+
<Option type="double" name="component_pos_y" value="15"/>
|
|
274
|
+
<Option type="double" name="component_width" value="100"/>
|
|
275
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
276
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
277
|
+
</Option>
|
|
278
|
+
<Option type="QString" name="component_description" value="overlay_layer_fields"/>
|
|
279
|
+
<Option type="double" name="component_height" value="30"/>
|
|
280
|
+
<Option type="double" name="component_pos_x" value="1049"/>
|
|
281
|
+
<Option type="double" name="component_pos_y" value="236"/>
|
|
282
|
+
<Option type="double" name="component_width" value="200"/>
|
|
283
|
+
<Option type="QString" name="name" value="overlay_layer_fields"/>
|
|
284
|
+
<Option type="bool" name="outputs_collapsed" value="true"/>
|
|
285
|
+
<Option type="bool" name="parameters_collapsed" value="true"/>
|
|
286
|
+
</Option>
|
|
287
|
+
</Option>
|
|
288
|
+
</Option>
|