[PROJ] PROJ 9.6.2 RC1 available

Roger Bivand Roger.Bivand at nhh.no
Wed Jun 4 14:25:12 PDT 2025


For me, 9.6.2RC1 resolves 2 failures seen with 9.6.1 in GDAL ctest.

Roger

________________________ test_ogr_esrijson_identify_srs ________________________

    def test_ogr_esrijson_identify_srs():
    
        data = """
            {
            "objectIdFieldName" : "objectid",
            "geometryType" : "esriGeometryPoint",
            "spatialReference":{"wkt":"PROJCS[\\"NAD_1983_StatePlane_Arizona_Central_FIPS_0202_IntlFeet\\",GEOGCS[\\"GCS_North_American_1983\\",DATUM[\\"D_North_American_1983\\",SPHEROID[\\"GRS_1980\\",6378137.0,298.257222101]],PRIMEM[\\"Greenwich\\",0.0],UNIT[\\"Degree\\",0.0174532925199433]],PROJECTION[\\"Transverse_Mercator\\"],PARAMETER[\\"False_Easting\\",700000.0],PARAMETER[\\"False_Northing\\",0.0],PARAMETER[\\"Central_Meridian\\",-111.9166666666667],PARAMETER[\\"Scale_Factor\\",0.9999],PARAMETER[\\"Latitude_Of_Origin\\",31.0],UNIT[\\"Foot\\",0.3048]]"},
            "fields" : [],
            "features" : []
            }
            """
    
        ds = ogr.Open(data)
        assert ds is not None
        lyr = ds.GetLayer(0)
        sr = lyr.GetSpatialRef()
        assert sr
>       assert sr.GetAuthorityCode(None) == "2223"
E       AssertionError: assert None == '2223'
E        +  where None = GetAuthorityCode(None)
E        +    where GetAuthorityCode = <osgeo.osr.SpatialReference; proxy of <Swig Object of type 'OSRSpatialReferenceShadow *' at 0x7fe97866dec0> >.GetAuthorityCode

/home/rsb/topics/gdal/gdal-3.11.0/build/autotest/ogr/ogr_esrijson.py:676: AssertionError

_____________________________ test_gdalsrsinfo_17 ______________________________

gdalsrsinfo_path = '/home/rsb/topics/gdal/gdal-3.11.0/build/apps/gdalsrsinfo'
tmp_path = PosixPath('/tmp/pytest-of-rsb/pytest-5/test_gdalsrsinfo_170')

    def test_gdalsrsinfo_17(gdalsrsinfo_path, tmp_path):
    
        # Zero match
        ret = gdaltest.runexternal(gdalsrsinfo_path + ' -e "LOCAL_CS[foo]"')
    
        assert "EPSG:-1" in ret
    
        # One match
        ret = gdaltest.runexternal(gdalsrsinfo_path + " -e ../osr/data/lcc_esri.prj")
    
>       assert "EPSG:32119" in ret
E       assert 'EPSG:32119' in 'Confidence in this match: 25 %\n\nESRI:102024\n\nPROJ.4 : +proj=lcc +lat_0=0 +lon_0=25 +lat_1=20 +lat_2=-23 +x_0=0 +y...hington; West Virginia; Wisconsin; Wyoming."],\n        BBOX[24.41,-124.79,49.38,-66.91]],\n    ID["ESRI",102004]]\n\n'

/home/rsb/topics/gdal/gdal-3.11.0/build/autotest/utilities/test_gdalsrsinfo.py:291: AssertionError


--
Roger Bivand
Emeritus Professor
Norwegian School of Economics
Postboks 3490 Ytre Sandviken, 5045 Bergen, Norway
Roger.Bivand at nhh.no


More information about the PROJ mailing list