middleplatform分析服务扩展

2. 分析服务使用说明

2.1 扩展分析服务

2.1.1. 分析表创建:在业务库中创建需要分析的表,表结构根据业务需要创建相应的字段,以建设用地报批为例

CREATE TABLE public.gg_fx_jsydbp
(
    bsm character varying(50) COLLATE pg_catalog."default" DEFAULT uuid_generate_v4(),
    jzlb character varying(50) ,
    nf character varying(50) ,
    sjlb character varying(50) ,
    rksj timestamp(6) without time zone DEFAULT CURRENT_TIMESTAMP,
    tb_bsm character varying(100) ,
    cdmj numeric(18,4) DEFAULT NULL::numeric,
    cdbl numeric(18,4) DEFAULT NULL::numeric,
    xmmc character varying(255),
    pzwh character varying(255) ,
    pzjg character varying(255) ,
    pzrq character varying(255) ,
    dkbh character varying(255) ,
    dkmc character varying(255),
    pzmj character varying(255)
)

2.1.2 中台库analysis_param表的配置:

soe配置实例

id analysis_name param_name param_type default_value bsm
7 jsydbp_analysis Digit 1 6 8f5b00fc
9 jsydbp_analysis f 5 json 8c5294d0
46 jsydbp_analysis Geometries 1 {Geometries} ff2a458a
47 jsydbp_analysis LayerIds 1 0 59a8dcd3
48 jsydbp_analysis OutFields 1 0 b8925130

geoway配置实例

id analysis_name param_name param_type default_value bsm
1 jsydbp_analysis ApplicationGUID 1 8879849f-0087-4db5-a8f2-386aa5e8b0cg 8f5b00fc
2 jsydbp_analysis Blocks 5 {wktCoordStrs} 8c5294d0
3 jsydbp_analysis AnalysisID 1 {bsm} ff2a458a
4 jsydbp_analysis SFFHTX 1 false 59a8dcd3

2.1.3. 中台库table_analysisresult_db_relation表的配置:

geoway配置实例

analysisresult_table_name db_table_name analysis_name id analysis_url analysis_type sjnf bsm
jsydbp_analysis gg_fx_jsydbp jsydbp_analysis 2 http://192.168.1.183:4011/gw-server/GLCX_NZYJSYDXMTB geowayOverLapAnalysis 2020 3b89eba3

soe配置实例

analysisresult_table_name db_table_name analysis_name id analysis_url analysis_type sjnf bsm analysisresult_get_sql_name
jsydbp_analysis gg_fx_jsydbp jsydbp_analysis 2 http://192.168.1.77:6080/arcgis/rest/services/SP_JS/SL_DZ_JSYDSP/MapServer/exts/DIITRestSOE2000/overlapAnalysis soeOverLapAnalysis 2020 3b89eba3 analysis_result_table_select

2.1.4. 中台库column_analysisresult_db_relation表的配置记录:

geoway配置实例

analysisresult_column_name analysisresult_column_type db_column_name db_column_type analysis_name default_value bsm
YZMJ 4 cdmj 4 jsydbp_analysis 1
XMMC 1 xmmc 1 jsydbp_analysis 2
PZWH 1 pzwh 1 jsydbp_analysis 3
PZZMJ 4 pzmj 4 jsydbp_analysis 4
tb_bsm 1 jsydbp_analysis 5 {bsm}
nf 1 jsydbp_analysis 6 [sjnf]
YZBL 4 cdbl 4 jsydbp_analysis 7

soe配置实例

analysisresult_column_name analysisresult_column_type db_column_name db_column_type analysis_name id default_value
ClipArea 4 cdmj 4 jsydbp_analysis 1
XMMC 1 xmmc 1 jsydbp_analysis 2
PZWH 1 pzwh 1 jsydbp_analysis 3
PZZMJ 4 pzmj 4 jsydbp_analysis 4
tb_bsm 1 jsydbp_analysis 5 {bsm}
nf 1 jsydbp_analysis 6 [sjnf]
YZBL 4 cdbl 4 jsydbp_analysis 7
DKMC 1 dkmc 1 jsydbp_analysis 8 {dkmc}
DKID 1 dkbh 1 jsydbp_analysis 9

2.1.5. 中台库yw_analysis_param表配置记录

表yw_analysis_param字段ywk_analysis_names增加需要分析的分析名称 (与table_analysisresult_db_relation表中analysis_name字段内容一致),如下增加“jsydbp_analysis”:

jbnt_analysis,gd_analysis,sthx_analysis,xzdl_analysis,jsydbp_analysis

2.1.6. 业务库gg_fx_state表增加字段:

字段名称与中台库table_analysisresult_db_relation表中analysis_name字段内容一致
如:

ALTER TABLE public.gg_fx_state
    ADD COLUMN jsydbp_analysis integer DEFAULT 0;

你可能感兴趣的:(middleplatform分析服务扩展)