-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11514 from rouault/fix_11512
GTI STACGeoParquet: add support for proj:code, proj:wkt2, proj:projjson
- Loading branch information
Showing
7 changed files
with
268 additions
and
15 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
autotest/gdrivers/data/gti/sentinel2_stac_geoparquet_proj_code.geojson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"name": "sentinel2_stac_geoparquet", | ||
"features": [ | ||
{ "type": "Feature", "properties": { "type": "Feature", "stac_version": "1.1.0", "assets.rededge3.href": "https://e84-earth-search-sentinel-data.s3.us-west-2.amazonaws.com/sentinel-2-c1-l2a/12/S/VD/2023/12/S2A_T12SVD_20231213T181818_L2A/B07.tif", "assets.rededge3.title": "Red Edge 3 - 20m", "assets.rededge3.type": "image/tiff; application=geotiff; profile=cloud-optimized", "assets.rededge3.roles": [ "data", "reflectance" ], "assets.rededge3.eo:bands": [ { "name": "B07", "common_name": "rededge", "center_wavelength": 0.783, "full_width_half_max": 0.028 } ], "assets.rededge3.gsd": 20.0, "assets.rededge3.proj:shape": [ 5490, 5490 ], "assets.rededge3.proj:transform": [ 20, 0, 399960, 0, -20, 3900000 ], "assets.rededge3.raster:bands": [ { "nodata": 0, "data_type": "uint16", "spatial_resolution": 20, "scale": 0.0001, "offset": -0.1 } ], "assets.rededge3.file:checksum": "1220f2623a57da9b09fe8253c2dc9a6377227041e86d192715c6d753638cb0977d99", "assets.rededge3.file:size": 53583888, "proj:code": "EPSG:32612" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -112.099469246340007, 35.238074627405702 ], [ -112.086441301193005, 34.249018117524301 ], [ -111.171637815685003, 34.254252630787903 ], [ -110.892875963752005, 35.136386493702297 ], [ -110.892735914686995, 35.243021163215097 ], [ -112.099469246340007, 35.238074627405702 ] ] ] } } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
194 changes: 194 additions & 0 deletions
194
autotest/gdrivers/data/gti/sentinel2_stac_geoparquet_proj_projjson.geojson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,194 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"name": "sentinel2_stac_geoparquet", | ||
"features": [ | ||
{ "type": "Feature", "properties": { "type": "Feature", "stac_version": "1.1.0", "assets.rededge3.href": "https://e84-earth-search-sentinel-data.s3.us-west-2.amazonaws.com/sentinel-2-c1-l2a/12/S/VD/2023/12/S2A_T12SVD_20231213T181818_L2A/B07.tif", "assets.rededge3.title": "Red Edge 3 - 20m", "assets.rededge3.type": "image/tiff; application=geotiff; profile=cloud-optimized", "assets.rededge3.roles": [ "data", "reflectance" ], "assets.rededge3.eo:bands": [ { "name": "B07", "common_name": "rededge", "center_wavelength": 0.783, "full_width_half_max": 0.028 } ], "assets.rededge3.gsd": 20.0, "assets.rededge3.proj:shape": [ 5490, 5490 ], "assets.rededge3.proj:transform": [ 20, 0, 399960, 0, -20, 3900000 ], "assets.rededge3.raster:bands": [ { "nodata": 0, "data_type": "uint16", "spatial_resolution": 20, "scale": 0.0001, "offset": -0.1 } ], "assets.rededge3.file:checksum": "1220f2623a57da9b09fe8253c2dc9a6377227041e86d192715c6d753638cb0977d99", "assets.rededge3.file:size": 53583888, "proj:projjson": { | ||
"$schema": "https://proj.org/schemas/v0.7/projjson.schema.json", | ||
"type": "ProjectedCRS", | ||
"name": "WGS 84 / UTM zone 12N", | ||
"base_crs": { | ||
"type": "GeographicCRS", | ||
"name": "WGS 84", | ||
"datum_ensemble": { | ||
"name": "World Geodetic System 1984 ensemble", | ||
"members": [ | ||
{ | ||
"name": "World Geodetic System 1984 (Transit)", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 1166 | ||
} | ||
}, | ||
{ | ||
"name": "World Geodetic System 1984 (G730)", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 1152 | ||
} | ||
}, | ||
{ | ||
"name": "World Geodetic System 1984 (G873)", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 1153 | ||
} | ||
}, | ||
{ | ||
"name": "World Geodetic System 1984 (G1150)", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 1154 | ||
} | ||
}, | ||
{ | ||
"name": "World Geodetic System 1984 (G1674)", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 1155 | ||
} | ||
}, | ||
{ | ||
"name": "World Geodetic System 1984 (G1762)", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 1156 | ||
} | ||
}, | ||
{ | ||
"name": "World Geodetic System 1984 (G2139)", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 1309 | ||
} | ||
}, | ||
{ | ||
"name": "World Geodetic System 1984 (G2296)", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 1383 | ||
} | ||
} | ||
], | ||
"ellipsoid": { | ||
"name": "WGS 84", | ||
"semi_major_axis": 6378137, | ||
"inverse_flattening": 298.257223563 | ||
}, | ||
"accuracy": "2.0", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 6326 | ||
} | ||
}, | ||
"coordinate_system": { | ||
"subtype": "ellipsoidal", | ||
"axis": [ | ||
{ | ||
"name": "Geodetic latitude", | ||
"abbreviation": "Lat", | ||
"direction": "north", | ||
"unit": "degree" | ||
}, | ||
{ | ||
"name": "Geodetic longitude", | ||
"abbreviation": "Lon", | ||
"direction": "east", | ||
"unit": "degree" | ||
} | ||
] | ||
}, | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 4326 | ||
} | ||
}, | ||
"conversion": { | ||
"name": "UTM zone 12N", | ||
"method": { | ||
"name": "Transverse Mercator", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 9807 | ||
} | ||
}, | ||
"parameters": [ | ||
{ | ||
"name": "Latitude of natural origin", | ||
"value": 0, | ||
"unit": "degree", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 8801 | ||
} | ||
}, | ||
{ | ||
"name": "Longitude of natural origin", | ||
"value": -111, | ||
"unit": "degree", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 8802 | ||
} | ||
}, | ||
{ | ||
"name": "Scale factor at natural origin", | ||
"value": 0.9996, | ||
"unit": "unity", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 8805 | ||
} | ||
}, | ||
{ | ||
"name": "False easting", | ||
"value": 500000, | ||
"unit": "metre", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 8806 | ||
} | ||
}, | ||
{ | ||
"name": "False northing", | ||
"value": 0, | ||
"unit": "metre", | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 8807 | ||
} | ||
} | ||
] | ||
}, | ||
"coordinate_system": { | ||
"subtype": "Cartesian", | ||
"axis": [ | ||
{ | ||
"name": "Easting", | ||
"abbreviation": "E", | ||
"direction": "east", | ||
"unit": "metre" | ||
}, | ||
{ | ||
"name": "Northing", | ||
"abbreviation": "N", | ||
"direction": "north", | ||
"unit": "metre" | ||
} | ||
] | ||
}, | ||
"scope": "Navigation and medium accuracy spatial referencing.", | ||
"area": "Between 114°W and 108°W, northern hemisphere between equator and 84°N, onshore and offshore. Canada - Alberta; Northwest Territories (NWT); Nunavut; Saskatchewan. Mexico. United States (USA).", | ||
"bbox": { | ||
"south_latitude": 0, | ||
"west_longitude": -114, | ||
"north_latitude": 84, | ||
"east_longitude": -108 | ||
}, | ||
"id": { | ||
"authority": "EPSG", | ||
"code": 32612 | ||
} | ||
} | ||
}, "geometry": { "type": "Polygon", "coordinates": [ [ [ -112.099469246340007, 35.238074627405702 ], [ -112.086441301193005, 34.249018117524301 ], [ -111.171637815685003, 34.254252630787903 ], [ -110.892875963752005, 35.136386493702297 ], [ -110.892735914686995, 35.243021163215097 ], [ -112.099469246340007, 35.238074627405702 ] ] ] } } | ||
] | ||
} |
7 changes: 7 additions & 0 deletions
7
autotest/gdrivers/data/gti/sentinel2_stac_geoparquet_proj_wkt2.geojson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "FeatureCollection", | ||
"name": "sentinel2_stac_geoparquet", | ||
"features": [ | ||
{ "type": "Feature", "properties": { "type": "Feature", "stac_version": "1.1.0", "assets.rededge3.href": "https://e84-earth-search-sentinel-data.s3.us-west-2.amazonaws.com/sentinel-2-c1-l2a/12/S/VD/2023/12/S2A_T12SVD_20231213T181818_L2A/B07.tif", "assets.rededge3.title": "Red Edge 3 - 20m", "assets.rededge3.type": "image/tiff; application=geotiff; profile=cloud-optimized", "assets.rededge3.roles": [ "data", "reflectance" ], "assets.rededge3.eo:bands": [ { "name": "B07", "common_name": "rededge", "center_wavelength": 0.783, "full_width_half_max": 0.028 } ], "assets.rededge3.gsd": 20.0, "assets.rededge3.proj:shape": [ 5490, 5490 ], "assets.rededge3.proj:transform": [ 20, 0, 399960, 0, -20, 3900000 ], "assets.rededge3.raster:bands": [ { "nodata": 0, "data_type": "uint16", "spatial_resolution": 20, "scale": 0.0001, "offset": -0.1 } ], "assets.rededge3.file:checksum": "1220f2623a57da9b09fe8253c2dc9a6377227041e86d192715c6d753638cb0977d99", "assets.rededge3.file:size": 53583888, "proj:wkt2": "PROJCRS[\"WGS 84 / UTM zone 12N\",BASEGEOGCRS[\"WGS 84\",ENSEMBLE[\"World Geodetic System 1984 ensemble\",MEMBER[\"World Geodetic System 1984 (Transit)\"],MEMBER[\"World Geodetic System 1984 (G730)\"],MEMBER[\"World Geodetic System 1984 (G873)\"],MEMBER[\"World Geodetic System 1984 (G1150)\"],MEMBER[\"World Geodetic System 1984 (G1674)\"],MEMBER[\"World Geodetic System 1984 (G1762)\"],MEMBER[\"World Geodetic System 1984 (G2139)\"],MEMBER[\"World Geodetic System 1984 (G2296)\"],ELLIPSOID[\"WGS 84\",6378137,298.257223563,LENGTHUNIT[\"metre\",1]],ENSEMBLEACCURACY[2.0]],PRIMEM[\"Greenwich\",0,ANGLEUNIT[\"degree\",0.0174532925199433]],ID[\"EPSG\",4326]],CONVERSION[\"UTM zone 12N\",METHOD[\"Transverse Mercator\",ID[\"EPSG\",9807]],PARAMETER[\"Latitude of natural origin\",0,ANGLEUNIT[\"degree\",0.0174532925199433],ID[\"EPSG\",8801]],PARAMETER[\"Longitude of natural origin\",-111,ANGLEUNIT[\"degree\",0.0174532925199433],ID[\"EPSG\",8802]],PARAMETER[\"Scale factor at natural origin\",0.9996,SCALEUNIT[\"unity\",1],ID[\"EPSG\",8805]],PARAMETER[\"False easting\",500000,LENGTHUNIT[\"metre\",1],ID[\"EPSG\",8806]],PARAMETER[\"False northing\",0,LENGTHUNIT[\"metre\",1],ID[\"EPSG\",8807]]],CS[Cartesian,2],AXIS[\"(E)\",east,ORDER[1],LENGTHUNIT[\"metre\",1]],AXIS[\"(N)\",north,ORDER[2],LENGTHUNIT[\"metre\",1]],USAGE[SCOPE[\"Navigation and medium accuracy spatial referencing.\"],AREA[\"Between 114°W and 108°W, northern hemisphere between equator and 84°N, onshore and offshore. Canada - Alberta; Northwest Territories (NWT); Nunavut; Saskatchewan. Mexico. United States (USA).\"],BBOX[0,-114,84,-108]],ID[\"EPSG\",32612]]" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ -112.099469246340007, 35.238074627405702 ], [ -112.086441301193005, 34.249018117524301 ], [ -111.171637815685003, 34.254252630787903 ], [ -110.892875963752005, 35.136386493702297 ], [ -110.892735914686995, 35.243021163215097 ], [ -112.099469246340007, 35.238074627405702 ] ] ] } } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters