To my eye this looks like a very old 'warning' from Frank W's era,
where he was taming cats (user community) and dsn were, reasonably,
file names of a sort. Would overhead of regex comparing terminating
characters after final '/' meet the file name versus descriptor still
be useful? I imagine he was reacting to some many "I downloaded X and
now can't find it" (because it might have been renamed in process)
kinds of conditions, and the warning might trigger one to check. Just
an inkling on the annoyance.

On Sun, Apr 23, 2023 at 11:09 PM Michael Sumner <mdsum...@gmail.com> wrote:
>
>
> When invoking  info on this vrt connection
>
> gdalinfo 
> "vrt://https://herbariumnsw-pds.s3-ap-southeast-2.amazonaws.com/images/NSW041500.jp2?a_ullr=0,9661,7180,0";
>
> I see this warning
>
> Warning 6: A dataset opened by GDALOpenShared should have the same filename 
> (https://herbariumnsw-pds.s3-ap-southeast-2.amazonaws.com/images/NSW041500.jp2)
>  and description (/vsimem/http_1/NSW041500.jp2)
>
> The warning seems unreasonable given that we are quite far from a "filename" 
> for a dsn? There's no warning on the bare url or with /vsicurl:
>
> gdalinfo  
> https://herbariumnsw-pds.s3-ap-southeast-2.amazonaws.com/images/NSW041500.jp2
>
> gdalinfo  
> /vsicurl/https://herbariumnsw-pds.s3-ap-southeast-2.amazonaws.com/images/NSW041500.jp2
>
> ## GDAL version and provenance
>
> Ubuntu 20.04
>
> GDAL 3.7.0dev-717dcc0eed, released 2023/04/22 (debug build)
>
>
>
>
> --
> Michael Sumner
> Software and Database Engineer
> Australian Antarctic Division
> Hobart, Australia
> e-mail: mdsum...@gmail.com
> _______________________________________________
> gdal-dev mailing list
> gdal-dev@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to