10.12.2012 Views

Oracle Spatial User's Guide and Reference - InfoLab

Oracle Spatial User's Guide and Reference - InfoLab

Oracle Spatial User's Guide and Reference - InfoLab

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Spatial</strong> Java Interface<br />

tolerance NUMBER);<br />

The tolerance value in the SDOAGGRTYPE definition should be the same as the<br />

SDO_TOLERANCE value specified in the DIMINFO column in the xxx_SDO_<br />

GEOM_METADATA views for the geometries, unless you have a specific reason for<br />

wanting a different value. For more information about tolerance, see Section 1.5.5;<br />

for information about the xxx_SDO_GEOM_METADATA views, see Section 2.4.<br />

The tolerance value in the SDOAGGRTYPE definition can affect the result of a<br />

spatial aggregate function. Figure 1–8 shows a spatial aggregate union (SDO_<br />

AGGR_UNION) operation of two geometries using two different tolerance values:<br />

one smaller <strong>and</strong> one larger than the distance between the geometries.<br />

Figure 1–8 Tolerance in an Aggregate Union Operation<br />

In the first aggregate union operation in Figure 1–8, where the tolerance is less than<br />

the distance between the rectangles, the result is a compound geometry consisting<br />

of two rectangles. In the second aggregate union operation, where the tolerance is<br />

greater than the distance between the rectangles, the result is a single geometry.<br />

1.11 <strong>Spatial</strong> Java Interface<br />

This section describes the sdoapi Java client interface for general <strong>Spatial</strong><br />

operations. In addition to the sdoapi interface, <strong>Spatial</strong> provides other specialized<br />

interfaces, which are documented in other manuals:<br />

1-20 <strong>Oracle</strong> <strong>Spatial</strong> User’s <strong>Guide</strong> <strong>and</strong> <strong>Reference</strong><br />

Note: Do not use SDOAGGRTYPE as the data type for a column<br />

in a table. Use this type only in calls to spatial aggregate functions.<br />

geom1<br />

tolerance<br />

tolerance<br />

geom2<br />

geom1 geom2<br />

SDO_AGGR_<br />

UNION<br />

SDO_AGGR_<br />

UNION

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!