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.

Data Types for Geocoding<br />

5.2 Data Types for Geocoding<br />

This section describes the data types specific to geocoding functions <strong>and</strong><br />

procedures.<br />

5.2.1 SDO_GEO_ADDR Type<br />

The SDO_GEO_ADDR object type is used to describe an address. When a geocoded<br />

address is output by an SDO_GCDR function or procedure, it is stored as an object<br />

of type SDO_GEO_ADDR.<br />

Table 5–5 lists the attributes of the SDO_GEO_ADDR type. Not all attributes will be<br />

relevant in any given case. The attributes used for a returned geocoded address<br />

depend on the geographical context of the input address, especially the country.<br />

Table 5–5 SDO_GEO_ADDR Type Attributes<br />

Attribute Data Type Description<br />

Id NUMBER (Not used.)<br />

AddressLines SDO_<br />

KEYWORDARRAY<br />

PlaceName VARCHAR2(200) (Not used.)<br />

5-6 <strong>Oracle</strong> <strong>Spatial</strong> User’s <strong>Guide</strong> <strong>and</strong> <strong>Reference</strong><br />

Address lines. (The SDO_KEYWORDARRAY<br />

type is described in Section 5.2.3.)<br />

StreetName VARCHAR2(200) Street name, including street type. Example:<br />

MAIN ST<br />

IntersectStreet VARCHAR2(200) Intersecting street.<br />

SecUnit VARCHAR2(200) Secondary unit, such as an apartment number<br />

or building number.<br />

Settlement VARCHAR2(200) Lowest-level administrative area to which the<br />

address belongs. (See Table 5–1.)<br />

Municipality VARCHAR2(200) Administrative area above settlement. (See<br />

Table 5–1.)<br />

Region VARCHAR2(200) Administrative area above municipality (if<br />

applicable), or above settlement if municipality<br />

does not apply. (See Table 5–1.)<br />

Country VARCHAR2(100) Country name or ISO country code.<br />

PostalCode VARCHAR2(20) Postal code (optional if administrative area<br />

information is provided). In the United States,<br />

the postal code is the 5-digit ZIP code.

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

Saved successfully!

Ooh no, something went wrong!