Opened 7 years ago

Closed 5 years ago

#6908 closed enhancement (wontfix)

gdal_renam utility program proposal

Reported by: MattLatt Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

I'would like to propose to the community a C++ utility program that I've made for my needs, but I think it may be helpfull for other GDAL Users.

I named it "gdal_rename", the goal of this application is to allow the user to rename a raster dataset with it's SRS coordinates including it's sibling files (world file...).

Orginaly it was made to rename tiled raster datasets downloaded from different sources to have a consistent naming pattern or to update the name after a SRS change with gdalwarp.

User can choose a prefix, a suffix, a corner (W/N by default) of the bounding box of the dataset as reference point. He can also specify a separator for coordinate value, the numeric format of coordinates (integer, double), the number of digits and the format of the sign (wheter or not using +/- , or N/S and E/W).

There is also an option to output the rename shell commands in the console, instead of performing it (Usefull to generate batch rename shell commands).

The app rename one file (and it's sibling) at a time with collision check.

The code is here: https://github.com/MattLatt/gdal_rename

If you think it could be usefull, I can try to make a pull request to the [​https://github.com/OSGeo/gdal] repository.

I think it can live as an indpendant utility but maybe it can be integrated in the gdalmanage tool.

Best regards.

Mathieu Lattes

Change History (3)

comment:1 by Even Rouault, 7 years ago

Having both that utility and "gdalmanage rename" could be confusing. Your utility could be merged in "gdalmanage rename" with the new options you propose

GDALRenameDataset() used in gdalamange rename should already take care of renaming side car files, without the hardcoded cases in your code.

Anyway, you can submit the idea on gdal-dev mailing list to see if it raises interest.

Last edited 7 years ago by Even Rouault (previous) (diff)

comment:2 by MattLatt, 7 years ago

duly noted Even, I'll ask the gdal-dev mailing list.

comment:3 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.