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 +inv to work like -I #4013

Closed
jidanni opened this issue Jan 27, 2024 · 1 comment
Closed

Allow +inv to work like -I #4013

jidanni opened this issue Jan 27, 2024 · 1 comment
Labels

Comments

@jidanni
Copy link
Contributor

jidanni commented Jan 27, 2024

This restriction makes zero sense.

: This works fine:
echo -88 42|proj \
+proj=pipeline \
+step +proj=utm +zone=16 \
+step +proj=utm +zone=16 +inv \
+step +proj=utm +zone=16
417181.93	4650259.85
: This also works fine:
echo -88 42|proj \
+proj=pipeline \
+step +proj=utm +zone=16 \
|proj +proj=utm +zone=16 -I
88dW	42dN
: So why not allow this to also work fine?:
echo -88 42|proj \
+proj=pipeline \
+step +proj=utm +zone=16 \
+step +proj=utm +zone=16 +inv
Rel. 9.3.1, December 1st, 2023
<proj>:
can't initialize operations that produce angular output coordinates
program abnormally terminated
: And indeed this should work too:
echo -88 42|proj \
+proj=pipeline \
+step +proj=utm +zone=16 \
|proj +proj=utm +zone=16 +inv
Rel. 9.3.1, December 1st, 2023
<proj>:
can't initialize operations that take non-angular input coordinates
program abnormally terminated
@jidanni jidanni added the bug label Jan 27, 2024
@rouault
Copy link
Member

rouault commented Jan 27, 2024

proj is a legacy utility that was designed to only deal with map projections, and that is now frozen.
If you use pipeline and +inv, you need to use cct instead.

jidanni added a commit to jidanni/PROJ that referenced this issue Jan 28, 2024
jidanni added a commit to jidanni/PROJ that referenced this issue Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants