kopia lustrzana https://github.com/osm2vectortiles/osm2vectortiles
Fix small formatting issues
rodzic
c0d7b38940
commit
09ee97382d
|
@ -1,4 +1,4 @@
|
|||
CREATE OR REPLACE FUNCTION count_osmid( tablelist TEXT[] ) RETURNS bigint AS $$
|
||||
CREATE OR REPLACE FUNCTION count_osmid(tablelist TEXT[]) RETURNS bigint AS $$
|
||||
DECLARE
|
||||
i int8 := 0;
|
||||
feature_count bigint;
|
||||
|
@ -39,7 +39,7 @@ RETURNS TABLE (
|
|||
BEGIN
|
||||
RETURN QUERY
|
||||
SELECT id as tid,
|
||||
count_osmid(iosmlist) as all_features,
|
||||
count_osmid(iosmlist) as all_features,
|
||||
count_osmid(ilayerlist) as used_features,
|
||||
iosmlist as osmlist,
|
||||
ilayerlist as layerlist;
|
||||
|
|
|
@ -70,6 +70,6 @@ WITH vlayers AS (
|
|||
array['mountain_peak_label_layer']
|
||||
)
|
||||
)
|
||||
SELECT *, round ((used_features::numeric*100) / all_features::numeric, 2) as percent
|
||||
SELECT *, round((used_features::numeric * 100) / all_features::numeric, 2) as percent
|
||||
FROM vlayers
|
||||
ORDER BY tid;
|
||||
|
|
Ładowanie…
Reference in New Issue