We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f12c553 commit 5b948e0Copy full SHA for 5b948e0
profiles/examples/postgis.lua
@@ -58,7 +58,7 @@ function way_function (way, result)
58
"SELECT SUM(SQRT(area.area)) AS val " ..
59
"FROM osm_ways way " ..
60
"LEFT JOIN osm_landusages area ON ST_DWithin(way.geometry, area.geometry, 100) " ..
61
- "WHERE area.type IN ('industrial') AND way.osm_id=" .. way.id .. " " ..
+ "WHERE area.type IN ('industrial') AND way.osm_id=" .. way:id() .. " " ..
62
"GROUP BY way.id"
63
64
local cursor = assert( sql_con:execute(sql_query) ) -- execute querty
0 commit comments