cGPSmapper Manual
Map Project
http://cgpsmapper.com/
8 of 100
4
Map Project
4.1
Map Creation
You write the source file in the
PFM
format (the
.mp
file) using any text editor. All map-
related information is provided in relevant statements. Then the map is compiled with the
cGPSmapper
compiler and the resulting .img file is uploaded using
sendmap
or
MapSource.
The
PFM
format is described section 4.2 (PFM syntax Description), on page 8.
When you have finished your map (or at any time during the map creation process), you
may preview it on the computer screen. Some software packages allow you to preview
PFM
format files directly. Alternatively you can compile it and preview the resultant .img
file 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 starts with the ";" character. Comment lines and blank lines may appear at
anywhere in the file and are ignored
1
by the compiler.
Statements are grouped into sections. Sections are identified with a section name, enclosed
between "[]" and finish with an
[END]
identifier.
[END-section_identifier]
can also be used to finish a section. E.g.
[IMG ID]
...
[END-IMG ID]
, instead of
[IMG ID]
...
[END]
.
The following types of sections exist:
Section Type
Identifier(s)
Header
[IMG ID]
Declarations
[COUNTRIES]
[REGIONS]
[CITIES]
[CHART INFO]
Advanced
Declarations
[DICTIONARY]
[BACKGROUND]
[HIGHWAYS]
[ZIPCODES]
[DEFINITIONS]
1
However, GPSMapEdit uses special syntax of comments to specify attachments and such
comments are interpreted by GPSMapEdit.