Home
|
Tools
|
Maps
|
Tutorials
|
Articles
|
Hosting
July 31, 2010, 07:24:02 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Welcome to GPSFileDepot!
Home
Help
Search
Login
Register
GPSFileDepot Forums
>
General Category
>
Map Making Support
(Moderators:
-Oz-
,
Indrid Cold
) >
Best way to represent trail data in a database?
Pages: [
1
]
« previous
next »
Print
Author
Topic: Best way to represent trail data in a database? (Read 764 times)
santoshamb
Newbie
Posts: 1
Best way to represent trail data in a database?
«
on:
September 25, 2008, 11:36:48 AM »
Hello,
I'm currently working on a project where I'm going to be collecting and querying data for hiking trails. Eventually, I'd like to store all the trails in the US, and import trails from Gov sources like the USGS or the NPS. I'll be overlaying these trails onto a map using a mapping service, so really the only data I need to store will be latitude and longitude for points along the trail. I currently have a simple table structure:
Trail
Id
Name
Desc
Ect...
Trailpoint
Trailid
Lat
Lon
Ect...
Where one trail as many trailpoints. This works well if I'm accepting trails in GPX format, I can just pull out all the trackpoints and store them into the database. Unfortunately, it seems that the vast majority of existing trail data is in shapefiles, (like the NPS for instance) and it's not easy to convert over to GPX so that I can import into my simple representation.
Which leads me to question, is my way the best way to represent trails? Should I be using something more complex like PostGIS? I'm currently using MySQL and my host doesn't support PostgreSQL so moving over would be difficult.
Thanks for all the help!
Ben
Logged
-Oz-
Map Maker!
Administrator
Hero Member
Posts: 1081
Re: Best way to represent trail data in a database?
«
Reply #1 on:
September 25, 2008, 06:32:52 PM »
postgis/postgresql is pretty easy but there are other options:
http://dev.mysql.com/doc/refman/5.0/en/spatial-extensions.html
<-- mysql5 spatial extensions.
I would advise against writing your own because there is the possibility for more errors. But yes, yours would work for gpx files but all govt data is in at least shapefile.
Logged
Dan Blomberg
Administrator - GPSFileDepot
GPS Units: Garmin Dakota 20, Garmin GPSMap 60csx, Nuvi 255W, Nuvi 250W
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> General Discussion
=> Using The Maps/Garmin Software
=> Map Making Support
=> GPSr Units
-----------------------------
Site Support
-----------------------------
=> Site Support
Loading...