C03 Import Data¶
Save all land occupancy data to the database.
Command ¶
Bases: BaseCommand
Source code in back/iarbre_data/management/commands/c03_import_data.py
handle(*args, **options) ¶
Save all land occupancy data to the database.
Source code in back/iarbre_data/management/commands/c03_import_data.py
read_data(data_config) ¶
Read data from a file or URL and return a GeoDataFrame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data_config | dict | Contains either URL of the data or path to the file. | required |
Returns:
| Name | Type | Description |
|---|---|---|
df | GeoDataFrame | Use SRID_DB and null and not valid geometry are removed. |