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.

Examples<br />

SDO_GCDR.GEOCODE<br />

The following example geocodes the address of City Hall in San Francisco,<br />

California, using the RELAX_BASE_NAME match mode. It returns the longitude <strong>and</strong><br />

latitude coordinates of this address as -122.41815 <strong>and</strong> 37.7784183, respectively.<br />

SELECT SDO_GCDR.GEOCODE('SCOTT', SDO_KEYWORDARRAY('1 Carlton B Goodlett Pl',<br />

'San Francisco, CA 94102'), 'US', 'RELAX_BASE_NAME') FROM DUAL;<br />

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

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

SDO_GEO_ADDR(0, SDO_KEYWORDARRAY(), NULL, 'CARLTON B GOODLETT PL', NULL, NULL, '<br />

SAN FRANCISCO', NULL, 'CA', 'US', '94102', NULL, '94102', NULL, '1', 'CARLTON B<br />

GOODLETT', 'PL', 'F', 'F', NULL, NULL, 'L', .01, 23614360, 'nul?#ENUT?B281CP?',<br />

1, 'DEFAULT', -122.41815, 37.7784183)<br />

Geocoding Subprograms 20-3

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

Saved successfully!

Ooh no, something went wrong!