簡體   English   中英

將.shp文件寫入S3

[英]Writing .shp file to S3

我嘗試將geopandas數據框( df )作為形狀文件寫入到s3存儲桶中(使用databricks)

S3存儲桶已正確安裝在mnt/jk/Geo_data

df.to_file('mnt/jk/Geo_data/shapefiles/Geometries.shp', driver='ESRI Shapefile')

退貨

 Failed to create file /databricks/driver/mnt/jk/Geo_data/shapefiles/Geometries.shp: No such file or directory

由於geopandas是Python庫,因此在數據塊中,您需要在所有路徑前添加/ dbfs /。 因此,您的路徑應為“ /dbfs/mnt/jk/Geo_data/shapefiles/Geometries.shp”。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM