You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation does not correctly project or reproject the metadata CSV information for bounding boxes. When working with metadata that specifies bounding boxes in EPSG:4326 (WGS 84), the CRS transformation to EPSG:27700 (British National Grid) was not applied correctly. As a result, the bounding box coordinates in the maps.parents object are misaligned with the expected CRS.
To Reproduce:
Load a metadata CSV file with bounding box coordinates in EPSG:4326.
Add the metadata to the maps.parents object using maps.add_metadata.
Attempt to reproject the bounding box coordinates to EPSG:27700.
Observe that the coordinates are not correctly transformed, and subsequent operations using these coordinates fail or are misaligned.
Expected behavior
The bounding box coordinates from the metadata CSV should be transformed correctly from EPSG:4326 to EPSG:27700 using a robust CRS transformation method. Once transformed, the coordinates should match the CRS of the parent images (EPSG:27700).
Desktop:
OS: [Ubuntu 20.04]
PythonVersion [3.12]
Additional context
To resolve this issue, the following code snippet was added to ensure the bounding box coordinates are correctly transformed:
The current implementation does not correctly project or reproject the metadata CSV information for bounding boxes. When working with metadata that specifies bounding boxes in EPSG:4326 (WGS 84), the CRS transformation to EPSG:27700 (British National Grid) was not applied correctly. As a result, the bounding box coordinates in the
maps.parents
object are misaligned with the expected CRS.To Reproduce:
maps.parents
object usingmaps.add_metadata
.Expected behavior
The bounding box coordinates from the metadata CSV should be transformed correctly from EPSG:4326 to EPSG:27700 using a robust CRS transformation method. Once transformed, the coordinates should match the CRS of the parent images (EPSG:27700).
Desktop:
Additional context
To resolve this issue, the following code snippet was added to ensure the bounding box coordinates are correctly transformed:
The text was updated successfully, but these errors were encountered: