GPSFileDepot Forums

General Category => Map Making Support => Topic started by: CodeJunkie on September 06, 2011, 10:45:01 AM

Title: Trail Basics
Post by: CodeJunkie on September 06, 2011, 10:45:01 AM
I'm interested in building a trail file from track maps collected by a collection of users.  These track files are all in gpx files and I have a method to consolidate them.  What I'm trying to create is an overlay that can be used in conjunction with existing maps already on the site.  The overlay would contain the trail maps for local state parks, state forests, county parks, etc.  Ideally I'd also like to include the boundary lines for these areas as well which would be manually entered shapes of some kind.

I'm new to the whole process and am hoping there is some information here already, but I just can't seem to find it.
Title: Re: Trail Basics
Post by: Boyd on September 06, 2011, 10:59:11 AM
gpx2img can create transparent maps from .gpx files so it's worth a look. I have not used it myself, but it may not have the full feature set you need: http://www.gpx2img.com/

For a more powerful all-around program that is still pretty user-friendly, have a look at Mapwel: http://mapwel.eu/

Or you could go the more traditional route and use a GPSMapEdit along with cgpsmapper:

http://www.geopainting.com/en/
http://www.cgpsmapper.com/

Title: Re: Trail Basics
Post by: BobT on September 07, 2011, 07:03:39 AM
Code Junkie, I do exactly what you want to do, I think.  I take gps tracks and make transparent maps out of them that will overlay on top of what ever other map you have on your GPSr.  I make ATV riding maps.  There are several map making tutorials around the web but I went ahead and made my own which IMHO is the best for what you want to do.  Most of the map makers on this and other site make much more complex maps than what you or I need.  I like to overlay mine on top of theirs.  You can find my latest map "Moab Trails 3.0" on this site to see what the installer looks like and what the final map looks like.

This tutorial shows you how to make different colored and dashed lines, custom POI's, and I use Inno Setup for making a distributable self installer.  The tutorial has detailed instructions and screen shots for each step along with sample files.  The install program gives the user the option to install the original gps tracks along with other options.  You can change all of the options by making slight modifications to the installer. 

http://www.mediafire.com/file/b7mfd8rkabwzdd9/Garmin%20Map%20Making%20Tutorial.zip (http://www.mediafire.com/file/b7mfd8rkabwzdd9/Garmin%20Map%20Making%20Tutorial.zip)
Title: Re: Trail Basics
Post by: CodeJunkie on September 13, 2011, 06:33:58 PM
This looks exactly like what I'm looking for.  Now time to download the recommended software and get busy experimenting.
Title: Re: Trail Basics
Post by: SAMM Clan on October 02, 2011, 02:51:24 PM
So I have successfully used gpsmapedit, gpsmapper, and the toolkit to make a trail map using parallels on my mac and the tutorial above. It looks pretty good on the gpsr, but each trail shows it's name when zoomed in. Is there a way to get the name of the trail only to show up when someone selects the trail on the gpsr? Basically, I want all the trails without the trail names showing by default (but I also want the detail level to remain the same for all my other maps). I tried searching for this but couldn't find the answer. As I am a newbie at this, it is probably obvious to you guys on how to do it. Thanks for any suggestions.
Title: Re: Trail Basics
Post by: Seldom on October 02, 2011, 03:37:08 PM
You could delete the labels from your trails in GPSmapedit, but then you wouldn't be able to see the names under any circumstances.  I think it's also possible to create a TYP file that suppresses the label of a particular type of object until you mouse over it, but the time I tried it, I didn't have much luck with it.
Title: Re: Trail Basics
Post by: Indrid Cold on October 02, 2011, 05:29:18 PM
It's a setting on the gps to not dispay the names. They only show when cursored on.
Title: Re: Trail Basics
Post by: SAMM Clan on October 02, 2011, 07:59:59 PM
Thank-you Seldom and Ingrid Cold for your replies. I tried to change the settings on my gpsr to get rid of the labels, but this only works on my gpsr when I also get rid of the road labels which I still want to see.

I tried to find a way to get rid of the labels in gpsmapedit, but I can't see an easy way to delete all the labels for the original gpx file. There are a total of 3700+ tracks in the file and deleting each will be onerous. The label itself provides no useful info since the original data came from my region's GIS website and each track is generically labelled by the local municipal government - ie: "Trail_1" all the way up to "Trail_3782". Do you know of an easy way to mass delete all the labels without harming the tracks?

Thanks for any assistance. The transparent trail map looks great otherwise on my gpsr.
Title: Re: Trail Basics
Post by: jbensman on October 02, 2011, 09:27:57 PM
Select all the trails, right click, label, and give them all the same name like 6

