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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using the Geocoding Capabilities<br />

SDO_GCDR.GEOCODE('SCOTT',SDO_KEYWORDARRAY('1CARLTONBGOODLETTPL','SANFRANCISCO<br />

--------------------------------------------------------------------------------<br />

23614360<br />

SELECT SDO_GCDR.GEOCODE('SCOTT',<br />

SDO_KEYWORDARRAY('1 Carlton B Goodlett Pl', 'San Francisco, CA 94102'),<br />

'US', 'RELAX_BASE_NAME').MatchCode FROM DUAL;<br />

SDO_GCDR.GEOCODE('SCOTT',SDO_KEYWORDARRAY('1CARLTONBGOODLETTPL','SANFRANCISCO<br />

--------------------------------------------------------------------------------<br />

1<br />

5.2.2 SDO_ADDR_ARRAY Type<br />

The SDO_ADDR_ARRAY type is a VARRAY of SDO_GEO_ADDR objects<br />

(described in Section 5.2.1) used to store geocoded address results. Multiple address<br />

objects can be returned when multiple addresses are matched as a result of a<br />

geocoding operation.<br />

The SDO_ADDR_ARRAY type is defined as follows:<br />

CREATE TYPE sdo_addr_array AS VARRAY(1000) OF sdo_geo_addr;<br />

5.2.3 SDO_KEYWORDARRAY Type<br />

The SDO_KEYWORDARRAY type is a VARRAY of VARCHAR2 strings used to<br />

store address lines for unformatted addresses. (Formatted <strong>and</strong> unformatted<br />

addresses are described in Section 5.1.1.)<br />

The SDO_KEYWORDARRAY type is defined as follows:<br />

CREATE TYPE sdo_keywordarray AS VARRAY(10000) OF VARCHAR2(9000);<br />

5.3 Using the Geocoding Capabilities<br />

To use the <strong>Oracle</strong> <strong>Spatial</strong> geocoding capabilities, you must use data provided by a<br />

geocoding vendor, <strong>and</strong> the data must be in the format supported by the <strong>Oracle</strong><br />

<strong>Spatial</strong> geocoding feature. For information about getting <strong>and</strong> loading this data, go<br />

to the <strong>Spatial</strong> page of the <strong>Oracle</strong> Technology Network (OTN):<br />

http://otn.oracle.com/products/spatial/<br />

Find the link for geocoding, <strong>and</strong> follow the instructions.<br />

Geocoding Address Data 5-9

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

Saved successfully!

Ooh no, something went wrong!