Skip to content

Commit

Permalink
add ProjectionDefinition.title from wkt.AUTHORITY
Browse files Browse the repository at this point in the history
  • Loading branch information
ftoromanoff committed Oct 11, 2024
1 parent 4da07da commit 68fcc8e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ function d2r(input) {
}

function cleanWKT(wkt) {
if (wkt.AUTHORITY) {
var authority = Object.keys(wkt.AUTHORITY)[0];
if (authority && authority in wkt.AUTHORITY) {
wkt.title = `${authority}:${wkt.AUTHORITY[authority]}`;
}
}
if (wkt.type === 'GEOGCS') {
wkt.projName = 'longlat';
} else if (wkt.type === 'LOCAL_CS') {
Expand Down

0 comments on commit 68fcc8e

Please sign in to comment.