예제 #1
0
 def __geo_interface__(self):
     features = []
     for seg in self.segs.values():
         features.append(seg.__geo_interface__)
     for jct in self.jcts.values():
         features.append(jct.__geo_interface__)
     return geofeatures.geo_feature_collection(features, srs=self.srs)
예제 #2
0
파일: osm.py 프로젝트: obtitus/spiderosm
 def __geo_interface__(self):
     features = []
     for way_id in self.ways.keys():
         features.append(self.way_geo(way_id))
     for node_id in self.nodes.keys():
         features.append(self.node_geo(node_id))
     return geofeatures.geo_feature_collection(features, srs=self.srs)