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)
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)