@@ -891,14 +891,26 @@ def test_write_geometry_z_types(tmp_path, wkt, geom_types):
891
891
),
892
892
("Point Z + Point" , "2.5D Point" , True , ["Point Z (0 0 0)" , "Point (0 0)" ]),
893
893
("Point Z + None" , "2.5D Point" , False , ["Point Z (0 0 0)" , None ]),
894
+ (
895
+ "Point Z + LineString Z" ,
896
+ "Unknown" ,
897
+ False ,
898
+ ["LineString Z (0 0 0, 1 1 0)" , "Point Z (0 0 0)" ],
899
+ ),
900
+ (
901
+ "Point Z + LineString" ,
902
+ "Unknown" ,
903
+ True ,
904
+ ["LineString (0 0, 1 1)" , "Point Z (0 0 0)" ],
905
+ ),
894
906
],
895
907
)
896
908
def test_write_geometry_z_types_auto (
897
909
tmp_path , ext , test_descr , exp_geometry_type , mixed_dimensions , wkt
898
910
):
899
911
# Shapefile has some different behaviour that other file types
900
912
if ext == ".shp" :
901
- if exp_geometry_type == "2.5D GeometryCollection" :
913
+ if exp_geometry_type in ( "2.5D GeometryCollection" , "Unknown" ) :
902
914
pytest .skip (f"ext { ext } doesn't support { exp_geometry_type } " )
903
915
elif exp_geometry_type == "2.5D MultiLineString" :
904
916
exp_geometry_type = "2.5D LineString"
0 commit comments