• Welcome to MacSailing.net!
  • Dedicated to sailing!
  • Be Jolly!
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Title: Waypoint Icons
#1
Now that I finally got my large list of South Pacific waypoints imported, I would like to add icons for them. Right now it appears that they must be updated individually, a rather tedious task. Is there any way to select groups and change all at once? Many are either uncharted hazards or anchorages. Or, could the icon type be added to the file prior to importing?

Scot
 
Reply
#2
Two other comments:

1 - a better icon choice for 'hazards' would be useful. Right now I just use the red block.
2 - it would also be useful to be able to sort waypoints by the various columns for viewing.

Scot
 
Reply
#3
Scot,

This is one way to change multiple waypoint symbols:

• First, group the same type of waypoints together in MacENC (e.g. anchorages)
• Export the Waypoint group by dragging it's folder onto the desktop (this will create a Waypoint.gpx document)
• Select the Waypoint.gpx document and choose "Get Info" from the finders File menu.
• Change the "open with" in the Get Info to TextEdit
• Open the Waypoint.gpx document in TextEdit
• Choose "Find" from the Edit menu
• Replace all "<sym>BLANK</sym>" with "<sym>ANCHOR</sym>"
(Note: there should be no space in "/sym" above)
• Save your changes and quit TextEdit
• In MacENC, choose "Transfer>From file !" from the Waypoints menu.
• repeat for your other waypoint types

There are text equivalents for the various symbols (ANCHOR, BELL, BLANK, CANG, CANR, etc.). Look through the .gpx document and choose the text equivalents that you want. The example above assumes that no symbols have been assigned (BLANK).

or! you could write a small XSLT to convert the .gpx instead of using TextEdit.
— —•••  •••— —
 Jon Longworth

 
Reply
#4
Yeah, I thought about this approach but it seems a bit more cumbersome than it needs to be. Also, I've been looking through the gpx documentation online and still haven't found the list of available symbols. Where do you find that?
 
Reply
#5
I don't believe GPX has a fixed provision for waypoint icons, but the GPX file created by MacENC does support the <sym> tag.

The assignment will be the name of the icon image file. For a list of the waypoint icon images available inspect the contents of the MacENC.app Resources folder and find the XYZ.BMP files. Finder will show contents of an .app folder.

So for example if you wanted a wreck it would be WRECK

Here is the complete list..

AIRFILL
ANCHOR
ANCHOR2
BANK
BELL
BLACK
BLANK
BLUE
BOATSLIP
BROWN
BUOYB
BUOYG
BUOYR
BUOYRG
CANB
CANG
CANR
COCKTAILS
CYAN
DIESEL
DIVEFLAG
DRINKWAT
ECARDINAL
ELECTRIC
FISH
FOOD
GAS
GREEN
GROCERY
HIGH
HURRICANE
ICE
INTERNET1
INTERNET2
LAUNDRY
LODGING
LOW
MAGENTA
MAIL
MECHANIC
MEDICAL
MOORING
MUSIC
NCARDINAL
ORANGE
PHONE
PUMPOUT
PURPLE
RED
RESTROOM
SAILBOAT
SCARDINAL
SHOWER
SWIM
TROPSTRM
WCARDINAL
WHITE
WRECK
WRECKDEEP
WRECKSURF
YELLOW
Scott Dillon
Sydney Australia
North Shore 38
CYCA
 
Reply
#6
Very helpful.

Also, I looked in the package folder and tried to see if I could add another bmp symbol, but no luck (didn't think it would work...) However, can I modify an existing bmp to create the symbol I want? I'm thinking of a red circle with a slash through it, like a no-smoking sign. Or is there an existing generic 'hazard' symbol I'm not thinking of?
 
Reply
#7
How about the Hazard buoy symbol?
[image]http://i558.photobucket.com/albums/ss23/jade_808642/Hazard.jpg[/image]
— —•••  •••— —
 Jon Longworth

 
Reply
#8
That looks even better!
 
Reply
#9
Hi

You can change the icon within the package. It's a small fiddle. However - whilst I ran a test, I am unsure if there will be a down-stream issue.

It's a shame that it is a hack.

The Icon (BMP files) are a set size (bytes) and they have set names also.
e.g. RED.BMP is 16x16 BMP at 824 bytes.
You can create a BMP of the same size in pixels and of course byte size.
Then you will need to place that 'new' BMP into the Resources folder within the MacEnc package. Remove the original BMP (say RED.BMP) and rename your new BMP with the original icon name.

Not pretty, as the name association does not represent the waypoint icon.

WDYT?
 
Reply
#10
I have your HAZARD icon in the right format if you have not already sorted this.
 
Reply
  


Possibly Related Threads…
Thread Author Replies Views Last Post
  Icons in Waypoints ginginsman 0 2,616 June 23, 2005 11:44
Last Post: ginginsman

Forum Jump:


Browsing: 3 Guest(s)