[gdal-dev] remote png and aux file
Even Rouault
even.rouault at spatialys.com
Thu Oct 30 21:35:31 PDT 2025
yes you are demanding a bit too much to the simple HTTP driver (the one
that kicks in with http:// without /vsicurl/ prefixing). It just
dowloads the content pointed by the URL , put in in a /vsimem/ file and
then let other drivers try to recognize that. The logic to query side
car files can't work there because the PNG driver will try to open
/vsimem/something.png.aux.xml .
Le 31/10/2025 à 05:26, Michael Sumner via gdal-dev a écrit :
> > Should it be picking that up, or is that too much to ask with the
> /vsi* protocol?
>
> I meant to say: ' Should it be picking that up, or is that too much
> to ask *without* the /vsi* protocol?'
>
> On Fri, Oct 31, 2025 at 3:21 PM Michael Sumner <mdsumner at gmail.com> wrote:
>
> I've noticed that a sidecar .aux.xml for a PNG is not picked up on
> a bare url:
>
> gdal.Open("https://projects.pawsey.org.au/geotar0/sentinel-2-c1-l2a/2023/01/03/Macquarie_Island_Station_2023-01-03.png").GetGeoTransform()
> (0.0, 1.0, 0.0, 0.0, 0.0, 1.0)
>
> gdal.Open("/vsicurl/https://projects.pawsey.org.au/geotar0/sentinel-2-c1-l2a/2023/01/03/Macquarie_Island_Station_2023-01-03.png").GetGeoTransform()
> (-3000.0, 10.0, 0.0, 3000.0, 0.0, -10.0)
>
> Should it be picking that up, or is that too much to ask with the
> /vsi* protocol? (I don't have an opinion, just vaguely expected
> that it would find the sidecar file without /vsi*).
>
> Cheers, Mike
>
>
>
>
> --
> Michael Sumner
> Ordinary Member, Streets People Love Hobart Association
> Research Software Engineer
> Australian Antarctic Division
> Hobart, Australia
> 0438489030
> e-mail: mdsumner at gmail.com
>
>
>
> --
> Michael Sumner
> Ordinary Member, Streets People Love Hobart Association
> Research Software Engineer
> Australian Antarctic Division
> Hobart, Australia
> 0438489030
> e-mail: mdsumner at gmail.com
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/gdal-dev
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20251031/09dd76ff/attachment.htm>
More information about the gdal-dev
mailing list