Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Storing co-ordinate / spatial information in non-GIS systems

RE: Storing co-ordinate / spatial information in non-GIS systems

From: David Wendelken <davewendelken_at_earthlink.net>
Date: Mon, 15 Aug 2005 07:31:31 -0400
Message-ID: <002d01c5a18c$e2830d60$6401a8c0@davidwendelken>


>
>What I am grappling with is how to keep the co-ordinate pair
>"atomic". If I used separate fields for the latitude and
>longitude, an unknown point would have two nulls, a known
>point two values ... one of each would be "verboten", and hard
>to protect against using normal check constraints (or maybe
>I'm just having a senior moment).

I vote for senior moment. :)

Use a check constraint on the table:

(latitude is not null and longitude is not null) or (latitude is null and longitude is null).

Of course, if you were storing true historical data, only knowing the latitude would be perfectly correct.
(But I digress...)

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Aug 15 2005 - 06:30:31 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US