Skip to content

Commit

Permalink
Correctly remove geokeys from metadata
Browse files Browse the repository at this point in the history
Fix bug in geotiffwriter.js: Correctly remove geokeys from metadata
  • Loading branch information
ThomasAribart authored Aug 17, 2023
1 parent 475d91e commit 8e99fe2
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 8e99fe2

Please sign in to comment.