[gdal-dev] autotest 1.6 errors - need help

William Kyngesburye woklist at kyngchaos.com
Sun Nov 30 17:03:12 EST 2008


I'm working on some autotest errors for 1.6, and I need some help to  
figure out how to fix them.

- ogr_gml

   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'

and similar errors for tests 2-4

strangely, there is a similar error for test 5 but it succeeds:

  TEST: ogr_gml_5 ... ERROR 1: <coordinates> element missing value.
success

Could it have something to do with Xerces 3?  I can try recompiling  
with Xerces 2.8.


- tiff_write

   TEST: tiff_write_55 ... PROJCS["Equirectangular  
Mars",GEOGCS["GCS_Mars",DATUM["unknown",SPHEROID["unnamed", 
3394813.857975945,0]],PRIMEM["Greenwich",0],UNIT["degree", 
0.0174532925199433]],PROJECTION["Equirectangular"],PARAMETER["latitude_of_origin",-2],PARAMETER["central_meridian",184.4129943847656],PARAMETER["standard_parallel_1",0],PARAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["metre",1,AUTHORITY["EPSG","9001"]]]
fail
     failed to preserve Equirectangular projection as expected, old  
libgeotiff?

Well, I'm using geotiff 1.2.5, and I notice that GDAL includes 1.2.4.

It's not saying what the difference is.


- gdrivers/grass

   TEST: grass_2 ...
old =  PROJCS["UTM Zone 18, Northern Hemisphere",
     GEOGCS["grs80",
         DATUM["North_American_Datum_1983",
             SPHEROID["Geodetic_Reference_System_1980", 
6378137,298.257222101],
             TOWGS84[0.000,0.000,0.000]],
         PRIMEM["Greenwich",0],
         UNIT["degree",0.0174532925199433]],
     PROJECTION["Transverse_Mercator"],
     PARAMETER["latitude_of_origin",0],
     PARAMETER["central_meridian",-75],
     PARAMETER["scale_factor",0.9996],
     PARAMETER["false_easting",500000],
     PARAMETER["false_northing",0],
     UNIT["meter",1]]
new =
fail
     Projections differ

It seems to have completely dropped the projection.  Note that I'm  
using a trimmed down library-only GRASS and may have missed something  
in the dummy grass/etc/ folder.


- mrsid - I've been getting this for a while, even in 1.5.

   TEST: mrsid_1 ...
old =  PROJCS["MER         E000|",
     GEOGCS["NAD27",
         DATUM["North_American_Datum_1927",
             SPHEROID["Clarke 1866",6378206.4,294.9786982139006,
                 AUTHORITY["EPSG","7008"]],
             AUTHORITY["EPSG","6267"]],
         PRIMEM["Greenwich",0],
         UNIT["degree",0.0174532925199433],
         AUTHORITY["EPSG","4267"]],
     PROJECTION["Mercator_1SP"],
     PARAMETER["latitude_of_origin",1],
     PARAMETER["central_meridian",1],
     PARAMETER["scale_factor",1],
     PARAMETER["false_easting",1],
     PARAMETER["false_northing",1],
     UNIT["metre",1,
         AUTHORITY["EPSG","9001"]]]
new =  PROJCS["MER         E000|",
     GEOGCS["NAD27",
         DATUM["North_American_Datum_1927",
             SPHEROID["Clarke 1866",6378206.4,294.9786982139006,
                 AUTHORITY["EPSG","7008"]],
             AUTHORITY["EPSG","6267"]],
         PRIMEM["Greenwich",0],
         UNIT["degree",0.0174532925199433],
         AUTHORITY["EPSG","4267"]],
     PROJECTION["Mercator_1SP"],
     PARAMETER["central_meridian",0],
     PARAMETER["scale_factor",1],
     PARAMETER["false_easting",0],
     PARAMETER["false_northing",0],
     UNIT["metre",1,
         AUTHORITY["EPSG","9001"]]]
fail
     Projections differ

It's losing most of the parameters or their values.

Then:

   TEST: mrsid_4 ...
old =  (0.0, 255.0, 102.684, 51.613999999999997)
new =  [0.0, 255.0, 103.11236497314, 52.476991490286998]
fail
     Approximate statistics differs.

I think this used to be OK, though I sorta remember seeing it before.


- osr_esri

   TEST: osr_esri_10 ...
Got:        
PROJCS["Sphere_Plate_Carree",GEOGCS["GCS_Sphere",DATUM["D_Sphere",SPHEROID["Sphere",6371000.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.017453292519943295]],PROJECTION["Equidistant_Cylindrical"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],UNIT["Meter",1.0]]
Expected:   
PROJCS["Sphere_Plate_Carree",GEOGCS["GCS_Sphere",DATUM["D_Sphere",SPHEROID["Sphere",6371000.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.017453292519943295]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",0.0],UNIT["Meter",1.0]]
fail
     Did not get expected Plate_Caree SRS after morphToESRI


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

Earth: "Mostly harmless"

- revised entry in the HitchHiker's Guide to the Galaxy




More information about the gdal-dev mailing list