Resolve "Get image metadata as dict"
All threads resolved!
All threads resolved!
Closes #49 (closed)
The returned app.metadata
returns something like:
{
"AREA_OR_POINT": "Area",
"DataType": 1.0,
"DriverLongName": "GeoTIFF",
"DriverShortName": "GTiff",
"GeoTransform": [
760056.0,
6.0,
0.0,
6946092.0,
0.0,
-6.0
],
"LowerLeftCorner": [
760056.0,
6944268.0
],
"LowerRightCorner": [
761562.0,
6944268.0
],
"ProjectionRef": "PROJCS[\"RGF93 v1 / Lambert-93\",\n...AUTHORITY[\"EPSG\",\"2154\"]]",
"ResolutionFactor": 0,
"SubDatasetIndex": 0,
"TIFFTAG_SOFTWARE": "CSinG - 13 SEPTEMBRE 2012",
"TileHintX": 251.0,
"TileHintY": 8.0,
"UpperLeftCorner": [
760056.0,
6946092.0
],
"UpperRightCorner": [
761562.0,
6946092.0
]
}
Merge request reports
Activity
changed milestone to %Release 2.0
added feature label
requested review from @vidlb
assigned to @remicress
- Resolved by Rémi Cresson
- Resolved by Rémi Cresson
There is still a failure case ( I tried with a random image ):
>>> img = pyotb.Input(r"C:\Users\vince\Geom\SDGSAT\KX10_GIU_20211106_E3.68_N48.11_202200120793_L4A_A_PXS.tif") 2023-06-28 11:19:51 (INFO): Loading metadata from official product 2023-06-28 11:19:51 (INFO): Loading metadata from official product >>> img.metadata Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\vince\Code\git\pyotb\pyotb\core.py", line 65, in metadata splits = val.split("=") AttributeError: 'int' object has no attribute 'split'
- Resolved by Vincent Delbar
We should add a test to check this
mentioned in commit abdeb793
mentioned in merge request !86 (merged)
Please register or sign in to reply