Re: [gdal-dev] ogr.GeometryTypeToName oddness

2013-04-17 Thread Even Rouault
Le mercredi 17 avril 2013 04:08:02, Mike Toews a écrit : With the Python module for GDAL 1.9.2 for Python 2.7, Windows 64-bit, downloaded from http://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal I see this oddness: from osgeo import ogr for name in dir(ogr): if name.startswith('wkb'):

[gdal-dev] lib to get from GDAL/geotiff to PROJ4

2013-04-17 Thread wsvries
Hi, I am working on an application (adding terrain info to maps for 3D rendering) that does some heavy projection calculations using the proj4 libs. Input for now is geotiff. I have Googled a lot, but I was not able to find any libs that can output proj4 strings based on geotiff input. I have

Re: [gdal-dev] lib to get from GDAL/geotiff to PROJ4

2013-04-17 Thread Etienne Tourigny
You can have a look at the code used by the gdalsrsinfo , which basically opens a GDAL/OGR datasource and outputs the proj4 (or wkt) string. Assuming you use c/c++ of course... http://trac.osgeo.org/gdal/browser/trunk/gdal/apps/gdalsrsinfo.cpp Here is the relevant code (some declarations

Re: [gdal-dev] lib to get from GDAL/geotiff to PROJ4

2013-04-17 Thread wsvries
Thanks. I took the code you mentioned, installed the gdal libdev and run G++ on it and voila! Etienne Tourigny schreef op 2013-04-17 13:48: You can have a look at the code used by the gdalsrsinfo , which basically opens a GDAL/OGR datasource and outputs the proj4 (or wkt) string. Assuming

[gdal-dev] MODIS reprojection

2013-04-17 Thread laura0
Hi, I'm working with GDAL tool in order to use MODIS (MOD14.A2 and MYD14.A2) data but I have problems with reprojection in UTM 32. The lat/lon pixel coordinates I get are not correct (similar but a bit shifted). This is what I have done: In order to geolocate swaths, there is a separate product

Re: [gdal-dev] Neatline for USGS PDF maps

2013-04-17 Thread Eli Adam
I found this in drafts and it appears I failed to send it. Sorry for delay. Sent partly for the list archives at this point. On Sat, Jan 19, 2013 at 8:14 AM, Even Rouault even.roua...@mines-paris.org wrote: Looking more closely at those files, I see that there are various registration blocks.

Re: [gdal-dev] Neatline for USGS PDF maps

2013-04-17 Thread Even Rouault
Le mercredi 17 avril 2013 17:34:13, Eli Adam a écrit : I found this in drafts and it appears I failed to send it. Sorry for delay. Sent partly for the list archives at this point. On Sat, Jan 19, 2013 at 8:14 AM, Even Rouault even.roua...@mines-paris.org wrote: Looking more closely at

Re: [gdal-dev] TIFFMergeFieldInfo error when adding overviews to large tiff

2013-04-17 Thread Even Rouault
Le mercredi 17 avril 2013 00:01:41, Eli Adam a écrit : On Tue, Apr 16, 2013 at 2:11 PM, Even Rouault even.roua...@mines-paris.org wrote: I've investigated a bit and I've discovered that while computing overviews, libtiff constantly switches from TIFF directories (main image, first