简体   繁体   中英

GTIFProj4ToLatLong under Windows

I use libgeotiff in my project. I want to convert pixel coordinates to geographic coordinates (latitude and longtitude). But GTIFProj4ToLatLong returns false. Target OS - Windows. I downloaded libraries from here .

When I compile my project on Ubuntu using libgeotiff-dev from repository, everything works fine with the same code and the same tiff files.

I suppose some.csv or.lla files are missing when program runs on windows. Should I set some environment variables?

Another way I see is to build libgeotiff manually with mingw and msys. Can it help? It's complicated for me.

I compiled libgeotiff manually using msys and mingw.我使用 msys 和 mingw 手动编译了 libgeotiff。 Everything works now. Files from ftp.remotesensing.org seems to be built without Proj.4 support.

To use this function, you should build libgeotiff with HAVE_LIBPROJ preprocessor flag. You'll also need libproj library for it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM