在 postgres 中使用来自 layer_styles table 的现有样式创建一个新的 table
Create a new table with existing style from layer_styles table in postgres
有什么方法可以使用 layer_styles table 中的现有样式创建 postgis table?比如说我在 layer_styles table 中存储了很多样式。我需要将 layer_styles table 中的一种样式分配给我要创建的新 table。可以在使用 sql 命令创建 table 期间使用 postgresql 完成吗?
您需要确定感兴趣的图层 ID(或名称,或您想要的任何列)并使用此数据+结构创建新的 table。然而,在这个辅助 table 中使用样式可能并不那么容易
create table public.layer_styles_2 as
(select * from public.layer_styles where id in (2,3));
有什么方法可以使用 layer_styles table 中的现有样式创建 postgis table?比如说我在 layer_styles table 中存储了很多样式。我需要将 layer_styles table 中的一种样式分配给我要创建的新 table。可以在使用 sql 命令创建 table 期间使用 postgresql 完成吗?
您需要确定感兴趣的图层 ID(或名称,或您想要的任何列)并使用此数据+结构创建新的 table。然而,在这个辅助 table 中使用样式可能并不那么容易
create table public.layer_styles_2 as
(select * from public.layer_styles where id in (2,3));