Creating a View Table with Parameters
You can create a view table with a MISQL query that includes one or more parameters. Using parameters lets an application or service generate different views of the map or reports based on input. As an example, generating reports for sales territories where the SQL statement generating the view table uses a parameter for territory ID. An application can call the view table for a specific territory to generate a report.
You can also specify a geometry as a MISQL parameter. The geometry must be valid and in well-known text format, such as POINT (-75 45). Supported geometry types are:
- POINT
- LINE
- POLYGON
- MULTIPOLYGON
Unless the geometry parameter is part of a function that already specifies a coordinate system, like MISQL FromWKT
, you must specify a geometry coordinate system.
- You must be an administrator (admin) or Spatial administrator (spatial-admin).
- Have a named table in Spectrum Spatialâ„¢ Manager.
To create a view table with parameters:
A detailed screen displays for your View Table where you can add a description for the table and keywords. You can also apply settings for the View Table under the Columns, Sample Rows, and Permissions tabs.
The table is ready to query.