This repository was archived by the owner on Dec 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-21
lines changed
macrostrat_tileserver/single_map/queries Expand file tree Collapse file tree 2 files changed +18
-21
lines changed Original file line number Diff line number Diff line change 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- )
121SELECT
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 ))
Original file line number Diff line number Diff line change 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 ))
You can’t perform that action at this time.
0 commit comments