Skip to content

Commit

Permalink
Merge pull request #387 from ThomasAribart/correctly-remove-geokeys-f…
Browse files Browse the repository at this point in the history
…rom-metadata-in-writer

Correctly remove geokeys from metadata
  • Loading branch information
constantinius committed Aug 28, 2023
2 parents b1f9263 + 8e99fe2 commit 00a28ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/geotiffwriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ export function writeGeotiff(data, metadata) {
}

// delete GeoKeys from metadata, because stored in GeoKeyDirectory tag
for (const geoKey in geoKeys) {
if (geoKeys.hasOwnProperty(geoKey)) {
for (const geoKey of geoKeys) {
if (metadata.hasOwnProperty(geoKey)) {
delete metadata[geoKey];
}
}
Expand Down

0 comments on commit 00a28ca

Please sign in to comment.