uxarray.Grid.to_geodataframe

uxarray.Grid.to_geodataframe#

Grid.to_geodataframe(override=False, cache=True, exclude_antimeridian=False)#

Constructs a spatialpandas.GeoDataFrame with a “geometry” column, containing a collection of Shapely Polygons or MultiPolygons representing the geometry of the unstructured grid. Additionally, any polygon that crosses the antimeridian is split into MultiPolygons.

Parameters:
  • override (bool) – Flag to recompute the GeoDataFrame if one is already cached

  • cache (bool) – Flag to indicate if the computed GeoDataFrame should be cached

  • exclude_antimeridian (bool) – Selects whether to exclude any face that contains an edge that crosses the antimeridian

Returns:

gdf – The output GeoDataFrame with a filled out “geometry” collumn

Return type:

spatialpandas.GeoDataFrame