A SERVICE OF

logo

New -18 Custom Spatial Query Error Code | 165
Description
Sets the custom spatial query to apply to the layer.
Custom spatial queries consist of a set of user-defined SQL statements that
you can use instead of the default Autodesk MapGuide spatial queries. You
can use custom spatial queries if the parameters of the default spatial queries
don’t include the restraints you need for your data. For more information
about custom spatial queries, see “Using a Custom Spatial Query” on
page 46.
Parameters
query – String representing the custom spatial query that you want to apply
the layer.
Returns
boolean – Specifies whether or not the custom query was successfully
applied.
True – Indicates that the custom query was successfully applied.
False – Indicates that the custom query has not been set.
Error Codes
-1 (Busy)
-5 (Security Violation)
-15 (Does not apply)
See Also
getSpatialQuery
New -18 Custom Spatial Query Error Code
Some of the existing methods for the MGMapLayerSetup and the MGData-
baseSetup objects have a new -18 Custom Spatial Query error code.
The -18 Custom Spatial Query error code indicates that these methods
cannot return or set the columns for the specified attributes (key, URLLink,
SQL WHERE clause, symbol size, and text alignment) for custom spatial