Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

at_wkf_geopivot_sum takes the following parameters:

ParameterTypeDescription
geometry_tablecharacter varyingThe table of polygons to use for the data aggregation, all the columns in this table will be replicated in the output table.
geometry_id_columncharacter varyingA column in geometry_table that uniquely identifies the records.
data_tablecharacter varyingThe table containing records with point geometry and category.
category_columncharacter varyingThe column in data_table to be used to categorize the data.
value_columncharacter varyingThe column in data_table containing the values to be summed.
output_tablecharacter varyingThe table to create with the summed and pivoted data, if it exists it will be dropped first.

Create a Stored Procedure Task in Studio and select the Function at_wkf_geopivot_sum.

...

at_wkf_geopivot_count takes the following parameters:

ParameterTypeDescription
geometry_tablecharacter varyingThe table of polygons to use for the data aggregation, all the columns in this table will be replicated in the output table.
geometry_id_columncharacter varyingA column in geometry_table that uniquely identifies the records.
data_tablecharacter varyingThe table containing records with point geometry and category.
category_columncharacter varyingThe column in data_table to be used to categorize the data.
output_tablecharacter varyingThe table to create with the counted and pivoted data, if it exists it will be dropped first.

Create a Stored Procedure Task in Studio and select the Function at_wkf_geopivot_count.

...

Your final table must contain a unique identifier, of data type SERIAL. This is generally called “ogc_fid”. If not already present, this can be added using another Stored Procedure Task, selecting the Workflow radio button and then select the at_wkf_executecmd entry from the list.

Click on Parameter 1. cmdtexecute cmdtoexecute and enter the following.

...