Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Free software for GPS data conversion and transfer
C TypeScript C++ Pascal Shell Objective-C Other

This branch is 5 commits ahead, 819 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
cet
contrib
doc
intdoc
jeeps
mac
macgpsbabel
mingw
msvc
reference
shapelib
style
tools
win32
xmldoc
zlib
.cvsignore
AUTHORS
COPYING
Makefile.in
README.contrib
README.igc
README.magnav
README.mapconverter
README.psp
README.xmapwpt
alan.c
an1.c
an1sym.h
arcdist.c
avltree.c
avltree.h
axim_gpb.c
bcr.c
brauniger_iq.c
cet.c
cet.h
cet_util.c
cet_util.h
cetus.c
chkdoc
coastexp.c
compegps.c
config.guess
config.h.in
config.sub
configure
configure.in
copilot.c
coto.c
cst.c
csv_util.c
csv_util.h
defs.h
delgpl.c
destinator.c
dg-100.c
discard.c
dmtlog.c
duplicate.c
easygps.c
exif.c
fatal.c
filter_skeleton.c
filter_vecs.c
filterdefs.h
format_skeleton.c
formspec.c
g7towin.c
garmin.c
garmin_fs.c
garmin_fs.h
garmin_gpi.c
garmin_gpi.h
garmin_tables.c
garmin_tables.h
garmin_txt.c
gbfile.c
gbfile.h
gbser.c
gbser.h
gbser_posix.c
gbser_private.h
gbser_win.c
gbsleep.c
gbtypes.h
gbversion.h
gbversion.h.in
gcdb.c
gdb.c
geo.c
geocaching.loc
geoniche.c
ggv_log.c
globals.c
glogbook.c
google.c
gpilots.c
gpsbabel-sample.ini
gpsman
gpsman2
gpspilot.c
gpssim.c
gpsutil.c
gpx.c
gpxval
grtcirc.c
grtcirc.h
gtm.c
gtrnctr.c
guibabel
hiketech.c
holux.c
holux.h
hsa_ndv.c
html.c
igc.c
ignrando.c
ik3d.c
inifile.c
inifile.h
install-sh
internal_styles.c
interpolate.c
kml.c
lmx.c
lowranceusr.c
mag_pdb.c
magellan.h
maggeo.c
magnav.c
magproto.c
main.c
make-an1sym.pl
mapopolis.c
mapsend.c
mapsend.h
mapsource.c
mkicondoc.c
mkshort.c
mkstyle.sh
msroute.c
mtk_logger.c
navicache.c
navilink.c
netstumbler.c
nmea.c
nmn4.c
nukedata.c
osm.c
overlay.c
ozi.c
palmdoc.c
parse.c
pathaway.c
pcx.c
pdbfile.c
pdbfile.h
polygon.c
position.c
psitrex.c
psp.c
queue.c
queue.h
quovadis.c
quovadis.h
radius.c
random.c
raymarine.c
reverse_route.c
rgbcolors.c
route.c
saroute.c
shape.c
smplrout.c
sort.c
stackfilter.c
stmsdf.c
stmwpp.c
strptime.c
strptime.h
tef_xml.c
test-all
testc
testo
testw
text.c
tiger.c
tmpro.c
tomtom.c
torture_test
tpg.c
tpo.README.patch
tpo.c
tpo.testo.patch
trackfilter.c
transform.c
unicsv.c
units.c
util.c
util_crc.c
uuid.c
uuid.h
vcf.c
vecs.c
vidaone.c
vitosmt.c
vitovtt.c
vmem.c
vtesto
waypt.c
wbt-200.c
wfff_xml.c
xcsv.c
xcsv_tokens.gperf
xcsv_tokens.in
xhtmlent.c
xmlgeneric.c
xmlgeneric.h
xmltag.c
xol.c
yahoo.c

README.contrib

If you're interested in contributing to this program, here are some
guidelines.  Mail patches to gpsbabel-code@lists.sourceforge.net for
consideration and integration.

Rules to Live By
----------------

Standards are good.   ISO C and POSIX are greatly preferred.

Reuse is good, if doing so is not onerous.  For example, using the expat
libraries vastly simplifies the XML parsers while increasing their
robustness plus those libraries are ubiquitous.  So I consider it OK to
require expat.

You may find format_skeleton.c and filter_skeleton.c in the source tree
to be helpful examples. Just add meat!

Compilers complain for a reason.   Code shouldn't emit warnings.

The entire world doesn't run <your OS here>.  I've tested this code on
at least five different OSes.  If you find yourself wanting to insert
compiler or OS specific magic, please resist.

Coding consistency is encouraged. The reality is we have a lot of code
that was written by different authors. Some code from other projects is
included. We don't have immutable rules about code style (indention,
curly location, whitespace rules, etc.) but we do ask that you try to
match what is around any code you modify.  "When in Rome..."  

If writing new code, we'd prefer a style like:

	int
	mumble(int whatever)
	{
	<tab>if (whatevever) {
	<tab><tab>return blah;
	<tab>}
	}

...but if you're submitting a new source file that you intend to
maintain and are convinced that two space indents will make the world a
better place, knock yourself out.  But if you need to add a line of code
to the above before "return blah" and do it with spaces instead of hard
tabs, that would be bad.

Submitting Patches
------------------

If you are creating a new target you should submit patches (use 
"cvs diff -uN" to create patches) to the following files:
* Yourcode.c and/or Yourcode.h - this is the code required to do your
  conversions and any support files that your code requires.
* vecs.c - an updated vecs.c file implementing your conversion code into
  GPSBabel.
* Makefile - an updated Makefile telling the compiler how to build and link
  your conversion into GPSBabel
* testo - an updated script that tests your conversion (this should produce
  no output if all is good, see the current testo script for examples)
* YourOutput - a sample file of code produced by your function (used in testo
  and lives in a directory called "reference").
* Documentation - see below.

Please ensure that you are building and testing against the latest code
from the top of the CVS tree and that any code you modify is the latest
version from the CVS - Note: code changes sometimes occur frequently!

Documentation
-------------

HTML and text documentation are generated automatically from DocBook 
source located in the "xmldoc" directory.  That directory contains 
two subdirectories of interest: "formats" and "filters".  If your
contribution adds or affects a format, you'll want to be in the "formats"
directory.  Otherwise, you'll want to be in the "filters" directory.

You should contribute a file called "yourname.xml", where "yourname" is the
name you would give on the command-line to invoke your new format or filter.  
For example, the arc filter is documented in "filters/arc.xml".

This file contains a general description of your format or filter, any 
limitations in your support for it, and anything else the end user should 
know.  For file formats, links to manufacturers' websites are encouraged.  
The contents of this file are not valid or even well-formed XML on their own; 
they are included into a larger framework.  If you know DocBook, you should 
ensure that the contents of this file will validate if included in a <section>.
If you do not know DocBook, see the other files in this directory for examples 
or see http://docbook.org/tdg/en/html/docbook.html for the gory details.  Tags 
of interest will almost certainly include <para> for paragraphs, 
<ulink url="..."> for web links, and <screen format="linespecific"> for 
example command lines.

For each option supported by your format or filter, you should also contribute
a file in the "options" subdirectory called "yourname-youroption.xml", again
using the names you would use on the command line to invoke your format or 
filter with that particular option.  For example, the "distance" option to the
"arc" filter is documented in "filters/options/arc-distance.xml".  These 
files are similar to the general description above, and should meet the same
validation requirements.

As of this writing, there are two formats that violate this rule: Magellan 
serial and Microsoft Streets & Trips.  Because those formats have the same
names as other formats, their descriptions are located in "magellan1.xml" and
"msroute1.xml" respectively.  These are special cases, and you should do your
best to ensure that they remain the only special cases.

Note that the automated framework already includes the name and description of
your format and its options as described in vecs.c and yourcode.c, so there is
no need to repeat that information in your documentation.


Enjoy!

Robert Lipe,
robertlipe@usa.net
Something went wrong with that request. Please try again.