Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

rouault
Copy link
Member

@rouault rouault commented Jan 7, 2025

and install it in standard ${prefix}/share/bash-completion/completions directory

Demo:

source ./scripts/projinfo-bash-completion.sh
$ projinfo <TAB><TAB>
EPSG:      ESRI:      IAU_2015:  IGNF:      NKG:       NRCAN:     OGC:       PROJ:
$ projinfo -<TAB><TAB>
-3d                                        --boundcrs-to-wgs84                         --list-crs                                  --searchpaths
--accuracy                                  --c-ify                                     --main-db-path                              --show-superseded
--allow-ellipsoidal-height-as-vertical-crs  --crs-extent-use--grid-check                -o                                          --single-line
--area                                      --dump-db-structure                         --output-id                                 --spatial-test
--authority                                 --hide-ballpark                             --pivot-crs                                 --summary
--aux-db-path                               --identify                                  -q
--bbox                                      -k                                          --remote-data
$ projinfo -o <TAB><TAB>
all        PROJ       PROJJSON   SQL        WKT1:ESRI  WKT1:GDAL  WKT2:2015  WKT2:2019
$ projinfo "NAD83(2011) <TAB><TAB>
NAD83(2011)                                                                NAD83(2011) / New Mexico West
NAD83(2011) / Adjusted Jackson (ftUS)                                      NAD83(2011) / New Mexico West (ftUS)
NAD83(2011) / Alabama East                                                 NAD83(2011) / New York Central
[ ... snip ... ]
$ projinfo EPSG:43<TAB><TAB>
4322 -- WGS 72    4324 -- WGS 72BE  4326 -- WGS 84

@rouault rouault added the funded through GSP Work funded through the GDAL Sponsorship Program label Jan 7, 2025
@rouault rouault added this to the 9.6.0 milestone Jan 7, 2025
@rouault rouault force-pushed the projinfo_bash_completion branch 3 times, most recently from 55d32e2 to 0d4b97f Compare January 7, 2025 04:30
@kbevers
Copy link
Member

kbevers commented Jan 7, 2025

This is absolutely fantastic, Even! Very cool addition, looking forward to trying it when I get the chance.

and install it in standard ${prefix}/share/bash-completion/completions directory

Demo:

```
source ./scripts/projinfo-bash-completion.sh
```

```
$ projinfo <TAB><TAB>
EPSG:      ESRI:      IAU_2015:  IGNF:      NKG:       NRCAN:     OGC:       PROJ:
```

```
$ projinfo -<TAB><TAB>
-3d                                        --boundcrs-to-wgs84                         --list-crs                                  --searchpaths
--accuracy                                  --c-ify                                     --main-db-path                              --show-superseded
--allow-ellipsoidal-height-as-vertical-crs  --crs-extent-use--grid-check                -o                                          --single-line
--area                                      --dump-db-structure                         --output-id                                 --spatial-test
--authority                                 --hide-ballpark                             --pivot-crs                                 --summary
--aux-db-path                               --identify                                  -q
--bbox                                      -k                                          --remote-data
```

```
$ projinfo -o <TAB><TAB>
all        PROJ       PROJJSON   SQL        WKT1:ESRI  WKT1:GDAL  WKT2:2015  WKT2:2019
```

```
$ projinfo "NAD83(2011) <TAB><TAB>
NAD83(2011)                                                                NAD83(2011) / New Mexico West
NAD83(2011) / Adjusted Jackson (ftUS)                                      NAD83(2011) / New Mexico West (ftUS)
NAD83(2011) / Alabama East                                                 NAD83(2011) / New York Central
[ ... snip ... ]
```

```
$ projinfo EPSG:43<TAB><TAB>
4322 -- WGS 72    4324 -- WGS 72BE  4326 -- WGS 84
```
@rouault rouault force-pushed the projinfo_bash_completion branch from 0d4b97f to d887cad Compare January 7, 2025 18:36
@rouault
Copy link
Member Author

rouault commented Jan 15, 2025

ok, merging this. Happy to consider feedback

@rouault rouault merged commit 27cf3a9 into OSGeo:master Jan 15, 2025
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

funded through GSP Work funded through the GDAL Sponsorship Program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants