mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:37:08 +00:00
Change definition of Preplot QC objects
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user