@@ -3434,14 +3434,19 @@ def test_ogr_gmlas_get_gml_and_iso_schemas(tmp_path):
3434
3434
@pytest .mark .require_curl ()
3435
3435
def test_ogr_gmlas_bugfix_sf_2371 ():
3436
3436
3437
- url = (
3438
- "http://repository.gdi-de.org/schemas/adv/citygml/building/1.0/buildingLoD1.xsd"
3437
+ urls = (
3438
+ "http://repository.gdi-de.org/schemas/adv/citygml/building/1.0/buildingLoD1.xsd" ,
3439
+ "http://docs.oasis-open.org/election/external/xAL.xsd" ,
3439
3440
)
3440
- conn = gdaltest .gdalurlopen (url , timeout = 4 )
3441
- if conn is None :
3442
- pytest .skip (f"cannot open { url } " )
3443
3441
3444
3442
ds = gdal .OpenEx ("GMLAS:data/gmlas/citygml_empty_lod1.gml" )
3443
+
3444
+ if ds is None :
3445
+ for url in urls :
3446
+ conn = gdaltest .gdalurlopen (url , timeout = 4 )
3447
+ if conn is None :
3448
+ pytest .skip (f"cannot open { url } " )
3449
+
3445
3450
lyr = ds .GetLayerByName ("address1" )
3446
3451
assert lyr .GetFeatureCount () == 0
3447
3452
@@ -3514,10 +3519,17 @@ def test_ogr_gmlas_choice_inlined(filename, attrname, value):
3514
3519
@pytest .mark .require_curl ()
3515
3520
def test_ogr_gmlas_citygml_lod2_no_schema_location ():
3516
3521
3517
- url = "https://schemas.opengis.net/citygml/2.0/cityGMLBase.xsd"
3518
- conn = gdaltest . gdalurlopen ( url , timeout = 4 )
3519
- if conn is None :
3520
- pytest . skip ( f"cannot open { url } " )
3522
+ urls = (
3523
+ "http://repository.gdi-de.org/schemas/adv/citygml/building/1.0/buildingLoD1.xsd" ,
3524
+ "http://docs.oasis-open.org/election/external/xAL.xsd" ,
3525
+ )
3521
3526
3522
3527
ds = gdal .OpenEx ("GMLAS:data/gmlas/lod2_empty_no_schema_location.gml" )
3528
+
3529
+ if ds is None :
3530
+ for url in urls :
3531
+ conn = gdaltest .gdalurlopen (url , timeout = 4 )
3532
+ if conn is None :
3533
+ pytest .skip (f"cannot open { url } " )
3534
+
3523
3535
assert ds .GetLayerCount () == 1537
0 commit comments