[fix] include properties

This commit is contained in:
Al
2015-10-12 15:41:53 -05:00
parent 20567bf9a3
commit 0fd65c0dea
2 changed files with 10 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ class RTreePolygonIndex(object):
if poly_type == 'Polygon':
poly = Polygon(rec['geometry']['coordinates'][0])
index.index_polygon(i, poly)
index.add_polygon(poly, rec['properties'])
index.add_polygon(poly, rec['properties'], include_only_properties=include_props)
elif poly_type == 'MultiPolygon':
polys = []
for coords in rec['geometry']['coordinates']: