Opened 21 months ago

Last modified 2 months 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.1
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 (6)

comment:1 in reply to:  description Changed 21 months ago by hellik

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 Changed 21 months ago by hellik

Example:

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

comment:3 Changed 14 months ago by neteler

Milestone: 7.4.07.4.1

Ticket retargeted after milestone closed

comment:4 Changed 10 months ago by neteler

Milestone: 7.4.17.4.2

comment:5 Changed 6 months ago by martinl

Milestone: 7.4.27.6.0

All enhancement tickets should be assigned to 7.6 milestone.

comment:6 Changed 2 months ago by martinl

Milestone: 7.6.07.6.1

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.