Skip to main content

◆ insertSymbol() [1/4]

InsertSymbolResponse gpudb::GPUdb::insertSymbol (const InsertSymbolRequest &request_) const

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) if the ‘dosymbology’ parameter is ‘true’ then the value of the ‘SYMBOLCODE’ column is used to pick the symbol displayed for each point.

Parameters
[in]request_Request object containing the parameters for the operation.
Returns
Response object containing the result of the operation.

◆ insertSymbol() [2/4]

InsertSymbolResponse & gpudb::GPUdb::insertSymbol (const InsertSymbolRequest &request_,
InsertSymbolResponse &response_ ) const

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) if the ‘dosymbology’ parameter is ‘true’ then the value of the ‘SYMBOLCODE’ column is used to pick the symbol displayed for each point.

Parameters
[in]request_Request object containing the parameters for the operation.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).

◆ insertSymbol() [3/4]

InsertSymbolResponse gpudb::GPUdb::insertSymbol (const std::string &symbolId,
const std::string &symbolFormat,
const std::vector< uint8_t > &symbolData,
const std::map< std::string, std::string > &options ) const

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) if the ‘dosymbology’ parameter is ‘true’ then the value of the ‘SYMBOLCODE’ column is used to pick the symbol displayed for each point.

Parameters
[in]symbolIdThe id of the symbol being added. This is the same id that should be in the ‘SYMBOLCODE’ column for objects using this symbol.
[in]symbolFormatSpecifies the symbol format. Must be either ‘svg’ or ‘svg_path’. Supported values:
[in]symbolDataThe actual symbol data. If symbolFormat is ‘svg’ then this should be the raw bytes representing an svg file. If symbolFormat 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’.
[in]optionsOptional parameters.
  • insert_symbol_color: If symbolFormat is ‘svg’ this is ignored. If symbolFormat is ‘svg_path’ then this option specifies the color (in RRGGBB hex format) of the path. For example, to have the path rendered in red, used ‘FF0000’. If ‘color’ is not provided then ‘00FF00’ (i.e. green) is used by default.
The default value is an empty map.
Returns
Response object containing the result of the operation.

◆ insertSymbol() [4/4]

InsertSymbolResponse & gpudb::GPUdb::insertSymbol (const std::string &symbolId,
const std::string &symbolFormat,
const std::vector< uint8_t > &symbolData,
const std::map< std::string, std::string > &options,
InsertSymbolResponse &response_ ) const

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) if the ‘dosymbology’ parameter is ‘true’ then the value of the ‘SYMBOLCODE’ column is used to pick the symbol displayed for each point.

Parameters
[in]symbolIdThe id of the symbol being added. This is the same id that should be in the ‘SYMBOLCODE’ column for objects using this symbol.
[in]symbolFormatSpecifies the symbol format. Must be either ‘svg’ or ‘svg_path’. Supported values:
[in]symbolDataThe actual symbol data. If symbolFormat is ‘svg’ then this should be the raw bytes representing an svg file. If symbolFormat 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’.
[in]optionsOptional parameters.
  • insert_symbol_color: If symbolFormat is ‘svg’ this is ignored. If symbolFormat is ‘svg_path’ then this option specifies the color (in RRGGBB hex format) of the path. For example, to have the path rendered in red, used ‘FF0000’. If ‘color’ is not provided then ‘00FF00’ (i.e. green) is used by default.
The default value is an empty map.
[out]response_Response object containing the results of the operation.
Returns
Response object containing the result of the operation (initially passed in by reference).