Re: [gdal-dev] Windows build errors GDAL 3.3.1

2021-08-19 Thread Craig Delancy
wed" Craig, did you update an existing git checkout ? If so, due to the lack of header dependency tracking in our nmake & GNUmakefile build systems, you generally have to "nmake /f makefile.vc clean" (or "make clean" on Unix) before rebuilding. Even Le 19/08/20

[gdal-dev] Windows build errors GDAL 3.3.1

2021-08-18 Thread Craig Delancy
When pulling and building the latest release from GitHub, there are several unresolved externals that halt the build. 1> Creating library gdal_translate.lib and object gdal_translate.exp 1>gdal_d.lib(eedacommon.obj) : error LNK2019: unresolved external symbol "bool __cdecl CPLIsMachinePotentia

[gdal-dev] Causes of GDALCreateGenImgProjTransformer returning null?

2021-08-16 Thread Craig Delancy
Hello, I am using the c++ API of GDAL 3. I am having a crash during ChunkAndWarpImage, and the cause seems to be that GDALCreateGenImgProjTransformer returns null while I am setting up psWarpOptions. I have also tried GDALCreateGenImgProjTransformer2, which also returns null. Does anyone know w

[gdal-dev] Crash during ChunkAndWarpImage in C++ API

2021-08-13 Thread Craig Delancy
When calling ChunkAndWarpImage I have an unhandled exception on the line pTransformArg = psInfo->pDstTransformArg; in gdaltransformer.cpp. Does anyone have any advice for where I should start debugging or what I may be doing wrong? My full function is as follows: bool WarpDataset(GDALDataset* sr

[gdal-dev] Get bounds of object before reprojection?

2021-07-13 Thread Craig Delancy
Using the c++ API, how would I go about getting the bounds of a raster dataset, reprojected into another projection, without actually performing the reprojection first? Is there a way to do this, or do I have to do the reprojection to get this info? I was thinking I could get the corners and re

[gdal-dev] Updated GDAL and PROJ, now certain datasets crash when calling GetGeoTransform

2020-05-20 Thread Craig Delancy
I've just updated my PROJ and GDAL libraries from the github source again, building in debug configuration, and when testing discovered that certain datasets crash while other do not. Specifically, when I call GetGeoTransform on the dataset, I get an exception on line 3395 of c_api.cpp. The para

[gdal-dev] Having trouble building latest GDAL from source

2020-05-06 Thread Craig Delancy
Windows 10, 64-bit I'm having a bit of trouble building GDAL from source. It seems like it has a problem linking to PROJ, which build without issue for me. Is anyone here familiar with this specific error? 1> Creating library gdal_i.lib and object gdal_i.exp 1>proj.lib(filemanager.obj) : error

[gdal-dev] Affine transform: Practical uses of x-skew and y-skew

2020-05-01 Thread Craig Delancy
Hello. I am trying to explain to a colleague how the affine transform maps image coordinates onto a projection system. Specifically, I am trying to explain how mathematically speaking, any parallelogram section of the coordinate system can be represented by the rectangular image. After a bit of

[gdal-dev] Is there a way to build GDAL without FreeType?

2020-04-25 Thread Craig Delancy
(Windows 10, 64-bit) Is there a way to compile GDAL (3.0.4) without the dependency on FreeType? I am trying to integrate the GDAL libraries into an existing software, which itself already links to FreeType2. This causes a series of conflicts such as: freetype.lib(ftbase.obj) : error LNK2005: FT_

[gdal-dev] Can't read get a spatial reference from Geotiffs exported from QGIS (c++ API)

2020-04-22 Thread Craig Delancy
Hello. I am building an application around GDAL using the C++ API, but I have ran into a snag. Normally, after using GDAL Open on a Geotiff file, I am able to get a spatial reference containing all the information I need about the projection. However, when I try to get a spatial reference from a

[gdal-dev] No Data Value and Resampling during Warp (C++ API)

2020-02-21 Thread Craig Delancy
Hello, mailing list: I am currently running into a problem when using ChunkAndWarp on my data sets. It seems that No Data regions are not excluded from the resampling algorithm, and so I end up with values in the image that have been created by blending a data value with a non-data value, resul