fix address interpolation for self-intersecting ways

This commit is contained in:
Sarah Hoffmann
2014-11-03 22:41:12 +01:00
parent 4b8632d1e5
commit 59de7c5a9b
4 changed files with 93 additions and 5 deletions

View File

@@ -49,6 +49,7 @@ def check_placex_content(step, tablename):
q = 'SELECT *'
if tablename == 'placex':
q = q + ", ST_X(centroid) as clat, ST_Y(centroid) as clon"
q = q + ", ST_GeometryType(geometry) as geometrytype"
q = q + ' FROM %s where osm_type = %%s and osm_id = %%s' % (tablename,)
if cls is None:
params = (osmtype, osmid)