Skip to content
Permalink
Browse files
This is a c++ first draft of a port of a perl script by Schuyler to i…
…mport Garmin gps dump files as a shapefile. The resulting imported file will be displayed in the map view. At the moment it only generates a point layer of the waypoints but a future version will generate polylines and perhaps polygons too using similar logic to that used by Shuylers perl stuff. Note this plugin is still under construction and I am commiting it mainly so that other developers can assist me when I get stuck. Also note that the plugins Makefile builds a standalone app based on the plugin gui that can be run separately from qgis.

git-svn-id: http://svn.osgeo.org/qgis/trunk@1058 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Mar 22, 2004
1 parent 0b7fc7b commit 713079c76cf50d62c31cd27cf25a40156e25d899
@@ -0,0 +1,103 @@
# Copyright (C) 2003 Gary Sherman <sherman at mrcc.com>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# $Id$

plugindir = ${pkglibdir}

#for plugin so
plugin_LTLIBRARIES = libgpsimporterplugin.la

#for standalon executable
bin_PROGRAMS = gpsimporter

%.moc.cpp: %.h
$(MOC) -o $@ $<

%.h: %.ui
$(UIC) -o $@ $<

%.cpp: %.ui
$(UIC) -o $@ -impl $*.h $<

##
## For plugin lib
##

libgpsimporterplugin_la_SOURCES = plugin.cpp \
» » » waypointtoshape.cpp \
waypointtoshape.h \
» » » utils.c \
shpopen.c \
dbfopen.c \
shapefile.h \
plugingui.cpp \
$(plugin_UI)\
$(plugin_MOC)


plugin_MOC = plugin.moc.cpp \
plugingui.moc.cpp \
pluginguibase.moc.cpp \
../../src/qgsmaplayer.moc.cpp \
../../src/qgsvectorlayer.moc.cpp

plugin_UI = pluginguibase.h \
pluginguibase.cpp

plugin_UIC = pluginguibase.ui

# UI dependencies
pluginguibase.cpp: pluginguibase.h pluginguibase.ui

BUILT_SOURCES = $(plugin_MOC) $(plugin_UI)

AM_CXXFLAGS := $(CXXFLAGS) $(EXTRA_CXXFLAGS) $(QT_CXXFLAGS) $(DEBUG_QGIS) -I../../src

libgpsimporterplugin_la_LIBADD = $(QT_LDADD) ../../src/libqgis.la

libgpsimporterplugin_la_LDFLAGS = -avoid-version -module

##
## For standalone executable
##

gpsimporter_SOURCES = main.cpp \
» » » waypointtoshape.cpp \
waypointtoshape.h \
» » » utils.c \
shpopen.c \
dbfopen.c \
shapefile.h \
plugingui.cpp \
pluginguibase.cpp \
$(standalone_MOC)

gpsimporter_LDADD = $(QT_LDADD)

standalone_MOC = plugingui.moc.cpp \
pluginguibase.moc.cpp

standalone_UI = pluginguibase.h \
pluginguibase.cpp


##
## Anything that must go in the tarball gets added here
##

EXTRA_DIST = $(plugin_UIC) icon.xpm \
pluginguibase.h \
pluginguibase.ui.h \
plugingui.h \
plugin.h \
shapefil.h \
utils.h \
waypointtoshape.h
@@ -0,0 +1,15 @@
##############################################
QGIS PLUGIN TEMPLATE DIRECTORY

T.Sutton 2004
##############################################

Please do not edit the files in this directory
unless you know exactly what you are doing -
these files are used as the basis for creating
new plugins. Altering these files may break
the automated plugin template generation process.

Please visit: http://mrcc.com/qgiswiki/PluginDevelopersGuide

For more information on creating plugins.

0 comments on commit 713079c

Please sign in to comment.