Michael,
file size isn't the issue here, it is more the symptom of the driver
having to read one dataset to get on or metadata items it doesn't know,
than something it really needs (getting the file size is just a side
effect of opening a remote dataset)
Looking at the code I presume it must be BANDCOUNT (it doesn't use
raster:bands, although it should probably do).
Even
Le 13/04/2025 à 16:00, Michael Smith via gdal-dev a écrit :
Looking at some stac geoparquet datasets I created from a VRT, I see this in
the gdal debug output:
GDAL: GDALOpen(/Users/rdcrlmds/Downloads/test1.gti.parquet, this=0x1580079d0)
succeeds as Parquet.
GTI: Using assets.data.href as location field
GTI: Inspecting one feature due to missing metadata items
I see that it's getting the file size with
VSICURL: Using effective URL
https://maxar-opendata.s3.us-west-2.amazonaws.com/events/Kahramanmaras-turkey-earthquake-23/ard/36/120022103200/2022-10-17/104001007E564300-visual.tif
temporarily
VSICURL:
GetFileSize(https://mds-grid-web.rsgiscx.net/mdsgrid/api/file/stream/2315541.tif)=6350041
response_code=200
I do have file.size as the file extension size specified. But maybe it's not in
the correct location:
"assets": {"data": {"href": "https://mds-grid-web.rsgiscx.net/mdsgrid/api/file/stream/2315541.tif", "type":
"image/tiff; application=geotiff", "title": "data", "file:size": 6350041},
"raster:bands": [{"sampling": "area", "spatial_resolution": 0.30517578125,
"unit": "meter"}]}}}
I also see that its getting overviews and mask bands and I do have the raster
bands extension added but haven't seen an extension that does overview sizes
and band masks.
VSICURL: Effective URL:
https://maxar-opendata.s3.us-west-2.amazonaws.com/events/Kahramanmaras-turkey-earthquake-23/ard/36/120022103200/2022-10-17/104001007E564300-visual.tif
GTiff: Opened band mask.
GTiff: Opened 8704x8704 overview.
GTiff: Opened 4352x4352 overview.
GTiff: Opened 2176x2176 overview.
GTiff: Opened 1088x1088 overview.
GTiff: Opened 544x544 overview.
GTiff: Opened 272x272 overview.
GTiff: Opened band mask for 8704x8704 overview.
GTiff: Opened band mask for 4352x4352 overview.
GTiff: Opened band mask for 2176x2176 overview.
GTiff: Opened band mask for 1088x1088 overview.
GTiff: Opened band mask for 544x544 overview.
GTiff: Opened band mask for 272x272 overview.
GDAL: Computing area of interest: 35.2452, 36.9774, 35.3063, 37.0264
GDAL: GDALDriver::Create(VRT,,19761,15849,3,Byte,0x60000256c840)
WARP: Copying metadata from first source to destination dataset
Mike
--
http://www.spatialys.com
My software is free, but my time generally not.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev