background image

cGPSmapper Manual 

Creating custom type file 

 

http://cgpsmapper.com/ 

59 of 100 

 

Sample screen from MapSource of CustomDemo.img: 

 

Summary of Contents for eTrex H - Hiking GPS Receiver

Page 1: ...cGPSmapper User Manual First Published Date 2005 04 01 Version 2 1 Published Date 2006 08 13 Total Page Count 100...

Page 2: ...hart Info 15 4 2 3 Advanced Declarations 17 4 2 3 1 Background 17 4 2 3 2 Dictionary 17 4 2 3 3 Highways 18 4 2 3 4 ZIP Codes 18 4 2 3 5 Definitions 18 4 2 4 Body Objects 18 4 2 4 1 Point of Interest...

Page 3: ...POI POLYGON POLYLINE 69 7 3 1 Equivalences 69 7 3 2 Impact of saving objects in one format or the other 69 7 3 3 Preferred method 69 7 4 RELATIONSHIP BETWEEN LEVELS IN THE DETAIL MAPS AND THE PREVIEW...

Page 4: ...cGPSmapper Manual Contents http cgpsmapper com 4 of 100...

Page 5: ...oduces a vector map in file s of a format understandable by your GPS receiver and Garmin MapSource There are different cGPSmapper versions refer to section 9 3 4 on page 92 with diverse features 2 2 3...

Page 6: ...ements 2 3 2 cGPSmapper versions The table below contains the meaning of the different symbols used in this document to represent the cGPSmapper Version to which a certain concept applies Symbol cGPSm...

Page 7: ...s area objects e g lake forest For non dimensional objects POIs and points it is necessary to define the object attributes such as label and type as well as the object coordinate pair latitude longitu...

Page 8: ...e using MapSource Finally the img file may be uploaded to your GPS 4 2 PFM syntax Description A PFM format file contains comment lines and statements Blank lines are also permitted A comment line star...

Page 9: ...ons if any may be in any order and may be repeated as many times as necessary The order of statements in the section body i e between the section keyword statement and the END statement is insignifica...

Page 10: ...84 Custom refer to the Datum_List txt file in the cGPSmapper directory for the full list of supported datums Default W84 Transparent x Y a transparent map will be created N a transparent map will not...

Page 11: ...and cities2 Y Yes N no Default N POIIndex x N objects will be indexed only if POI index info is explicitly provided Y all POI objects will automatically be indexed may be searched by the Find function...

Page 12: ...Size n Maximum allowed region size A higher value increases the allowable region size but may decrease the map performance a lower value may increase the map size Suggested values topo maps 1000 2000...

Page 13: ...lly important when we are interested in using find intersection functionality N no generalization and no intersection detection Unnecessary nodes from the resolution point of view will be removed auto...

Page 14: ...ne map Default N Refer to section 0 on page 30 for details END Section terminator 4 2 2 Declarations The DECLARATION elements must be in the order shown herewith 4 2 2 1 Countries Although this sectio...

Page 15: ...in the corresponding Region statement The first RegionIdx must always be one Subsequent4 must be in ascending order If included there must be at least 1 city per Region In theory the limit is 13 107 E...

Page 16: ...hat MapSource will show the day as 01 the day field is not available in the GPS Correction ddmmyyy y Paper chart correction date Text xxx Very long description information There could be several Text...

Page 17: ...t 1906 20 Hough 21 International 22 South American 1969 23 WGS 60 24 WGS 66 25 WGS 72 26 WGS 84 27 Unknown END Section terminator 4 2 3 Advanced Declarations The ADVANCED DECLARATIONS elements must be...

Page 18: ...ection terminator 4 2 3 5 Definitions This section will be further documented in a future version of this manual DEFINITIONS END Section terminator 4 2 4 Body Objects BODY objects may be specified in...

Page 19: ...s maximum OvernightParking x Applies to RGN10 only Indicates if 24 hr parking is allowed N or 0 No Y or 1 POI at the exit of a highway will have an overnight parking flag Default N Highway xxx Applies...

Page 20: ...cimal values as indicated on section 9 2 Exits on page 76 80 characters maximum END Section terminator 4 2 4 2 Polygon POLYGON Polygon section identifier RGN80 may also be used instead It is used to d...

Page 21: ...e used to describe the total area covered by your map Most maps do not require the use of this object at all The only exception is when you want to create map with an irregular boundary In which case...

Page 22: ...roads EndLevel Refer to section 4 2 4 1 on page 18 for details Data lat1 lon1 lat2 lon2 Refer to section 4 2 4 2 on page 20 for details StreetDesc xxx Street alias or secondary street name 80 characte...

Page 23: ...lorer PLT Polygon Polyline section identifier with data imported from an OziExplorer plt file RgnType object_cat egory 0x40 polyline 0x80 polygon Type object_type Refer to section 4 2 4 1 on page 18 f...

Page 24: ...4 marine points LabelField field_n ame Name of the field in the associated dbf file from which cGPSmapper will get the Label for each object Label2Field field_ name Secondary name for roads Used in ca...

Page 25: ...RGN20 or Type 32 or Type RGN10 or Type 16 RegionName field_n ame Name of the field in the associated dbf file from which cGPSmapper will get the RegionName for each object Should not be present if th...

Page 26: ...urce 1 20 km h 0 8 km h ferry Used for routing RoadClass field_na me This attribute defines the importance of the road for routing It is one of the most important attributes for routing The lowest imp...

Page 27: ...efer to section 0 on page 30 for details Depth field_name Refer to section 0 on page 30 for details DepthUnit field_na me Refer to section 0 on page 30 for details HeightUnit field_n ame Refer to sect...

Page 28: ...field _name Refer to section 0 on page 30 for details Racon field_name Refer to section 0 on page 30 for details DoubleLights field _name Refer to section 0 on page 30 for details DoubleLightsHorizo n...

Page 29: ...global definition all elevations on a map must be in the same units either all in feet or all in metres Elevation can be specified for POI objects like summit Type 0x6616 and depth height points Types...

Page 30: ...a Mazowieckie Polsk a Warszawa Mazowieckie Polska END RGN10 Where NumbersX index of point in the polyline 0 based left side numbering style first number on left side last number on left side right sid...

Page 31: ...rewith are meant to be included in one of the following sections POI POLYLINE POLYGON Refer to section 4 2 on page 8 for details on these sections Marine maps cannot be transparent Marine x Indicates...

Page 32: ...isplayed in the properties windows of the object There could be several Text entries in a single object Applies only to following marine types polygons of types 0x0700 and 0x0704 points of types 0x080...

Page 33: ...of types 0x04XX to 0x06XX points of types 0x0500 coloured text Style Valid values sum of 0x00 to 0x03 basic styles 0x10 to 0x30 extended styles 0x00 0x01 0x02 0x03 0x10 0x11 0x12 0x13 0x20 0x21 0x22...

Page 34: ...lowing marine types as height depth polylines of types 0x0105 to 0x0107 0x03XX polygon of types 0x0105 to 0x0107 0x03XX points of types 0x03XX soundings building spot height points of types 0x04XX obs...

Page 35: ...te red 0x08 black red 0x09 white green 0x0a red yellow 0x0b red green 0x0c orange 0x0d black yellow black 0x0e yellow black 0x0f yellow black yellow 0x10 red white 0x11 green red green 0x12 red green...

Page 36: ...pes 0x01XX Light colour rang e anle colour range anle Definition of light colour nominal range and light sectors Light 2 3 10 0 3 3 205 0 defines colour 2 range 3 nm from angle 10 0 to 205 0 and colou...

Page 37: ...0x0c quick 0x0d group quick 0x0e group quick and long flashing 0x0f interrupted quick 0x10 very quick 0x11 group very quick 0x12 group very quick and long flashing 0x13 interrupted very quick 0x14 ul...

Page 38: ...visible in the properties window of the object Applies only to following marine types points of types 0x01XX HeightAboveDatum Height above datum Value visible in the properties window of the object A...

Page 39: ...8000 dump station 0x010000 handicap accessible Applies only to following marine types points of types 0x0903 4 4 Levels 4 4 1 Introduction Every Garmin GPS with mapping capability gives you the option...

Page 40: ...tated with the current scale such as 800ft or 2km or whatever In a PFM file these zoom levels are identified using an integer value called the Hardware Zoom Level Hardware zoom levels are in the range...

Page 41: ...t of Levelm h lines where m is the map zoom level and h is the corresponding hardware zoom level For example IMG ID Levels 4 Level0 23 Level1 21 Level2 20 Level3 17 The above extract specifies that th...

Page 42: ...nt of Interest RGN10 Type 3328 Label Remenham Data0 51 551744 0 889936 END Note that the coordinate definition line starts Data0 The digit following the word Data specifies the level at which these co...

Page 43: ...ollowing footpath RGN40 Type 22 Label EndLevel 3 Data0 51 562624 1 070283 51 561637 1 070592 51 561272 1 069878 51 560059 1 064277 END This path will be visible and have exactly the same shape at leve...

Page 44: ...m At lower detail levels the user will have to zoom in more than expected before the objects become visible The extent to which the detail setting affects the levels at which objects become visible ha...

Page 45: ...level The format is Level RGNnn bit mask where indicates the level nn the object class 10 20 40 or 80 and bit mask is a string of 0 s and 1 s If you set the first bit in the bit mask to 0 no objects o...

Page 46: ...GN80 and point of interest RGN10 20 objects by defining bit masks using Level RGN80 and Level RGN10 Dictionary for POI RGN10 and 20 objects works slightly differently in that the POI objects are contr...

Page 47: ...nto a compatible Garmin GPSr using SendMap 2 0 v3 3 or later available at http cgpsmapper com en buy htm We believe that any Garmin receiver which works with Garmin s POILoader may have custom type de...

Page 48: ...is not showing up check to make sure that it is listed in your _drawOrder section and that it has a higher priority number than any other overlapping polygons Each statement in the _drawOrder section...

Page 49: ...Type 0x16 2 National park Type 0x17 3 City park Type 0x18 3 Golf course Type 0x19 3 Sports complex Type 0x1a 4 Cemetery Type 0x1e 2 State park Type 0x1f 2 State park Type 0x20 2 State park Type 0x28 1...

Page 50: ...fine your replacement bitmap for the associated POI type using the XPM format For example _point Type 0x01 Dayxpm 16 16 2 1 c None X c 000000 XXXXXXXXXXXXXXXX X X X X X X X X X X X X X X X X X X X X X...

Page 51: ...ers used to represent each pixel We will use the following simple definition to describe the individual parts of the definition _point Type 0x01 Dayxpm 4 4 2 1 c None X c 000000 XXXX X X X X XXXX end...

Page 52: ...0 X X X X XXXX This definition describes a 4x4 rectangle with a black 1 pixel border and a transparent center Refer to section 9 3 5 How do I create XPM definitions on page 93 for a discussion of how...

Page 53: ...pago end This definition specifies a replacement for polyline 0x01 Major highway LineWidth is specified as 5 pixels BorderWidth is specified as 1 pixel xpm 0 0 4 0 Define both day and night colors 4 T...

Page 54: ...eclaration indicates a definition 32 pixels wide 5 pixels tall with 4 colors using 1 character for the pixel representations in the bitmap This declaration uses a transparent background represented by...

Page 55: ...wing three are standard type 0x4F 0x50 and 0x51 The black boxes show 32x32 tiles Notice that the leftmost tile uses two colors while the next three tiles use transparency When defining a polygon bitma...

Page 56: ...e file http cgpsmapper com 56 of 100 _polygon Type 0x4e string1 0x04 Wilderness string1 0x08 Yermo xpm 32 32 4 1 c faf889 Daytime foreground c 77c1c2 Daytime background 3 c 77c1c2 Nighttime foreground...

Page 57: ...that won t be blocked by the menu and on screen zoom buttons It s fairly simple to create such a template for your specific unit and it will save you a lot of time in the long run I recommend it Workf...

Page 58: ...cGPSmapper Manual Creating custom type file http cgpsmapper com 58 of 100 Sample screens from MapEdit of CustomDemo mp...

Page 59: ...cGPSmapper Manual Creating custom type file http cgpsmapper com 59 of 100 Sample screen from MapSource of CustomDemo img...

Page 60: ...Manual Creating custom type file http cgpsmapper com 60 of 100 Sample screens from n vi Standard roads and cities Custom roads and cities Standard Scrub camping mountain range Custom scrub camping mou...

Page 61: ...with the program for upload to the GPS Internally these map sets are configured using data in the Windows registry Each product requires three registry entries One entry points at the preview map one...

Page 62: ...tries are Tdb the name of the tdb file Bmap the name of the preview img file Loc the directory where the detail img files are stored An example registry file REGEDIT4 HKEY_LOCAL_MACHINE SOFTWARE Garmi...

Page 63: ...the map s Once in MapSource the map s to be loaded in the GPS must be chosen first This is done via any of the following methods Under Switch to Product in the View menu Via the corresponding combo l...

Page 64: ...bar Once this is done the map to be selected must be clicked in order to select it The maps to be transferred to the GPS and the bytes they occupy will be shown to the left of the screen 3 Send the ma...

Page 65: ...is displayed in the MapSource software on the maps tab when the map is selected and in the Map Properties window NOTE The name field will not be displayed on the GPS unit if the ID field in the PFM i...

Page 66: ...to include a copyright symbol in your text you can do in your favourite text editor Hold down the ALT key type the numbers 0169 on the numeric keypad and then release the ALT key You must use the num...

Page 67: ...cGPSmapper Manual FAQs http cgpsmapper com 67 of 100 Figure 4 How name variables are shown...

Page 68: ...tation to find out how to access this screen display 2 Activation Deactivation of the GPS base map Loaded maps usually have more detail of the zone than the base map which comes from the factory with...

Page 69: ...n one format or the other There is no impact POI POLYGON POLYLINE are more understandable to the human reader 7 3 3 Preferred method There is no preferred method 7 4 Relationship between levels in the...

Page 70: ...However the same technique may also be used for creating holes in other polygon types For example a hole in a wood would represent a clearing and so on A hole can be defined in any region by includin...

Page 71: ...mpiler sendmap PFM Polish Format is a convenient text based format used for saving map information on a computer and transferring map information between computer programs Polish format map files cann...

Page 72: ...or RGN10 element W007 Wrong coordinates E g incorrectly separated coordinates like 2 2 3 2 2 2 2 3 W008 Element spans more than 10 degrees W009 Invalid WPT section RGNTYPE is not defined W010 ELEVATIO...

Page 73: ...in DEFINITIONS E003 Could not open file with region name definitions E004 Invalid name for Region Field in DEFINITIONS E005 Invalid name for Region Country Idx in DEFINITIONS E006 Could not open file...

Page 74: ...resolution 23 the maximum size 3 metre 65535 This means that if the object is too big to fit into the given layer of the map the bit resolution of this layer needs to be decreased so the layer can acc...

Page 75: ...definition of CITY E029 ID of map is not an integer value E030 Name of the file for preview must be composed always from 8 digits E031 For the preview creation name 00000008 img is not permitted E032...

Page 76: ...on 0x00 Truck Lorry Stop 24 hour Diesel Fuel With Restaurant 0x01 HGV Diesel Fuel With Large Vehicle Clearance 0x02 Fuel 0x03 Food Restaurant 0x04 Lodging Hotel Motel 0x05 Auto service Vehicle Repair...

Page 77: ...t indicates that the element is only valid when either in the IMG ID section there is a definition Marine Y in the element definition section POI POLYLINE POLYGON there is a definition Marine Y 9 3 1...

Page 78: ...Grill N 0x2A0D 10765 42 Dining Bagel Donut N 0x2A0E 10766 42 Dining Cafe Diner N 0x2A0F 10767 42 Dining French N 0x2A10 10768 42 Dining German N 0x2A11 10769 42 Dining British Isles N 0x2B00 11008 43...

Page 79: ...N 0x2E0b 11787 46 Computer Software N 0x2F00 12032 47 Generic Service N 0x2F01 12033 47 Fuel Gas N 0x2F02 12034 47 Car Rental N 0x2F03 12035 47 Car Repair N 0x2F04 12036 47 Airport N 0x2F05 12037 47...

Page 80: ...Information N 0x4D00 0x4D3F 19712 19775 77 Parking N 0x4E00 0x4E3F 19968 20031 78 Restroom N 0x4F00 0x4F3F 20224 20287 79 Shower N 0x5000 0x503F 20480 20543 80 Drinking Water N 0x5100 0x513F 20736 20...

Page 81: ...25618 100 Trail N 0x6413 25619 100 Tunnel N 0x6414 25620 100 Drink water N 0x6415 25621 100 Ghost Town N 0x6416 25622 100 Subdivision N 0x6500 25856 101 Water Feature N 0x6501 25857 101 Arroyo N 0x65...

Page 82: ...2 102 Rock N 0x6615 26133 102 Slope N 0x6616 26134 102 Summit N 0x6617 26135 102 Valley N 0x6618 26136 102 Woods N 0x1C00 7168 28 Unclassified Obstruction N 0x1C01 7169 28 Wreck N 0x1C02 7170 28 Subme...

Page 83: ...Daybeacon green Square N 0x1A05 6661 26 Daybeacon green Square N 0x1905 6405 25 Daybeacon green Square N 0x1805 6149 24 Daybeacon green Square N 0x1705 5893 23 Daybeacon green Square N 0x1605 5637 22...

Page 84: ...or amber N 0x160B 5643 22 unlit Navaid yellow or amber N 0x1B0C 6924 27 unlit Navaid orange N 0x1A0C 6668 26 unlit Navaid orange N 0x190C 6412 25 unlit Navaid orange N 0x180C 6156 24 unlit Navaid oran...

