import fiona
import numpy
fiona_collection = fiona.open('addresses_points.shp') #the points file has a lot of addresses, most of them are not interesting for me.
mycity_addresses = {}
mycity_postcodes = xrange(1000, 20001) #series of postcodes I do want to read
for i in fiona_collection:
rec = fiona_collection.next()
if int(rec['properties']['Postcode'][:4]) in mycity_postcodes:
mycity_addresses[rec['id']] = rec
总的来说,我想要的是用相应的坐标对地址表进行地理编码。做这件事的简单方法是什么?在
目前没有回答
相关问题 更多 >
编程相关推荐