nens / threedi-results-analysis

Plugin for working with 3Di models in QGIS
GNU General Public License v3.0
7 stars 4 forks source link

Add processing tool Export Laterals to CSV and JSON #593

Open leendertvanwolfswinkel opened 3 years ago

leendertvanwolfswinkel commented 3 years ago

To be able to use laterals data from a sqlite in a simulation using the QGIS API Client, you need a CSV file. If you have stored your laterals timeseries in the spatialite, you have to manually export this data and rearrange it to the proper format. An exporter would fix this.

Simulation templates based on the spatialite would reduce the need for this (if the laterals are included in the simulation template), but still be needed to make small changes to the laterals without having to upload the entire spatialite again.

Should also include the option to choose output format (CSV to be used in the simulation wizard or JSON to be used elsewhere)

leendertvanwolfswinkel commented 2 years ago

Current workflow (export with native QGIS gui functionality):

1D Laterals The CSV file format is generated by a right-mouse click on table: v2_1d_lateral. Then choose export –> save features as –> Select csv as output format.

2D Laterals

Required output format:

X,Y,type,id,timeseries
6.27403,52.52250,"1","1","0,45
28800,45"

Export options: