Skip to content

Commit 391db7f

Browse files
authored
Merge pull request #12711 from rouault/gdal_translate_warp
Add hidden alias 'gdal [raster|vector] translate' for 'gdal [raster|vector] convert' …
2 parents 5a3826e + 0318366 commit 391db7f

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

apps/gdalalg_convert.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ class GDALConvertAlgorithm
3232
"'gdal vector convert').";
3333
static constexpr const char *HELP_URL = "/programs/gdal_convert.html";
3434

35+
static std::vector<std::string> GetAliasesStatic()
36+
{
37+
return {GDALAlgorithmRegistry::HIDDEN_ALIAS_SEPARATOR, "translate"};
38+
}
39+
3540
GDALConvertAlgorithm()
3641
: GDALDispatcherAlgorithm(NAME, DESCRIPTION, HELP_URL)
3742
{

apps/gdalalg_raster_convert.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ class GDALRasterConvertAlgorithm final : public GDALAlgorithm
2929
static constexpr const char *HELP_URL =
3030
"/programs/gdal_raster_convert.html";
3131

32+
static std::vector<std::string> GetAliasesStatic()
33+
{
34+
return {GDALAlgorithmRegistry::HIDDEN_ALIAS_SEPARATOR, "translate"};
35+
}
36+
3237
explicit GDALRasterConvertAlgorithm(bool openForMixedRasterVector = false);
3338

3439
GDALDataset *GetDatasetRef()

apps/gdalalg_raster_reproject.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ class GDALRasterReprojectAlgorithm /* non final */
3232
static constexpr const char *HELP_URL =
3333
"/programs/gdal_raster_reproject.html";
3434

35+
static std::vector<std::string> GetAliasesStatic()
36+
{
37+
return {GDALAlgorithmRegistry::HIDDEN_ALIAS_SEPARATOR, "warp"};
38+
}
39+
3540
explicit GDALRasterReprojectAlgorithm(bool standaloneStep = false);
3641

3742
bool CanHandleNextStep(GDALPipelineStepAlgorithm *) const override;

apps/gdalalg_vector_convert.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ class GDALVectorConvertAlgorithm final : public GDALAlgorithm
2929
static constexpr const char *HELP_URL =
3030
"/programs/gdal_vector_convert.html";
3131

32+
static std::vector<std::string> GetAliasesStatic()
33+
{
34+
return {GDALAlgorithmRegistry::HIDDEN_ALIAS_SEPARATOR, "translate"};
35+
}
36+
3237
GDALVectorConvertAlgorithm();
3338

3439
void SetDataset(GDALDataset *poDS)

0 commit comments

Comments
 (0)