Bug Fix on _all_places iterator method in libmapservice
svn: r11979
This commit is contained in:
parent
4fbb5d5427
commit
16257bd0f1
@ -73,9 +73,10 @@ class MapService():
|
|||||||
|
|
||||||
def _all_places(self):
|
def _all_places(self):
|
||||||
"""Obtain a list generator of all place objects
|
"""Obtain a list generator of all place objects
|
||||||
Usage: for place, descr in mapservice.all_places()
|
Usage as an iterator:
|
||||||
|
for place, descr in mapservice.all_places()
|
||||||
"""
|
"""
|
||||||
for handle, descr in self.database.get_handles():
|
for handle, descr in self.items:
|
||||||
yield self.database.get_place_from_handle(handle), descr
|
yield self.database.get_place_from_handle(handle), descr
|
||||||
|
|
||||||
def _lat_lon(self, place, format="D.D8"):
|
def _lat_lon(self, place, format="D.D8"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user