Re: [gdal-dev] std::numeric_limits::min() vs LLONG_MIN

2022-12-16 Thread dg0yt
I'm not using MSVC, so this is a guess: Are you including 'windows.h' without 'NOMINMAX' being defined? Then you will get macros which interfere with the limits code. Regards, Kai. > Paul Meems hat am 17.12.2022 00:46 CET geschrieben: > > > Thanks, Kurt for your response. > > I'm getting a ve

Re: [gdal-dev] std::numeric_limits::min() vs LLONG_MIN

2022-12-16 Thread Kurt Schwehr
My suggestion is try a small example program with not much more than those two lines and then give the exact / complete compile line and output. Better yet, try to reproduce it with a small example on compiler explorer: https://godbolt.org/ On Fri, Dec 16, 2022 at 3:47 PM Paul Meems wrote: > Th

Re: [gdal-dev] std::numeric_limits::min() vs LLONG_MIN

2022-12-16 Thread Paul Meems
Thanks, Kurt for your response. I'm getting a very vague error message: E0040 expected an identifier. Regards, Paul Op za 17 dec. 2022 om 00:40 schreef Kurt Schwehr : > What exact error are you getting? > > On Fri, Dec 16, 2022 at 3:31 PM Paul Meems wrote: > >> Hello List, >> >> We're trying

Re: [gdal-dev] std::numeric_limits::min() vs LLONG_MIN

2022-12-16 Thread Kurt Schwehr
What exact error are you getting? On Fri, Dec 16, 2022 at 3:31 PM Paul Meems wrote: > Hello List, > > We're trying to update MapWinGIS which is using the GDAL libraries from > gisinternals.com > Currently, we use the stable daily of December 9: > *release-1928-gdal-3-5-mapserver-8-0* > > I'm usi

[gdal-dev] std::numeric_limits::min() vs LLONG_MIN

2022-12-16 Thread Paul Meems
Hello List, We're trying to update MapWinGIS which is using the GDAL libraries from gisinternals.com Currently, we use the stable daily of December 9: *release-1928-gdal-3-5-mapserver-8-0* I'm using VS2019 (on Windows) to compile and I'm having issues with two lines in gdal_pam.h, around line 215

Re: [gdal-dev] Move pixel ULx ULy - what is dx_dy + dy_dx

2022-12-16 Thread Andrew C Aitchison
On Fri, 16 Dec 2022, Clive Swan wrote: Greetings, I want to shift the UL x, UL y of an image. I am trying to find out what the *dx_dy + dy_dx* is. They represent (part of) the rotation; technically I think that they are they are the "skew". For a *translation* they are both equal to zero.

[gdal-dev] Move pixel ULx ULy - what is dx_dy + dy_dx

2022-12-16 Thread Clive Swan
Greetings, Is dx_dy, dy_dx = (0,0) The Top Left/Right value?? -- Regards, Clive Swan -- M: +44 7766 452665 ___ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev

[gdal-dev] Move pixel ULx ULy - what is dx_dy + dy_dx

2022-12-16 Thread Clive Swan
Greetings, I want to shift the UL x, UL y of an image. I am trying to find out what the *dx_dy + dy_dx* is. The code is: import gdal ### open dataset with update permission ds = gdal.Open('/data/coastal-2020.tif', gdal.GA_Update) ### get the geotransform as a tuple of 6 gt = ds.GetGeoTransform(