[gdal-dev] autotest 1.6 errors - need help

William Kyngesburye woklist at kyngchaos.com
Mon Dec 1 22:13:03 EST 2008


On Dec 1, 2008, at 12:20 PM, Even Rouault wrote:

> Yes, ILI/IOM has been fixed, but the GML driver has also been  
> changed so that
> it behaves correctly with Xerces 3.0. I can confirm that GDAL  
> 1.6.0RC2 passes
> the GML autotest when compiled and run against xerces-3.0.0 (x86  
> Linux).
> Are you sure you running a very recent GDAL ? The fix was commited  
> in r15773,
> on 2008/11/20, between beta2 and RC1.
>

Ah, something wrong with Xerces 3, at least with mine.  GDAL 1.6RC3  
now, same errors.  Rebuilt GDAL with Xerces 2.8 and all I get is:

   TEST: ogr_gml_4 ... fail
     Wrong featureCode field value

ILI still succeeds.

The full set of errors with Xerces 3 is:

   TEST: ogr_gml_1 ... ERROR 1: <coordinates> element missing value.
fail (blowup)
Traceback (most recent call last):
   File "pymod/gdaltest.py", line 89, in run_tests
     result = func()
   File "./ogr_gml_read.py", line 72, in ogr_gml_1
     if feat.GetField('Name') != 'Aartselaar':
AttributeError: 'NoneType' object has no attribute 'GetField'
   TEST: ogr_gml_2 ... ERROR 1: <coordinates> element missing value.
fail (blowup)
Traceback (most recent call last):
   File "pymod/gdaltest.py", line 89, in run_tests
     result = func()
   File "./ogr_gml_read.py", line 100, in ogr_gml_2
     if gml_ds.GetLayerCount() != 1:
AttributeError: 'NoneType' object has no attribute 'GetLayerCount'
   TEST: ogr_gml_3 ... ERROR 1: <coordinates> element missing value.
fail (blowup)
Traceback (most recent call last):
   File "pymod/gdaltest.py", line 89, in run_tests
     result = func()
   File "./ogr_gml_read.py", line 139, in ogr_gml_3
     if feat.GetField('ngd_id') != 817792:
AttributeError: 'NoneType' object has no attribute 'GetField'
   TEST: ogr_gml_4 ... ERROR 1: <coordinates> element missing value.
fail (blowup)
Traceback (most recent call last):
   File "pymod/gdaltest.py", line 89, in run_tests
     result = func()
   File "./ogr_gml_read.py", line 181, in ogr_gml_4
     if feat.GetField('featureCode') != 10198:
AttributeError: 'NoneType' object has no attribute 'GetField'
   TEST: ogr_gml_5 ... ERROR 1: <coordinates> element missing value.
success


-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled  
with hyena offal?
Second Pogril: I don't know.  Why IS life like sticking your head in a  
bucket filled with hyena offal?
First Pogril: I don't know either.  Wretched, isn't it?

-HitchHiker's Guide to the Galaxy




More information about the gdal-dev mailing list