GPUdb.insert_symbol( symbol_id = None, symbol_format = None, symbol_data = None,
options = {} )
Adds a symbol or icon (i.e. an image) to represent data points when data is rendered visually. Users must provide the symbol identifier (string), a format (currently supported: 'svg' and 'svg_path'), the data for the symbol, and any additional optional parameter (e.g. color). To have a symbol used for rendering create a table with a string column named 'SYMBOLCODE' (along with 'x' or 'y' for example). Then when the table is rendered (via WMS or visualize_image) if the 'dosymbology' parameter is 'true' then GPUdb uses the value of the 'SYMBOLCODE' column to pick the symbol displayed for each point.
Input Parameter Description
Name | Type | Description | ||||
---|---|---|---|---|---|---|
symbol_id | str | The id of the symbol being added. This is the same id that should be in the 'SYMBOLCODE' column for objects using this symbol | ||||
symbol_format | str | Specifies the symbol format. Must be either 'svg' or 'svg_path'. The allowed values are:
|
||||
symbol_data | str | The actual symbol data. If input parameter symbol_format is 'svg' then this should be the raw bytes representing an svg file. If input parameter symbol_format is svg path then this should be an svg path string, for example: 'M25.979,12.896,5.979,12.896,5.979,19.562,25.979,19.562z' | ||||
options | dict of str | Optional parameters. Default value is an empty dict ( {} ).
|
Output Parameter Description
Name | Type | Description |
---|---|---|
symbol_id | str | Value of input parameter symbol_id. |