Open alessio-alfonsetti opened 8 years ago
Instead of reject zip archives which contains a valid shapefile plus other files:
this things can be performed without the need for archive extraction see here http://thinktibits.blogspot.it/2013/02/Delete-Files-From-ZIP-Archive-Java-Example.html
2015-09-10 11:24 GMT+02:00 Alessio notifications@github.com:
New feature to upload single/multiple files is on the way. The file types that will be considered: 1) shape, 2) raster, 3) time series.
The expected files are:
- SHAPE: made up of 4 files (.shp, .shx, .prj, .dbf); no other files will be considered;
- RASTER: made up of 1 geotiff file (.tiff).
- TIMESERIES.
Temporary directories for the file types are:
- SHAPE: /var/tmp/shp
- RASTER: /var/tmp/geotiff
- TIMESERIES: /var/tmp/timeseries
The workflow will be as follow:
- the end user will upload single or multiple files in a .zip archive;
- the files will be copied in a temporary directory, according to the file type uploaded;
- the system will unzip and run some security controls (at this stage based only on the availability of the expected number and type of files according to the file type). In case the uploaded file is neither shape nor raster nor time series, an exception will be generated and the files removed from the temporary directory;
- the files will be moved on the right GeoBatch directory according to the file type to initiate the GeoBatch ingestion flow.
— Reply to this email directly or view it on GitHub https://github.com/slms4redd/admin-interface/issues/70.
New feature to upload single/multiple files is on the way. The file types that will be considered: 1) shape, 2) raster, 3) time series.
The expected files are:
Temporary directories for the file types are:
The workflow will be as follow: