Skip to content
This repository was archived by the owner on Dec 22, 2025. It is now read-only.

Commit 03f1613

Browse files
committed
Updated points
1 parent 5b17232 commit 03f1613

File tree

2 files changed

+18
-21
lines changed

2 files changed

+18
-21
lines changed
Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
1-
WITH mvt_features AS (
2-
SELECT
3-
line_id,
4-
source_id,
5-
geom
6-
FROM
7-
:compilation
8-
WHERE
9-
scale::text = :mapsize
10-
AND ST_Intersects(geom, ST_Transform(:envelope, 4326))
11-
)
121
SELECT
13-
z.line_id,
14-
z.source_id,
2+
l.line_id,
3+
l.source_id,
154
coalesce(l.descrip, '') AS descrip,
165
coalesce(l.name, '') AS name,
176
coalesce(l.direction, '') AS direction,
187
coalesce(l.type, '') AS "type",
19-
tile_layers.tile_geom(z.geom, :envelope) AS geom
20-
FROM mvt_features z
21-
LEFT JOIN maps.lines l
22-
ON z.line_id = l.line_id
23-
AND l.scale::text = ANY(:linesize)
24-
LEFT JOIN maps.sources
25-
ON z.source_id = sources.source_id
26-
WHERE sources.status_code = 'active'
8+
tile_layers.tile_geom(l.geom, :envelope) AS geom
9+
FROM maps.lines l
10+
WHERE l.source_id = :source_id
11+
AND ST_Intersects(geom, ST_Transform(:envelope, 4326))
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
SELECT
3+
strike,
4+
dip,
5+
dip_dir,
6+
point_type,
7+
certainty,
8+
comments,
9+
tile_layers.tile_geom(geom, :envelope) AS geom
10+
FROM maps.points
11+
WHERE source_id = :source_id
12+
AND ST_Intersects(geom, ST_Transform(:envelope, 4326))

0 commit comments

Comments
 (0)