Skip to content

Commit b352808

Browse files
committed
Fix setting top & bottom values when creating georeference from GeoTIFF file
1 parent ea564b8 commit b352808

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

desktop/src/app/components/image/georeference/geotiff-import.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ export async function getGeoreferenceFromGeotiff(buffer: Buffer): Promise<ImageG
2626
}
2727

2828

29-
3029
function createGeoreference(boundingBox: any): ImageGeoreference {
3130

3231
return {
33-
topLeftCoordinates: [boundingBox[1], boundingBox[0]],
34-
topRightCoordinates: [boundingBox[1], boundingBox[2]],
35-
bottomLeftCoordinates: [boundingBox[3], boundingBox[0]]
32+
topLeftCoordinates: [boundingBox[3], boundingBox[0]],
33+
topRightCoordinates: [boundingBox[3], boundingBox[2]],
34+
bottomLeftCoordinates: [boundingBox[1], boundingBox[0]]
3635
};
3736
}

0 commit comments

Comments
 (0)