kopia lustrzana https://github.com/openmaptiles/openmaptiles
Change to pointonsurface
rodzic
9f891b625a
commit
4d546282c5
|
@ -47,43 +47,43 @@ $$
|
||||||
BEGIN
|
BEGIN
|
||||||
UPDATE osm_boundary_polygon
|
UPDATE osm_boundary_polygon
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_boundary_polygon_gen_z13
|
UPDATE osm_boundary_polygon_gen_z13
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_boundary_polygon_gen_z12
|
UPDATE osm_boundary_polygon_gen_z12
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_boundary_polygon_gen_z11
|
UPDATE osm_boundary_polygon_gen_z11
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_boundary_polygon_gen_z10
|
UPDATE osm_boundary_polygon_gen_z10
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_boundary_polygon_gen_z9
|
UPDATE osm_boundary_polygon_gen_z9
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_boundary_polygon_gen_z8
|
UPDATE osm_boundary_polygon_gen_z8
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_boundary_polygon_gen_z7
|
UPDATE osm_boundary_polygon_gen_z7
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_boundary_polygon_gen_z6
|
UPDATE osm_boundary_polygon_gen_z6
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_boundary_polygon_gen_z5
|
UPDATE osm_boundary_polygon_gen_z5
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
|
@ -142,7 +142,7 @@ AS
|
||||||
$$
|
$$
|
||||||
BEGIN
|
BEGIN
|
||||||
NEW.tags = update_tags(NEW.tags, NEW.geometry);
|
NEW.tags = update_tags(NEW.tags, NEW.geometry);
|
||||||
NEW.geometry_point = st_centroid(NEW.geometry);
|
NEW.geometry_point = ST_PointOnSurface(NEW.geometry);
|
||||||
RETURN NEW;
|
RETURN NEW;
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
|
|
|
@ -67,43 +67,43 @@ $$
|
||||||
BEGIN
|
BEGIN
|
||||||
UPDATE osm_park_polygon
|
UPDATE osm_park_polygon
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_park_polygon_gen_z13
|
UPDATE osm_park_polygon_gen_z13
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_park_polygon_gen_z12
|
UPDATE osm_park_polygon_gen_z12
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_park_polygon_gen_z11
|
UPDATE osm_park_polygon_gen_z11
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_park_polygon_gen_z10
|
UPDATE osm_park_polygon_gen_z10
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_park_polygon_gen_z9
|
UPDATE osm_park_polygon_gen_z9
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_park_polygon_gen_z8
|
UPDATE osm_park_polygon_gen_z8
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_park_polygon_gen_z7
|
UPDATE osm_park_polygon_gen_z7
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_park_polygon_gen_z6
|
UPDATE osm_park_polygon_gen_z6
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
UPDATE osm_park_polygon_gen_z5
|
UPDATE osm_park_polygon_gen_z5
|
||||||
SET tags = update_tags(tags, geometry),
|
SET tags = update_tags(tags, geometry),
|
||||||
geometry_point = st_centroid(geometry);
|
geometry_point = ST_PointOnSurface(geometry);
|
||||||
|
|
||||||
REFRESH MATERIALIZED VIEW CONCURRENTLY osm_park_polygon_dissolve_z4;
|
REFRESH MATERIALIZED VIEW CONCURRENTLY osm_park_polygon_dissolve_z4;
|
||||||
END;
|
END;
|
||||||
|
@ -165,7 +165,7 @@ AS
|
||||||
$$
|
$$
|
||||||
BEGIN
|
BEGIN
|
||||||
NEW.tags = update_tags(NEW.tags, NEW.geometry);
|
NEW.tags = update_tags(NEW.tags, NEW.geometry);
|
||||||
NEW.geometry_point = st_centroid(NEW.geometry);
|
NEW.geometry_point = ST_PointOnSurface(NEW.geometry);
|
||||||
RETURN NEW;
|
RETURN NEW;
|
||||||
END;
|
END;
|
||||||
$$ LANGUAGE plpgsql;
|
$$ LANGUAGE plpgsql;
|
||||||
|
|
|
@ -28,7 +28,10 @@
|
||||||
"image",
|
"image",
|
||||||
[
|
[
|
||||||
"match",
|
"match",
|
||||||
["get", "subclass"],
|
[
|
||||||
|
"get",
|
||||||
|
"subclass"
|
||||||
|
],
|
||||||
"chocolate",
|
"chocolate",
|
||||||
"confectionery",
|
"confectionery",
|
||||||
"wine",
|
"wine",
|
||||||
|
@ -39,7 +42,10 @@
|
||||||
"perfumery",
|
"perfumery",
|
||||||
"wholesale",
|
"wholesale",
|
||||||
"trade",
|
"trade",
|
||||||
["get", "subclass"]
|
[
|
||||||
|
"get",
|
||||||
|
"subclass"
|
||||||
|
]
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
@ -118,10 +124,16 @@
|
||||||
},
|
},
|
||||||
"icon-image": [
|
"icon-image": [
|
||||||
"match",
|
"match",
|
||||||
["get", "subclass"],
|
[
|
||||||
|
"get",
|
||||||
|
"subclass"
|
||||||
|
],
|
||||||
"chocolate",
|
"chocolate",
|
||||||
"confectionery",
|
"confectionery",
|
||||||
["get", "subclass"]
|
[
|
||||||
|
"get",
|
||||||
|
"subclass"
|
||||||
|
]
|
||||||
],
|
],
|
||||||
"text-field": "{name:latin}\n{name:nonlatin}",
|
"text-field": "{name:latin}\n{name:nonlatin}",
|
||||||
"visibility": "visible",
|
"visibility": "visible",
|
||||||
|
|
Ładowanie…
Reference in New Issue