Changes between Initial Version and Version 1 of Ticket #2498


Ignore:
Timestamp:
Jul 23, 2008, 12:52:31 PM (16 years ago)
Author:
Mateusz Łoskot
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2498 – Description

    initial v1  
    1111To be 100% of that, I patched the C++ implementation of OGRSpatialReference::Validate to always return OGRERR_CORRUPT_DATA (integer value 5), regardless of WKT being validated.
    1212
    13 Testing the patched GDAL has confirmed that Zero is returned, always.
     13Testing the patched GDAL has confirmed that Zero is returned, always:
     14
     15{{{
     16mloskot@vm-ubuntu704ora:~/dev/gdal/bugs/1183$ python
     17Python 2.5.1 (r251:54863, Mar  7 2008, 03:41:45)
     18[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
     19Type "help", "copyright", "credits" or "license" for more information.
     20>>> import osgeo.osr as osr
     21>>> srs = osr.SpatialReference()
     22>>> srs.ImportFromWkt("xxx")
     230
     24>>> srs.Validate()
     25OSR: XXX
     260
     27>>>
     28}}}