kopia lustrzana https://github.com/hholzgra/ocitysmap
fixed todo + dead code
rodzic
118f0a4210
commit
bacb8e42a0
|
|
@ -127,7 +127,7 @@ class Stylesheet:
|
||||||
|
|
||||||
class OCitySMap:
|
class OCitySMap:
|
||||||
"""
|
"""
|
||||||
TODO
|
TODO: documentation here
|
||||||
"""
|
"""
|
||||||
|
|
||||||
DEFAULT_REQUEST_TIMEOUT_MIN = 15
|
DEFAULT_REQUEST_TIMEOUT_MIN = 15
|
||||||
|
|
@ -238,7 +238,7 @@ class OCitySMap:
|
||||||
|
|
||||||
def _get_osmid_area(self, osmid):
|
def _get_osmid_area(self, osmid):
|
||||||
"""Returns the bounding box area around the given OSM ID."""
|
"""Returns the bounding box area around the given OSM ID."""
|
||||||
# TODO:
|
# TODO: merge with get_bounding_box
|
||||||
l.info('Looking for contour around OSM ID %d...' % osmid)
|
l.info('Looking for contour around OSM ID %d...' % osmid)
|
||||||
cursor = self._db.cursor()
|
cursor = self._db.cursor()
|
||||||
cursor.execute("""select st_astext(st_transform(st_buildarea(way), 4002))
|
cursor.execute("""select st_astext(st_transform(st_buildarea(way), 4002))
|
||||||
|
|
|
||||||
|
|
@ -195,8 +195,6 @@ class StreetIndex:
|
||||||
|
|
||||||
return [category for category in result if category.items]
|
return [category for category in result if category.items]
|
||||||
|
|
||||||
def build_data_nogrid(self):
|
|
||||||
return self._categories
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import os
|
import os
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue