Commit c63ef325 authored by Bjarni Pjetursson's avatar Bjarni Pjetursson
Browse files

Update 14-manglende-tilladelser-til-indvinding.sql

parent 3d7b6614
......@@ -24,7 +24,7 @@ SELECT
CASE WHEN ia_bo.purpose IS NOT NULL THEN bf.longtext||' ['||ia_bo.purpose||']' END AS oprindeligt_boringsformaal,
CASE WHEN ia_bo.use IS NOT NULL THEN ba.shorttext||' ['||ia_bo.use||']' END AS aktuel_boringsanvendelse,
ia_bo.amountperyear AS bor_tilladelse_m3,
CASE WHEN ia_bo.xutm32euref89 IS NOT NULL THEN 'POINT('||TO_CHAR(ROUND(ia_bo.xutm32euref89))||' '||TO_CHAR(ROUND(ia_bo.yutm32euref89))||')' ELSE 'POINT(0 0)' END AS wkt
CASE WHEN ia_bo.xutm32euref89 IS NOT NULL THEN 'POINT ('||TO_CHAR(ROUND(ia_bo.xutm32euref89))||' '||TO_CHAR(ROUND(ia_bo.yutm32euref89))||')' ELSE 'POINT(0 0)' END AS wkt
FROM drwplant anl /* Anlæg https://data.geus.dk/tabellerkoder/index.html?tablename=DRWPLANT */
LEFT JOIN code_808 kl ON anl.municipalityno2007 = kl.code /* Kommune https://data.geus.dk/tabellerkoder/koder.html?codetype=808 */
LEFT JOIN code_807 rl ON anl.region = rl.code /* Region https://data.geus.dk/tabellerkoder/koder.html?codetype=807 */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment