New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the option "Write absolute path" from gdal tileindex tool #19704
Comments
Author Name: Giovanni Manghi (@gioman) does the gdal command, issued by the cli, return the correct results?
|
Author Name: Pedro Venâncio (Pedro Venâncio) Yes Giovanni, in the cli, using -write_absolute_path generates absolute paths. Without that option, it generates relative paths. I'm with GDAL 1.11.1. |
Author Name: Giovanni Manghi (@gioman)
|
Author Name: Jürgen Fischer (@jef-n)
|
Author Name: Pedro Venâncio (Pedro Venâncio) Now I see that this isn't a QGIS problem, because it also happens at the command line. If I put the command line in the folder where the raster files are located, gdaltindex works well, ie, with -write_absolute_path option, absolute paths are saved in the attribute table, and without -write_absolute_path option are saved only the names of files.
But if I reference the input raster files with the absolute paths (for example, when files are in different folders), the -write_absolute_path option has no influence, because absolute paths are always recorded in the attribute table.
Like Even says here http://osgeo-org.1560.x6.nabble.com/gdal-dev-gdaltindex-produces-absolute-paths-td5188952.html and http://www.gdal.org/gdaltindex.html
Thus, unless the raster files are stored in the same folder where QGIS Raster Tile Index tool runs, we will always have the absolute path in the result. |
Author Name: Giovanni Manghi (@gioman)
yes, because anyway as it is implemented in qgis the path to input files (in the command line) will be always absolute, returning always an absolute path in the index.
|
Author Name: Pedro Venâncio (Pedro Venâncio) Pull request submitted to remove the "Write absolute path" option from gdal tileindex: #2343
|
Author Name: Pedro Venâncio (Pedro Venâncio)
Original Redmine Issue: 11428
Affected QGIS version: master
Redmine category:gdal_tools
Raster Tile Index (gdaltindex)(Raster -> Miscellaneous -> Tile Index)
always generates absolute paths, regardless of the "Write absolute path" option is selected or not.
Tested on QGIS 2.5.0-102 (OSGeo4W).
Related issue(s): #14049 (relates)
Redmine related issue(s): 4064
The text was updated successfully, but these errors were encountered: