📘 API Reference Data Integration¶
Georama Data Integration¶
admin
¶
CustomDataSetAdmin
¶
Bases: DataSetAdmin
Source code in src/georama/data_integration/admin.py
260 261 |
|
DataSetAdmin
¶
Bases: ModelAdmin
Source code in src/georama/data_integration/admin.py
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
|
fields = ['name', 'title', 'bbox', 'minimum_scale', 'maximum_scale', 'source_detail', 'crs_detail', 'path', 'driver']
class-attribute
instance-attribute
¶
list_display = ['name']
class-attribute
instance-attribute
¶
readonly_fields = ['name', 'title', 'bbox', 'source_detail', 'crs_detail', 'path', 'driver']
class-attribute
instance-attribute
¶
crs_detail(obj)
¶
Source code in src/georama/data_integration/admin.py
243 244 245 246 247 248 249 250 |
|
source_detail(obj)
¶
Source code in src/georama/data_integration/admin.py
232 233 234 235 236 237 238 239 |
|
MandantAdmin
¶
Bases: ModelAdmin
Source code in src/georama/data_integration/admin.py
295 296 |
|
ProjectAdmin
¶
Bases: ModelAdmin
Source code in src/georama/data_integration/admin.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 |
|
list_display = ['name', 'mandant_name', 'vector_dataset_count', 'raster_dataset_count', 'custom_dataset_count', 'project_file_uptodate']
class-attribute
instance-attribute
¶
custom_dataset_count(obj)
¶
Source code in src/georama/data_integration/admin.py
150 151 |
|
get_readonly_fields(request, obj=None)
¶
Source code in src/georama/data_integration/admin.py
204 205 |
|
get_urls()
¶
Source code in src/georama/data_integration/admin.py
178 179 180 181 182 183 184 185 186 187 |
|
mandant_name(obj)
¶
Source code in src/georama/data_integration/admin.py
171 172 173 |
|
project_file_uptodate(obj)
¶
Source code in src/georama/data_integration/admin.py
156 157 158 159 160 161 162 163 164 165 166 |
|
qgis_projects(request, extra_context=None)
¶
Source code in src/georama/data_integration/admin.py
189 190 191 192 193 194 195 196 197 198 199 200 201 202 |
|
raster_dataset_count(obj)
¶
Source code in src/georama/data_integration/admin.py
144 145 |
|
vector_dataset_count(obj)
¶
Source code in src/georama/data_integration/admin.py
138 139 |
|
QgisProject
dataclass
¶
Source code in src/georama/data_integration/admin.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
|
QgisProjectFileStructure
dataclass
¶
Source code in src/georama/data_integration/admin.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
|
groups = field(default_factory=list)
class-attribute
instance-attribute
¶
path
instance-attribute
¶
__init__(path, groups=list())
¶
create_groups(allowed_extensions)
¶
Source code in src/georama/data_integration/admin.py
116 117 118 119 120 |
|
dirs()
¶
Source code in src/georama/data_integration/admin.py
106 107 108 109 110 111 112 113 114 |
|
find_group_by_name(name)
¶
Source code in src/georama/data_integration/admin.py
122 123 124 125 |
|
is_dir(name)
¶
Source code in src/georama/data_integration/admin.py
103 104 |
|
QgisProjectGroup
dataclass
¶
Source code in src/georama/data_integration/admin.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
|
config_paths
property
¶
name
instance-attribute
¶
parent
instance-attribute
¶
path
property
¶
project_paths
property
¶
projects = field(default_factory=list)
class-attribute
instance-attribute
¶
__init__(parent, name, projects=list())
¶
create_projects(allowed_extensions)
¶
Source code in src/georama/data_integration/admin.py
81 82 83 84 85 86 87 88 89 90 |
|
find_project_by_name(name)
¶
Source code in src/georama/data_integration/admin.py
92 93 94 95 |
|
is_file(name)
¶
Source code in src/georama/data_integration/admin.py
78 79 |
|
RasterDataSetAdmin
¶
Bases: DataSetAdmin
Source code in src/georama/data_integration/admin.py
255 256 257 |
|
VectorDataSetAdmin
¶
Bases: DataSetAdmin
Source code in src/georama/data_integration/admin.py
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 |
|
fields = DataSetAdmin.fields + ['fields_detail']
class-attribute
instance-attribute
¶
list_display = ['name', 'mandant_name', 'project_name', 'field_count']
class-attribute
instance-attribute
¶
readonly_fields = DataSetAdmin.fields + ['fields_detail']
class-attribute
instance-attribute
¶
field_count(obj)
¶
Source code in src/georama/data_integration/admin.py
286 287 288 289 |
|
fields_detail(obj)
¶
Source code in src/georama/data_integration/admin.py
275 276 277 278 279 280 281 282 |
|
mandant_name(obj)
¶
Source code in src/georama/data_integration/admin.py
269 270 |
|
project_name(obj)
¶
Source code in src/georama/data_integration/admin.py
272 273 |
|
apps
¶
QmeleonConfig
¶
Bases: AppConfig
Source code in src/georama/data_integration/apps.py
4 5 6 7 |
|
data_integration_config
¶
Config
¶
Source code in src/georama/data_integration/data_integration_config.py
4 5 6 7 8 9 10 11 |
|
migrations
¶
0001_initial
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0001_initial.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
dependencies = []
class-attribute
instance-attribute
¶
initial = True
class-attribute
instance-attribute
¶
operations = [migrations.CreateModel(name='Project', fields=[('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=1000, unique=True)), ('title', models.CharField(max_length=1000)), ('version', models.CharField(max_length=1000))]), migrations.CreateModel(name='DataSet', fields=[('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=1000, unique=True)), ('title', models.CharField(max_length=1000)), ('bbox', models.CharField(max_length=1000)), ('path', models.CharField(max_length=10000)), ('style', models.TextField()), ('driver', models.CharField(max_length=50)), ('type', models.CharField(max_length=50)), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='datasets', related_query_name='dataset', to='data_integration.project'))])]
class-attribute
instance-attribute
¶
0002_alter_project_unique_together
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0002_alter_project_unique_together.py
6 7 8 9 10 11 12 13 14 15 16 17 |
|
0003_rasterdataset_vectordataset_field_delete_dataset
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0003_rasterdataset_vectordataset_field_delete_dataset.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 |
|
dependencies = [('data_integration', '0002_alter_project_unique_together')]
class-attribute
instance-attribute
¶
operations = [migrations.CreateModel(name='RasterDataSet', fields=[('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=1000, unique=True)), ('title', models.CharField(max_length=1000)), ('bbox', models.CharField(max_length=1000)), ('path', models.CharField(max_length=10000)), ('style', models.TextField()), ('driver', models.CharField(max_length=50)), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='raster_datasets', related_query_name='raster_dataset', to='data_integration.project'))], options={'abstract': False}), migrations.CreateModel(name='VectorDataSet', fields=[('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=1000, unique=True)), ('title', models.CharField(max_length=1000)), ('bbox', models.CharField(max_length=1000)), ('path', models.CharField(max_length=10000)), ('style', models.TextField()), ('driver', models.CharField(max_length=50)), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='vector_datasets', related_query_name='vector_dataset', to='data_integration.project'))], options={'abstract': False}), migrations.CreateModel(name='Field', fields=[('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=1000)), ('type', models.CharField(max_length=1000)), ('vector_dataset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='fields', related_query_name='field', to='data_integration.vectordataset'))]), migrations.DeleteModel(name='DataSet')]
class-attribute
instance-attribute
¶
0004_alter_field_unique_together_and_more
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0004_alter_field_unique_together_and_more.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
dependencies = [('data_integration', '0003_rasterdataset_vectordataset_field_delete_dataset')]
class-attribute
instance-attribute
¶
operations = [migrations.AlterUniqueTogether(name='field', unique_together={('name', 'vector_dataset')}), migrations.AlterUniqueTogether(name='rasterdataset', unique_together={('name', 'project')}), migrations.AlterUniqueTogether(name='vectordataset', unique_together={('name', 'project')})]
class-attribute
instance-attribute
¶
0005_rasterdataset_source_vectordataset_source
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0005_rasterdataset_source_vectordataset_source.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
dependencies = [('data_integration', '0004_alter_field_unique_together_and_more')]
class-attribute
instance-attribute
¶
operations = [migrations.AddField(model_name='rasterdataset', name='source', field=models.JSONField(default=dict)), migrations.AddField(model_name='vectordataset', name='source', field=models.JSONField(default=dict))]
class-attribute
instance-attribute
¶
0006_project_hash
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0006_project_hash.py
6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
0007_alter_project_unique_together_project_group_and_more
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0007_alter_project_unique_together_project_group_and_more.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|
dependencies = [('data_integration', '0006_project_hash')]
class-attribute
instance-attribute
¶
operations = [migrations.AlterUniqueTogether(name='project', unique_together=set()), migrations.AddField(model_name='project', name='group', field=models.CharField(max_length=1000, null=True)), migrations.AddField(model_name='project', name='integration_date', field=models.DateTimeField(default=datetime.datetime.now)), migrations.AlterUniqueTogether(name='project', unique_together={('name', 'version', 'group')})]
class-attribute
instance-attribute
¶
0008_alter_project_name
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0008_alter_project_name.py
6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
0009_alter_rasterdataset_name_alter_vectordataset_name
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0009_alter_rasterdataset_name_alter_vectordataset_name.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
dependencies = [('data_integration', '0008_alter_project_name')]
class-attribute
instance-attribute
¶
operations = [migrations.AlterField(model_name='rasterdataset', name='name', field=models.CharField(max_length=1000)), migrations.AlterField(model_name='vectordataset', name='name', field=models.CharField(max_length=1000))]
class-attribute
instance-attribute
¶
0010_rasterdataset_qgis_layer_id_and_more
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0010_rasterdataset_qgis_layer_id_and_more.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
dependencies = [('data_integration', '0009_alter_rasterdataset_name_alter_vectordataset_name')]
class-attribute
instance-attribute
¶
operations = [migrations.AddField(model_name='rasterdataset', name='qgis_layer_id', field=models.CharField(default='intermediate', max_length=1000), preserve_default=False), migrations.AddField(model_name='vectordataset', name='qgis_layer_id', field=models.CharField(default='intermediate', max_length=1000), preserve_default=False)]
class-attribute
instance-attribute
¶
0011_rasterdataset_crs_vectordataset_crs
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0011_rasterdataset_crs_vectordataset_crs.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
dependencies = [('data_integration', '0010_rasterdataset_qgis_layer_id_and_more')]
class-attribute
instance-attribute
¶
operations = [migrations.AddField(model_name='rasterdataset', name='crs', field=models.JSONField(default=dict)), migrations.AddField(model_name='vectordataset', name='crs', field=models.JSONField(default=dict))]
class-attribute
instance-attribute
¶
0012_rasterdataset_bbox_wgs84_vectordataset_bbox_wgs84
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0012_rasterdataset_bbox_wgs84_vectordataset_bbox_wgs84.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
dependencies = [('data_integration', '0011_rasterdataset_crs_vectordataset_crs')]
class-attribute
instance-attribute
¶
operations = [migrations.AddField(model_name='rasterdataset', name='bbox_wgs84', field=models.CharField(default='0,0,0,0', max_length=1000), preserve_default=False), migrations.AddField(model_name='vectordataset', name='bbox_wgs84', field=models.CharField(default='0,0,0,0', max_length=1000), preserve_default=False)]
class-attribute
instance-attribute
¶
0013_customdataset
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0013_customdataset.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|
dependencies = [('data_integration', '0012_rasterdataset_bbox_wgs84_vectordataset_bbox_wgs84')]
class-attribute
instance-attribute
¶
operations = [migrations.CreateModel(name='CustomDataSet', fields=[('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=1000)), ('qgis_layer_id', models.CharField(max_length=1000)), ('title', models.CharField(max_length=1000)), ('bbox', models.CharField(max_length=1000)), ('bbox_wgs84', models.CharField(max_length=1000)), ('path', models.CharField(max_length=10000)), ('source', models.JSONField(default=dict)), ('style', models.TextField()), ('driver', models.CharField(max_length=50)), ('crs', models.JSONField(default=dict)), ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='custom_datasets', related_query_name='custom_dataset', to='data_integration.project'))], options={'unique_together': {('name', 'project')}})]
class-attribute
instance-attribute
¶
0014_mandant_alter_project_unique_together_and_more
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0014_mandant_alter_project_unique_together_and_more.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
dependencies = [('data_integration', '0013_customdataset')]
class-attribute
instance-attribute
¶
operations = [migrations.CreateModel(name='Mandant', fields=[('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(unique=True))]), migrations.AlterUniqueTogether(name='project', unique_together=set()), migrations.AddField(model_name='project', name='mandant', field=models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, related_name='mandants', related_query_name='mandant', to='data_integration.mandant')), migrations.AlterUniqueTogether(name='project', unique_together={('name', 'version', 'mandant')}), migrations.RemoveField(model_name='project', name='group')]
class-attribute
instance-attribute
¶
0015_alter_project_mandant
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0015_alter_project_mandant.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
dependencies = [('data_integration', '0014_mandant_alter_project_unique_together_and_more')]
class-attribute
instance-attribute
¶
operations = [migrations.AlterField(model_name='project', name='mandant', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='mandants', related_query_name='mandant', to='data_integration.mandant'))]
class-attribute
instance-attribute
¶
0016_mandant_description
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0016_mandant_description.py
6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
0017_customdataset_remote_rasterdataset_remote_and_more
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0017_customdataset_remote_rasterdataset_remote_and_more.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
dependencies = [('data_integration', '0016_mandant_description')]
class-attribute
instance-attribute
¶
operations = [migrations.AddField(model_name='customdataset', name='remote', field=models.BooleanField(default=False)), migrations.AddField(model_name='rasterdataset', name='remote', field=models.BooleanField(default=False)), migrations.AddField(model_name='vectordataset', name='remote', field=models.BooleanField(default=False))]
class-attribute
instance-attribute
¶
0018_remove_customdataset_remote_and_more
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0018_remove_customdataset_remote_and_more.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
dependencies = [('data_integration', '0017_customdataset_remote_rasterdataset_remote_and_more')]
class-attribute
instance-attribute
¶
operations = [migrations.RemoveField(model_name='customdataset', name='remote'), migrations.RemoveField(model_name='rasterdataset', name='remote'), migrations.RemoveField(model_name='vectordataset', name='remote')]
class-attribute
instance-attribute
¶
0019_vectordataset_extent_buffer
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0019_vectordataset_extent_buffer.py
6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
0020_remove_vectordataset_extent_buffer
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0020_remove_vectordataset_extent_buffer.py
6 7 8 9 10 11 12 13 14 15 16 17 |
|
0021_customdataset_maximum_scale_and_more
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0021_customdataset_maximum_scale_and_more.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
dependencies = [('data_integration', '0020_remove_vectordataset_extent_buffer')]
class-attribute
instance-attribute
¶
operations = [migrations.AddField(model_name='customdataset', name='maximum_scale', field=models.FloatField(null=True)), migrations.AddField(model_name='customdataset', name='minimum_scale', field=models.FloatField(null=True)), migrations.AddField(model_name='rasterdataset', name='maximum_scale', field=models.FloatField(null=True)), migrations.AddField(model_name='rasterdataset', name='minimum_scale', field=models.FloatField(null=True)), migrations.AddField(model_name='vectordataset', name='maximum_scale', field=models.FloatField(null=True)), migrations.AddField(model_name='vectordataset', name='minimum_scale', field=models.FloatField(null=True))]
class-attribute
instance-attribute
¶
0022_alter_customdataset_qgis_layer_id_and_more
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0022_alter_customdataset_qgis_layer_id_and_more.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
|
dependencies = [('data_integration', '0021_customdataset_maximum_scale_and_more')]
class-attribute
instance-attribute
¶
operations = [migrations.AlterField(model_name='customdataset', name='qgis_layer_id', field=models.CharField(max_length=1000, unique=True)), migrations.AlterField(model_name='rasterdataset', name='qgis_layer_id', field=models.CharField(max_length=1000, unique=True)), migrations.AlterField(model_name='vectordataset', name='qgis_layer_id', field=models.CharField(max_length=1000, unique=True))]
class-attribute
instance-attribute
¶
0023_remove_customdataset_style_and_more
¶
Migration
¶
Bases: Migration
Source code in src/georama/data_integration/migrations/0023_remove_customdataset_style_and_more.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
dependencies = [('data_integration', '0022_alter_customdataset_qgis_layer_id_and_more')]
class-attribute
instance-attribute
¶
operations = [migrations.RemoveField(model_name='customdataset', name='style'), migrations.RemoveField(model_name='rasterdataset', name='style'), migrations.RemoveField(model_name='vectordataset', name='style'), migrations.AddField(model_name='customdataset', name='styles', field=models.JSONField(default=dict)), migrations.AddField(model_name='rasterdataset', name='styles', field=models.JSONField(default=dict)), migrations.AddField(model_name='vectordataset', name='styles', field=models.JSONField(default=dict))]
class-attribute
instance-attribute
¶
models
¶
log = logging.getLogger(__name__)
module-attribute
¶
CustomDataSet
¶
Bases: DataSet
Source code in src/georama/data_integration/models.py
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
|
DataSet
¶
Bases: Model
Source code in src/georama/data_integration/models.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 |
|
bbox = models.CharField(max_length=1000)
class-attribute
instance-attribute
¶
bbox_wgs84 = models.CharField(max_length=1000)
class-attribute
instance-attribute
¶
crs = models.JSONField(default=dict)
class-attribute
instance-attribute
¶
crs_to_qsl
property
¶
driver = models.CharField(max_length=50)
class-attribute
instance-attribute
¶
maximum_scale = models.FloatField(null=True)
class-attribute
instance-attribute
¶
minimum_scale = models.FloatField(null=True)
class-attribute
instance-attribute
¶
name = models.CharField(null=False, max_length=1000)
class-attribute
instance-attribute
¶
path = models.CharField(max_length=10000)
class-attribute
instance-attribute
¶
qgis_layer_id = models.CharField(null=False, max_length=1000, unique=True)
class-attribute
instance-attribute
¶
source = models.JSONField(default=dict)
class-attribute
instance-attribute
¶
source_to_qsl
property
¶
styles = models.JSONField(default=dict)
class-attribute
instance-attribute
¶
title = models.CharField(max_length=1000)
class-attribute
instance-attribute
¶
Meta
¶
Source code in src/georama/data_integration/models.py
53 54 |
|
abstract = True
class-attribute
instance-attribute
¶
__str__()
¶
Source code in src/georama/data_integration/models.py
98 99 |
|
Field
¶
Bases: Model
Source code in src/georama/data_integration/models.py
201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 |
|
name = models.CharField(null=False, max_length=1000)
class-attribute
instance-attribute
¶
type = models.CharField(null=False, max_length=1000)
class-attribute
instance-attribute
¶
vector_dataset = models.ForeignKey(VectorDataSet, related_name='fields', related_query_name='field', on_delete=models.CASCADE)
class-attribute
instance-attribute
¶
Mandant
¶
Bases: Model
Source code in src/georama/data_integration/models.py
22 23 24 25 26 27 |
|
Project
¶
Bases: Model
Source code in src/georama/data_integration/models.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
hash = models.CharField(max_length=20000, null=True, blank=True)
class-attribute
instance-attribute
¶
integration_date = models.DateTimeField(default=datetime.datetime.now)
class-attribute
instance-attribute
¶
mandant = models.ForeignKey(Mandant, related_name='mandants', related_query_name='mandant', on_delete=models.CASCADE, null=True)
class-attribute
instance-attribute
¶
name = models.CharField(null=False, max_length=1000)
class-attribute
instance-attribute
¶
title = models.CharField(max_length=1000)
class-attribute
instance-attribute
¶
version = models.CharField(max_length=1000)
class-attribute
instance-attribute
¶
RasterDataSet
¶
Bases: DataSet
Source code in src/georama/data_integration/models.py
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 |
|
VectorDataSet
¶
Bases: DataSet
Source code in src/georama/data_integration/models.py
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
|
tests
¶
urls
¶
URL configuration for core project.
The urlpatterns
list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/5.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
views
¶
log = logging.getLogger(__name__)
module-attribute
¶
RegisterQgisProject
¶
Bases: View
Source code in src/georama/data_integration/views.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
|
find_config_vector_dataset_by_id(vector_datasets, id)
staticmethod
¶
Source code in src/georama/data_integration/views.py
46 47 48 49 50 |
|
find_config_vector_dataset_field_by_name(vector_dataset, name)
staticmethod
¶
Source code in src/georama/data_integration/views.py
40 41 42 43 44 |
|
get(request, mandant_name, project_name, **kwargs)
¶
Source code in src/georama/data_integration/views.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
|
get_vector_dataset_by_id(id)
¶
Source code in src/georama/data_integration/views.py
33 34 35 36 37 38 |
|
load_project_config(mandant_name, project_name)
staticmethod
¶
Source code in src/georama/data_integration/views.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|