Do the same and select label again and it will show 6 as the name for all the trails, delete the 6 and then all the labels will be gone.

Title: Re: Trail Basics
Post by: Seldom on October 02, 2011, 09:50:49 PM
Quote from: SAMM Clan on October 02, 2011, 07:59:59 PM
I tried to find a way to get rid of the labels in gpsmapedit, but I can't see an easy way to delete all the labels for the original gpx file. There are a total of 3700+ tracks in the file and deleting each will be onerous. The label itself provides no useful info since the original data came from my region's GIS website and each track is generically labelled by the local municipal government - ie: "Trail_1" all the way up to "Trail_3782". Do you know of an easy way to mass delete all the labels without harming the tracks?

Get a text editor like Notepad++ (not Notepad). You should be able to work out a search and replace that's fairly painless on the MP file to remove labels in trails.
Title: Re: Trail Basics
Post by: jbensman on October 03, 2011, 08:05:37 AM
Quote from: Seldom on October 02, 2011, 09:50:49 PM
Quote from: SAMM Clan on October 02, 2011, 07:59:59 PM
I tried to find a way to get rid of the labels in gpsmapedit, but I can't see an easy way to delete all the labels for the original gpx file. There are a total of 3700+ tracks in the file and deleting each will be onerous. The label itself provides no useful info since the original data came from my region's GIS website and each track is generically labelled by the local municipal government - ie: "Trail_1" all the way up to "Trail_3782". Do you know of an easy way to mass delete all the labels without harming the tracks?

Get a text editor like Notepad++ (not Notepad). You should be able to work out a search and replace that's fairly painless on the MP file to remove labels in trails.

My solution is MUCH easier and simple.  I do it all the time.  You could change them all in gpsmapedit like I said in about 15 seconds. 
Title: Re: Trail Basics
Post by: Seldom on October 03, 2011, 08:34:32 AM
Indeed, your way is easier.  But if the SAMM gets a copy of Notepad++ he (she) will find lots of other useful things to do with it, like correct highway shields.
Title: Re: Trail Basics
Post by: SAMM Clan on October 03, 2011, 09:04:04 AM
Thanks for the responses. I tried to select all the tracks (before conversion to polylines) as well as after conversion to polylines and for some reason gpsmapedit wouldn't allow me to relabel the tracks (or lines). I didn't realize that the mp file was text editable until Seldom's solution. I ended up using a grep search and replace using BBEdit on my Mac partition that worked out great.

Thank-you - I am now a happy owner of a transparent map showing all the GIS tracked trails in my region! This is awesome.
Title: Re: Trail Basics
Post by: Seldom on October 03, 2011, 09:40:54 AM
Glad you got grep to work.  I don't know how to do that yet.  The process jbensman described works like this:

Once you have your trails as polylines,  Edit|Select|By Type  check 0x0016 (Roads - Walkway/Trail).  If you zoom close enough to see them they will be purple.  Select the Arrow tool and right click. In the dialog select Modify| Label  and add a dummy value (jbensman used "6" above) to overwrite all the trail labels.  Then repeat the process to substitute whitespace for the 6.
Title: Re: Trail Basics
Post by: SAMM Clan on October 03, 2011, 10:08:15 AM
I would never have figure out that gpsmapedit process on my own. I had searched the wiki since there is no manual, but didn't come across that method. I will remember it for the future. In terms of grep, it was pretty basic. I opened up the mp file and searched for:

Label=Trail_[0-9]+\ r

where each line of code to be replaced was "Label=Trail_" plus the number of the trail, from 1 to 3571. The [0-9]+ captured the variations of the trail numbering and the "\r"capture the whole line of code.

I then replaced it with:
Label=\r

This removed all the trail labels in a few seconds. Grep searches are great on code files. Thanks for pointing out that I could open up the mp file in a txt editor. When I tried using a grep on the original gpx file, I kept messing up the file. I am sure something would have worked, but had not figured out which combo was best.
Title: Re: Trail Basics
Post by: jbensman on October 03, 2011, 10:38:50 AM
I forget how I figured out this work around for no ability to delete labels.  I used to use notepad++ to go through and delete them by hand-it was a royal pain!!!  But there are some things I use notepad for.  For example, the NPS trails and POIs usually have some extra stuff in thier label fields.  I use a search and replace function to get rid of the unwanted text.
Title: Re: Trail Basics
Post by: Seldom on October 03, 2011, 11:37:27 AM
Lets just say GPSmapedit has an "interactive" manual.  Menu or select, right click, take notes.