Autodesk 15607-010000-5000A Manuale Utente

Pagina di 180
164
|
Chapter 9
Enhanced Layer Functionality API Additions
See Also
getPostSQLStatements, addPostSQLStatement
getSpatialQuery Method
Syntax
String getSpatialQuery()
Description
Gets the custom spatial query that is applied to the layer. 
A custom spatial query consists 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
none
Returns
String – Represents the custom spatial query that is applied to the layer. 
Returns an empty string if no custom spatial query is defined.
Error Codes
-5 (Security Violation)
-15 (Does not apply)
See Also
setSpatialQuery
setSpatialQuery Method
Syntax
boolean setSpatialQuery(String query)