Page 85: ...50 22 lighted Navaid yellow or amber N 0x1B13 6931 27 lighted Navaid orange N 0x1A13 6675 26 lighted Navaid orange N 0x1913 6419 25 lighted Navaid orange N 0x1813 6163 24 lighted Navaid orange N 0x171...

Page 86: ...mark Y 0x0206 518 2 N Beacon Y 0x0207 519 2 N Spar buoy Y 0x0208 520 2 N Isolated danger buoy Y 0x0209 521 2 N Port hand buoy Y 0x020a 522 2 N Starboard hand buoy Y 0x020b 523 2 N Special purpose buoy...

Page 87: ...ottom found Y 0x040c 1036 4 Y Exposed rock Y 0x040d 1037 4 Y Dangerous rock Y 0x040e 1038 4 Y Underwater rock non dangerous rock Y 0x040f 1039 4 Y Shoal Y 0x0500 1280 5 N Label point Y 0x0600 1536 6 N...

Page 88: ...ack Trail N 0x18 24 Stream thin N 0x19 25 Time Zone N 0x1a 26 Ferry N 0x1b 27 Ferry N 0x1c 28 Political Boundary N 0x1d 29 County Boundary N 0x1e 30 International Boundary N 0x1f 31 River N 0x20 32 La...

Page 89: ...ubmerged construction Y 0x040c 1036 Pier jetty Y 0x0500 1280 Restriction Y 0x0501 1281 Anchoring prohibited Y 0x0502 1282 Fishing prohibited Y 0x0503 1283 Prohibited area Y 0x0504 1284 Military practi...

Page 90: ...ode Decimal Description N 0x01 1 City N 0x02 2 City N 0x03 3 City N 0x04 4 Military N 0x05 5 Car Park Parking Lot N 0x06 6 Parking Garage N 0x07 7 Airport N 0x08 8 Shopping Centre N 0x09 9 Marina N 0x...

Page 91: ...ra N 0x53 83 Flats Y 0x0100 256 Land white Y 0x0101 257 Land non urban Y 0x0102 258 Land urban Y 0x0103 259 Chart exclusion area Y 0x0104 260 Chart background Y 0x0105 261 Bridge Y 0x0300 768 Depth ar...

Page 92: ...507 1287 Restricted area invisible Y 0x0508 1288 Minefield invisible Y 0x0600 1536 Miscellaneous area Y 0x0601 1537 Cartographic area Y 0x0602 1538 Traffic separation area Y 0x0603 1539 International...

Page 93: ...a Catalan 0x1c Romanian 0x0b Galican 0x1d Albanian 0x0c Welsh 0x1e Bosnian 0x0d Gaelic 0x1f Lithuanian 0x0e Danish 0x20 Serbian 0x0f Norwegian 0x21 Macedonian 0x10 Portuguese 0x22 Bulgarian 0x11 Slova...

Page 94: ...cGPSmapper does not support these literals Copy the definition into your source file starting with the quotation mark before the first line of the declaration all the way to the closing brace Notepad...

Page 95: ...nd e mail address this information is displayed by the receiver in the map copyright section Maps created with this version should not be sold Standard City and POI indexes are not limited Full POI ad...

Page 96: ...le Datum_List txt Full list of supported datums to be used in the Datum element Refer to section 4 2 1 on page 9 for details Readme first Description of the sample files provided and how to obtain fur...

Page 97: ...marine documentation and updated ESRI documentation 4 2 PFM syntax Description Added CHART INFO section to the end of the Declarations section 4 2 1 Header Marine element added DrawPriority element ad...

Page 98: ...files 95 versions 94 versions notation 6 Cities 14 City 14 18 CityName 18 21 24 Clearings 69 Codepage 10 Color 26 32 Copy1 65 Copy2 65 Copy3 65 CopyRight 10 64 CopyWrite 10 64 Correction 15 Countries...

Page 99: ...23 LBLcoding 9 LeadingAngle 27 37 Level 13 24 Level RGNnn 17 LevelFill 13 LevelLimit 13 levels 68 Levels 13 38 Using 41 Light 26 35 LightType 26 36 LineWidth 52 LocalDesignator 26 37 M Manual Notatio...

Page 100: ...tyle 26 32 SubType 17 19 21 30 SubTypeField 23 T Table of Contents 2 Table of Figures 96 Text 15 31 TextEnd 26 TextFile 15 26 31 TextFileLines 26 TextStart 26 Toll 25 Transparent 10 TreSize 11 TYP fil...

Reviews: