1010from pygmt .helpers import data_kind
1111from pygmt .helpers .testing import skip_if_no
1212
13- gpd = pytest .importorskip ("geopandas" )
13+ geopandas = pytest .importorskip ("geopandas" )
1414shapely = pytest .importorskip ("shapely" )
1515
1616
@@ -36,7 +36,7 @@ def fixture_gdf():
3636 }
3737 )
3838 # Multipolygon first so the OGR_GMT file has @GMULTIPOLYGON in the header
39- gdf = gpd .GeoDataFrame (
39+ gdf = geopandas .GeoDataFrame (
4040 index = ["multipolygon" , "polygon" , "linestring" ],
4141 geometry = [multipolygon , polygon , linestring ],
4242 )
@@ -54,7 +54,7 @@ def fixture_gdf_ridge():
5454 fname = ["@RidgeTest.shp" , "@RidgeTest.shx" , "@RidgeTest.dbf" , "@RidgeTest.prj" ],
5555 download = "c" ,
5656 )
57- gdf = gpd .read_file (shapefile [0 ])
57+ gdf = geopandas .read_file (shapefile [0 ])
5858 # Reproject the geometry
5959 gdf ["geometry" ] = (
6060 gdf .to_crs (crs = "EPSG:3857" )
@@ -98,7 +98,7 @@ def test_geopandas_plot_default_square():
9898 2d.
9999 """
100100 point = shapely .geometry .Point (1 , 2 )
101- gdf = gpd .GeoDataFrame (geometry = [point ])
101+ gdf = geopandas .GeoDataFrame (geometry = [point ])
102102 fig = Figure ()
103103 fig .plot (data = gdf , region = [0 , 2 , 1 , 3 ], projection = "X2c" , frame = True )
104104 return fig
@@ -111,7 +111,7 @@ def test_geopandas_plot3d_default_cube():
111111 geometry in 3d.
112112 """
113113 multipoint = shapely .geometry .MultiPoint ([(0.5 , 0.5 , 0.5 ), (1.5 , 1.5 , 1.5 )])
114- gdf = gpd .GeoDataFrame (geometry = [multipoint ])
114+ gdf = geopandas .GeoDataFrame (geometry = [multipoint ])
115115 fig = Figure ()
116116 fig .plot3d (
117117 data = gdf ,
@@ -131,7 +131,7 @@ def test_geopandas_plot_non_default_circle():
131131 2d.
132132 """
133133 point = shapely .geometry .Point (1 , 2 )
134- gdf = gpd .GeoDataFrame (geometry = [point ])
134+ gdf = geopandas .GeoDataFrame (geometry = [point ])
135135 fig = Figure ()
136136 fig .plot (data = gdf , region = [0 , 2 , 1 , 3 ], projection = "X2c" , frame = True , style = "c0.2c" )
137137 return fig
@@ -144,7 +144,7 @@ def test_geopandas_plot3d_non_default_circle():
144144 in 3d.
145145 """
146146 multipoint = shapely .geometry .MultiPoint ([(0.5 , 0.5 , 0.5 ), (1.5 , 1.5 , 1.5 )])
147- gdf = gpd .GeoDataFrame (geometry = [multipoint ])
147+ gdf = geopandas .GeoDataFrame (geometry = [multipoint ])
148148 fig = Figure ()
149149 fig .plot3d (
150150 data = gdf ,
@@ -280,7 +280,7 @@ def test_geopandas_nonascii():
280280 (1 , 3 ),
281281 ]
282282 )
283- gdf = gpd .GeoDataFrame (
283+ gdf = geopandas .GeoDataFrame (
284284 {
285285 "name_ascii" : ["Fiji" ],
286286 "name_utf8" : ["فيجي" ], # Arabic
0 commit comments