Geometric Relation Operators Scope

Oracle Spatial 16-9 Example 16–3 shows how to reference a spatial:context in an Oracle CQL query. In this case, the query uses link name SpatialGRS80 defined in Example 16–2 to propagate this application context to Oracle Spatial. The spatial:context attribute settings of SpatialGRS80 are applied to the createPoint method call. Example 16–3 Referencing spatial:context in an Oracle CQL Query view id=createPoint select com.oracle.cep.cartridge.spatial.Geometry.createPointSpatialGRS80 lng, lat from CustomerPos[NOW] view For more information including a complete list of all spatial:context attributes, see How to Configure Oracle Spatial Application Context in the Oracle Complex Event Processing Developers Guide for Eclipse.

16.2 Using Oracle Spatial

This section describes common use-cases that highlight how you can use Oracle Spatial in your Oracle CEP applications, including: ■ Section 16.2.1, How to Access the Geometry Types That the Oracle Spatial Java API Supports ■ Section 16.2.2, How to Create a Geometry ■ Section 16.2.3, How to Access Geometry Type Public Methods and Fields ■ Section 16.2.4, How to Use Geometry Relation Operators ■ Section 16.2.5, How to Use Geometry Filter Operators ■ Section 16.2.6, How to Use the Default Geodetic Coordinates Note: If you use a com.oracle.cep.cartridge.spatial.Geometry method that does not take an SDO_SRID value, then you must use the Oracle Spatial application context. For example, the following method call will cause a runtime exception: com.oracle.cep.cartridge.spatial.Geometry.createPointlng, lat Instead, you must use the spatial link name to associate the method call with the Oracle Spatial application context: com.oracle.cep.cartridge.spatial.Geometry.createPointspatiallng, lat If you use a Geometry method that takes an SDO_SRID value, then the use of the spatial link name is optional. For example, both the following method calls are valid: com.oracle.cep.cartridge.spatial.Geometry.createPoint8307, lng, lat com.oracle.cep.cartridge.spatial.Geometry.createPointspatiallng, lat For more information, see Section 16.1.2.7, Geometry API .