25.04.2013 Views

View PDF

View PDF

View PDF

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

SDO_SAM.AGGREGATES_FOR_LAYER<br />

Format<br />

Description<br />

Parameters<br />

Usage Notes<br />

SDO_SAM.AGGREGATES_FOR_LAYER(<br />

theme_name IN VARCHAR2,<br />

theme_colname IN VARCHAR2,<br />

aggr_type_string IN VARCHAR2,<br />

aggr_col_string IN VARCHAR2,<br />

tablename IN VARCHAR2,<br />

colname IN VARCHAR2,<br />

dst_spec IN VARCHAR2 DEFAULT NULL<br />

) RETURN SDO_REGAGGRSET;<br />

Computes thematic aggregates for a layer of geometries.<br />

theme_name<br />

Name of the theme table.<br />

theme_colname<br />

Name of the geometry column in theme_name.<br />

SDO_SAM.AGGREGATES_FOR_LAYER<br />

aggr_type_string<br />

Any Oracle SQL aggregate function that accepts one or more numeric values and<br />

computes a numeric value, such as SUM, MIN, MAX, or AVG.<br />

aggr_col_string<br />

Name of a column in theme_name on which to compute aggregate values, as<br />

explained in the Usage Notes. An example might be a POPULATION column.<br />

tablename<br />

Name of the data mining table.<br />

colname<br />

Name of the column in tablename that holds the geometries.<br />

dst_spec<br />

A quoted string specifying either a distance buffer or a number of nearest neighbor<br />

geometries to consider. See the Usage Notes for the SDO_SAM.AGGREGATES_FOR_<br />

GEOMETRY function in this chapter for an explanation of the format and meaning.<br />

For each geometry in tablename, this function identifies the geometries in the<br />

theme_name table, finds their intersection ratio, multiplies the specified aggregate<br />

using this intersection ratio, and aggregates it for each geometry in tablename.<br />

Specifically, for all rows of the theme_name table, it returns the value from the<br />

following function:<br />

SDO_SAM Package (Spatial Analysis and Mining) 29-5

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

Saved successfully!

Ooh no, something went wrong!