Jump to content

Storing coordinates in SQL


nimdraal

Recommended Posts

Hi I have basically two quesitons. 

 

1: For decimal coordinates. normaly like 56.230943 but in extreme cases -102.1323123 or the previous number but positive.  I am currently using double (11, 8 Is that the best option?

 

2: When I store coordinates in another format. Like this "58°1′57.35″N". How shall I do to get that exact string from the form at the webpage to get stored in the right format in the database?

 

 

 

I have read about spatial extensions... But I get the impression that I should learn to walk before I start to run... right? 

Link to comment
https://forums.phpfreaks.com/topic/280007-storing-coordinates-in-sql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.