From 26d3206c58170fe5ac986e7068d4f8a3ddb87829 Mon Sep 17 00:00:00 2001 From: tumik Date: Fri, 1 Dec 2023 01:13:01 +0200 Subject: [PATCH] Fix call to way:id() in PostGIS profile example --- profiles/examples/postgis.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiles/examples/postgis.lua b/profiles/examples/postgis.lua index cfdbb283130..36071c919b7 100644 --- a/profiles/examples/postgis.lua +++ b/profiles/examples/postgis.lua @@ -58,7 +58,7 @@ function way_function (way, result) "SELECT SUM(SQRT(area.area)) AS val " .. "FROM osm_ways way " .. "LEFT JOIN osm_landusages area ON ST_DWithin(way.geometry, area.geometry, 100) " .. - "WHERE area.type IN ('industrial') AND way.osm_id=" .. way.id .. " " .. + "WHERE area.type IN ('industrial') AND way.osm_id=" .. way:id() .. " " .. "GROUP BY way.id" local cursor = assert( sql_con:execute(sql_query) ) -- execute querty