Fiona写shapefile的效率

7 篇文章 0 订阅

Fiona关于性能的描述之一

Fiona翻译
Fiona’s performance is relatively more slow if you only need access to a single record field – and of course if you just want to reproject or filter data files, nothing beats the ogr2ogr program - but Fiona’s performance is much better than OGR’s Python bindings if you want all fields and coordinates of a record如果只是存取单条记录字段,Fiona的性能相对较慢 – 如果是要重投影或过滤数据,没什么比ogr2ogr更快了。 但是如果要存取记录的所有字段和坐标,Fiona的性能要优于OGR的Python绑定库
Depending on the driver, a transaction can be a very costly operation. Since write() is just a thin convenience wrapper that calls writerecords() with a single record, you may experience significant performance issue if you write lots of features one by one using this method. Consider preparing your data first and then writing it in a single call to writerecords()取决于驱动,一个事务可能很耗时。因为 write() 只是使用单条记录调用 writerecords() 的一个简略外包。如果用该方法【write()】一条条写入大量要素,就会遇到很大的性能问题。因此最好先把数据准备好,然后调用writerecords()一次写入
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值