is there a way to resolve index out of bonds error (using geopandas)?

Viewed 19
 SHAPE_PATH = os.path.join(".", "/home/sahil/", "mapa.geojson")

  area_gdf = gpd.read_file(SHAPE_PATH)

Geometry of an entire area

   full_geometry = Geometry(area_gdf.geometry.values[0], crs=CRS.WGS84)

Bounding box of a test sub-area

   test_bbox = Geometry(area_gdf.geometry.values[1], crs=CRS.WGS84).bbox

   area_gdf.plot(column="name");

Error- index 1 is out of bounds for axis 0 with size 1

0 Answers
Related