If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Database Concepts & Design > Data type for geolocation data

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-18-07, 02:30
naz naz is offline
Registered User
 
Join Date: Jul 2003
Posts: 18
Data type for geolocation data

I would like to store latitude and longitude coordinates in my database. I am using PostgreSQL and am aware of PostGIS, however I do not want to use it at this stage for various reasons.

I would however like to store lat/long coords that would be taken from Google Earth or even directly input from a user via the uploading of CSV/NMEA/GE data files.

Can anyone tell me what the best data type to use is? I was thinking of using NUMERIC(12,9) which would give me 1.11mm accuracy, but I am not sure if that is the best way to go about doing it.

Is anyone familiar with the data output by GPS loggers, and can offer me any insight into how best to input it into a DB? I have ordered a GPS logger, and will be poking around with its output data files to when it arrives, but any veteran knowledge would be appreciated.

Regards,
- Naz.
Reply With Quote
  #2 (permalink)  
Old 08-18-07, 03:19
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
PostgreSQL supports several geometric data types that may be of interest, including the point.
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On