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

@@ -171,12 +171,12 @@ Example:
```javascript ```javascript
{ {
_id: [ 5130, 2348 ], _id: [ null, 2348, 5130 ],
line: 5130, line: 5130,
point: 2348, point: 2348,
class: 'V', class: 'V',
ntba: false, ntba: false,
geometry: '0101000020F759000033333333C7BB1C413333333328FD5841', geometry: '{"type":"Point","crs":{"type":"name","properties":{"name":"EPSG:23031"}},"coordinates":[470769.8,6550688.8]}',
meta: {}, meta: {},
count: 0 count: 0
} }

View File

@@ -93,7 +93,14 @@ async function bySequence (client) {
async function byPreplot (client) { async function byPreplot (client) {
console.error("byPreplot"); console.error("byPreplot");
const text = ` 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 FROM preplot_points pp
INNER JOIN preplot_points_count ppc USING (line, point) INNER JOIN preplot_points_count ppc USING (line, point)
ORDER BY line, point; ORDER BY line, point;