This is a DiscontinuedProject. It has been finished and is in a stable state now. Currently, no effort is made for further work here.
gpxcombine
This is a shell/awk script that combines multiple GPX waypoint files into one GPX file for easy import in BeeLineGPS, my favourite geocaching program for PocketPC platforms. It is so short that I put it here for copy and paste rather than adding it as attachment...
#!/bin/sh -
#
# thiemo, 03.02.2008 13:30
#
TMPF=/tmp/gpxcombine.$$
if [ ":$1" = ":" ]; then
echo "$0 <file.gpx> ..."
exit 1
fi
for f in $*; do
cat $f >> $TMPF
done
awk 'BEGIN { blankout = 0; isbounds = 0;} \
/^<\/gpx><\?xml.*$/ { blankout = 1 }; \
/<wpt lat=.*/ { blankout = 0 }; \
/<bounds minlat=.*/ { isbounds = 1}; \
{ \
if ( (blankout == 0) && (isbounds == 0) ) \
{ print }; \
isbounds = 0;
} \
' < $TMPF
rm -f $TMPF
exit 0
THIS DATA IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS DATA, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
All product and brand names mentioned on there pages and in the source code are registered names and/or trademarks of the respective owner and are mentioned for identification purposes only.
For a full copyright notice, please see this link. For imprint and contact information, please see http://www.thiemo.net/.