Re: [gdal-dev] [PATCH] Support Mercator_2SP in GeoTIFF

2013-11-04 Thread Trent Piepho
I've never used or built GeoTools, so I didn't actually run the software to test it. I did examine the code for geotools and am fairly confident they are handling 1SP/2SP in geotiff the same way I am. If anyone uses geotools, I can provide a geotiff in 2sp. The ticket is the same issue and I thi

Re: [gdal-dev] [PATCH] Support Mercator_2SP in GeoTIFF

2013-11-04 Thread Even Rouault
Trent / others, Although your patch comes with a detailed analysis, I find myself a bit light on the topic to blindly apply it. A few observations : * I found an old ticket that might be related http://trac.osgeo.org/gdal/ticket/1797. Would your patch solve the issue raised in that ticket ?

[gdal-dev] [PATCH] Support Mercator_2SP in GeoTIFF

2013-11-03 Thread Trent Piepho
Mercator_[12]SP are both the same projection in GeoTIFF. Lacking a definition in the official specification, the intention appears to be that for Mercator_2SP the latitude of true scale (lat_ts) should be specified in ProjStdParallel1GeoKey and for Mercator_2SP the scale at origin (k) should be sp