Change definition of Preplot QC objects

This commit is contained in:
D. Berge
2020-09-12 22:25:45 +02:00
parent 13d4771589
commit da7a977c59
2 changed files with 10 additions and 3 deletions

View File

@@ -93,7 +93,14 @@ async function bySequence (client) {
async function byPreplot (client) {
console.error("byPreplot");
const text = `
SELECT ARRAY[line, point] _id, *
SELECT ARRAY[NULL, point, line] _id,
line,
point,
class,
ntba,
ST_AsGeoJSON(geometry) geometry,
meta,
count
FROM preplot_points pp
INNER JOIN preplot_points_count ppc USING (line, point)
ORDER BY line, point;