[gdal-dev] Error Handling (or not) in GTIFSetFromOGISDefn

Andrew Bell andrew.bell.ia at gmail.com
Tue Dec 13 14:12:41 PST 2016


Hi,

I'm passing a WKT CRS into GTIFSetFromOGISDefn().  The WKT is valid in that
it conforms to the OGC representation v1.0 (12-063-r5).  The function
mentioned above parses the WKT into nodes properly, but the code that tries
to interpret the actual WKT can't deal with the new specification.
However, it doesn't error.  Instead, it sets a bunch of value to be
"user-defined" and results in Geotiff keys that don't map to the input CRS.

Is there a reason that a "bad" CRS is mapped as a user-defined value rather
than returning an error?  Is there a plan to update WKT code to handle the
new specification?

Thanks,

-- 
Andrew Bell
andrew.bell.ia at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20161213/8cd2d40d/attachment.html>


More information about the gdal-dev mailing list