Commit 58acf26
committed
Fix CTYPE parsing for WCS with SIP distortion extensions
The projection type was extracted from the last 3 characters of CTYPE,
which fails for SIP extensions (e.g., "RA---TAN-SIP" would give "SIP"
instead of "TAN").
Now extracts the projection from the fixed position [5:8] which works
for both standard CTYPE ("RA---TAN") and SIP-extended CTYPE
("RA---TAN-SIP").
Fixes #261 parent 3633810 commit 58acf26
2 files changed
Lines changed: 22 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| 588 | + | |
| 589 | + | |
588 | 590 | | |
589 | | - | |
590 | | - | |
| 591 | + | |
| 592 | + | |
591 | 593 | | |
592 | 594 | | |
593 | 595 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
0 commit comments