Opened 7 years ago

Last modified 6 years ago

#3364 new enhancement

Zip file and url support for r.import and v.import

Reported by: huhabla Owned by: grass-dev@…
Priority: minor Milestone: 7.6.2
Component: Raster Version: svn-trunk
Keywords: r.import, v.import, zip support Cc:
CPU: Unspecified Platform: Unspecified

Description

This is a feature request to add support for zip files and direct URL download to r.import and v.import.

Zip files may contain a tiff file, shape files or any other zip-compressible geodata that can be imported y r.in.gdal and v.in.ogr.

Checks for zip-bombs should be included. Nested zip files are not supported. Counting of files that are included in the archives must be performed. By default, only a single file is supported in the archive, with the exception of formats that require multiple files like shape-files.

The URL support must check if the files are accessible. HTTP, HTTPS and FTP requests should be supported as well as authentication and proxy configuration. Mimetype check must be performed before the file is downloaded by r.import or v.import via the wget command.

Change History (7)

in reply to:  description comment:1 by hellik, 7 years ago

Replying to huhabla:

This is a feature request to add support for zip files and direct URL download to r.import and v.import.

Zip files may contain a tiff file, shape files or any other zip-compressible geodata that can be imported y r.in.gdal and v.in.ogr.

Checks for zip-bombs should be included. Nested zip files are not supported. Counting of files that are included in the archives must be performed. By default, only a single file is supported in the archive, with the exception of formats that require multiple files like shape-files.

The URL support must check if the files are accessible. HTTP, HTTPS and FTP requests should be supported as well as authentication and proxy configuration. Mimetype check must be performed before the file is downloaded by r.import or v.import via the wget command.

There is a nice gdal Utility: gdal_ls

Project:  GDAL samples
 Purpose:  Display the list of files in a virtual directory, like /vsicurl or /vsizip

https://trac.osgeo.org/gdal/browser/trunk/gdal/swig/python/samples/gdal_ls.py

comment:2 by hellik, 7 years ago

Example:

# list all files in a zipped file by gdal_ls.py
gdal_ls /vsizip/orthophotos.zip/dataset

comment:3 by neteler, 7 years ago

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:4 by neteler, 6 years ago

Milestone: 7.4.17.4.2

comment:5 by martinl, 6 years ago

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:6 by martinl, 6 years ago

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

comment:7 by martinl, 6 years ago

Milestone: 7.6.17.6.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.