[gdal-dev] from projection coordinates to pixel coords

2019-07-31 Thread Ahmet Temiz
Hi, How can we transform from projection coordinates to pixel coords with gdal c++ ? regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Bilgi İşlem Dairesi Başkanlığı-CBS Grubu Ahmet Temiz Geological Eng. Information Systems - GIS Group Disas

Re: [gdal-dev] from projection coordinates to pixel coords

2019-07-31 Thread Ivan Lucena
Hi Ahmet, I would suggest for your to look into the raster tutorial page and search for all the occurrences of "adfGeoTransform" and read the comments and code related to that. https://gdal.org/tutorials/raster_api_tut.html Another good source code to take a look is the gdal_translate_lib.cpp

Re: [gdal-dev] OSRSetPROJSearchPaths in multithreaded application

2019-07-31 Thread Matthew Amato
I apologize for resurrecting this thread, but we are running into the same problem, even after updating the the head of the "release/3.0" branch which contains Even's fix. Previously, we would set PROJ_LIB as an environment variable but after upgrading to 3.x/6.x we now receive thousands of "proj.

Re: [gdal-dev] NetCDF driver getting wrong values if compared to HDF5

2019-07-31 Thread Even Rouault
On mardi 30 juillet 2019 21:48:45 CEST Ivan Lucena wrote: > Unsupported netCDF datatype (7), treat as Float32.​ Given that #define NC_UBYTE7 /**< unsigned 1 byte int */ and https://github.com/OSGeo/gdal/blob/master/gdal/frmts/netcdf/netcdfdataset.cpp#L357 it seems you would have

[gdal-dev] (no subject)

2019-07-31 Thread Ahmet Temiz
Hi, I need example c++ code for raster masking and clipping. Do you have any? Regards -- Ahmet Temiz Jeoloji Müh. Afet ve Acil Durum Yönetimi Başkanlığı Bilgi İşlem Dairesi Başkanlığı-CBS Grubu Ahmet Temiz Geological Eng. Information Systems - GIS Group Disaster and