semantique.processor.arrays.Array.to_geodataframe

semantique.processor.arrays.Array.to_geodataframe#

Array.to_geodataframe(output_crs=None)[source]#

Convert the array to a geopandas GeoDataFrame.

The data frame will contain one column per dimension, a column containing the data values, and a geometry column containing coordinates of geospatial points that represent the centroids of the pixels in the array.

Parameters:

output_crs (optional) – Spatial coordinate reference system of the GeoDataFrame. Can be given as any object understood by the initializer of pyproj.crs.CRS. This includes pyproj.crs.CRS objects themselves, as well as EPSG codes and WKT strings. If None, the CRS of the array itself is used.

Returns:

geopandas.GeoDataFrame – The converted input array