拼花文件格式的geopandas api。
geoparquet的Python项目详细描述
地质勘探
geoparquet for python是一个geopandas api,旨在加快 以开源拼花文件格式输入/输出地理信息系统数据。
该项目目前是一个概念的证明。
为什么需要此项目?
地理信息系统社区目前缺乏一种快速、高效、开源的文件格式 与保持和共享数据。Geoparquet项目的目的是 开发这样的文件格式。
它是如何工作的?
GeopARCKE文件格式是对现有拼花文件的简单修改。 格式:几何图形存储为众所周知的二进制(wkb)和坐标 参考系以wkt字符串(特别是wkt2_2018)的形式存储在 文件的元数据。
基本用法
importgeopandasasgpdimportgeoparquetasgpq# read in file from shapefile or other format using geopandasgdf=gpd.read_file('example file.shp')# call .to_parquet() method on geopandas GeoDataFrame to write to filegdf.to_parquet('example file.geoparquet')# read from file by calling gpq.read_geoparquet() functiongdf=gpq.read_geoparquet('example file.geoparquet')