Skip to content
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

Allow cct to instantiate operations via object codes or names #2419

Merged
merged 8 commits into from
Nov 10, 2020

Conversation

kbevers
Copy link
Member

@kbevers kbevers commented Nov 9, 2020

Possible fix for #2418

Running cct like

    cct urn:ogc:def:coordinateOperation:EPSG::8366

is now possible.
@kbevers
Copy link
Member Author

kbevers commented Nov 9, 2020

With d266b21 it is possible to do

$ echo 3541657.3778 948984.2343 5201383.5231 2020.5 | PROJ_LIB=./data/ ./src/cct EPSG:8366
 3541657.9112    948983.7503  5201383.2482     2020.5000

$ echo 3541657.3778 948984.2343 5201383.5231 2020.5 | PROJ_LIB=./data/ ./src/cct "ITRF2014 to ETRF2014 (1)"
 3541657.9112    948983.7503  5201383.2482     2020.5000

$ echo 3541657.3778 948984.2343 5201383.5231 2020.5 | PROJ_LIB=./data/ ./src/cct +proj=noop
 3541657.3778    948984.2343  5201383.5231     2020.5000

$ echo 3541657.3778 948984.2343 5201383.5231 2020.5 > a
$ echo 3541657.3778 948984.2343 5201383.5231 2020.5 > b
$ PROJ_LIB=./data/ ./src/cct +proj=noop a b
 3541657.3778    948984.2343  5201383.5231     2020.5000
 3541657.3778    948984.2343  5201383.5231     2020.5000

$ PROJ_LIB=./data/ ./src/cct "ITRF2014 to ETRF2014 (1)" a b
 3541657.9112    948983.7503  5201383.2482     2020.5000
 3541657.9112    948983.7503  5201383.2482     2020.5000

$ PROJ_LIB=./data/ ./src/cct EPSG:8366  a b
 3541657.9112    948983.7503  5201383.2482     2020.5000
 3541657.9112    948983.7503  5201383.2482     2020.5000

I haven't been able to break existing functionality yet, so I think this could be the way to do it.

src/apps/cct.cpp Outdated Show resolved Hide resolved
@kbevers kbevers merged commit af342bf into OSGeo:master Nov 10, 2020
@kbevers kbevers deleted the fix-2418 branch November 10, 2020 13:08
@kbevers kbevers changed the title Allow cct to instantiate operations via URNs Allow cct to instantiate operations via object codes or names Nov 10, 2020
@kbevers kbevers added this to the 8.0.0 milestone Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cct can't instantiate operation given as urn:ogc:def:coordinateOperation:auth::code
2 participants