LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-06-2015, 07:20 PM   #1
bogeyman2007
Member
 
Registered: Jul 2015
Distribution: Arch, Mint, Slackware, Tiny Core
Posts: 31

Rep: Reputation: Disabled
Database For Storing Polyline Coordinates


Hi,

I need to store some polylines coordinates data into a table. What is the best database that suitable for doing that? And what is the data type? I also need that coordinates can be queried using some radius from one position (latitude, longitude).

For example from coordinates -6.118687601752689 and 106.90720740688471, what are the closest polylines in 500 meter radius?


Thanks before.
 
Old 07-06-2015, 08:01 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
Hard for me to say, personally.

If traversing the lines is something you'd like to do, then look into neo4j.

Last edited by dugan; 07-06-2015 at 08:04 PM.
 
Old 07-06-2015, 08:37 PM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Also, if the coordinates are spatial data ("latitude and longitude"), then you might find that various databases have specific support for this use-case.

Start by looking, for example, at pages like this one: http://dev.mysql.com/doc/refman/5.6/...xtensions.html

I would particularly call your attention to the opening two paragraphs of that page, which for your convenience I have included below:
Quote:
The Open Geospatial Consortium (OGC) is is an international consortium of more than 250 companies, agencies, and universities participating in the development of publicly available conceptual solutions that can be useful with all kinds of applications that manage spatial data.

The Open Geospatial Consortium publishes the OpenGISŪ Implementation Standard for Geographic information - Simple feature access - Part 2: SQL option, a document that proposes several conceptual ways for extending an SQL RDBMS to support spatial data. This specification is available from the OGC Web site at http://www.opengeospatial.org/standards/sfs.
Any application which references or uses geo-spatial data should, I think, be "put to the drawing board" only after a very careful review of such "prior art." Even before you commit to the idea of thinking of whatever-it-is as being (say ...) "a polyline" ... which is a purely 2D-graphics concept ... I would canvass, with a very open mind, everything that I might encounter at a site such as "opengeospatial.org."
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
capturing image and storing it in the database bharat goud Ubuntu 1 03-31-2012 02:45 AM
Import a txt file and read line by line, polyline by polyline C++ 924199952 Programming 2 02-16-2012 05:35 AM
Database software for storing documents and "unstructured" data pengyou Linux - Software 2 10-30-2008 01:20 AM
Reading a CSV text file and storing the values in Oracle Database table shafi2all Linux - Newbie 3 04-17-2008 12:19 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration