Coordinate system transformer
[ptas] / tests / util / stlhelpers.h
diff --git a/tests/util/stlhelpers.h b/tests/util/stlhelpers.h
new file mode 100644 (file)
index 0000000..d51798b
--- /dev/null
@@ -0,0 +1,20 @@
+#ifndef STLHELPERS_H
+#define STLHELPERS_H
+
+#include <ostream>
+#include "kkj.h"
+#include <QGeoCoordinate>
+
+std::ostream& operator<<(std::ostream& stream, const KKJ &val)
+{
+    stream << val.northing() << ", " << val.easting();
+    return stream;
+}
+
+std::ostream& operator<<(std::ostream& stream, const QTM_NAMESPACE::QGeoCoordinate &val)
+{
+    stream << val.latitude() << ", " << val.longitude();
+    return stream;
+}
+
+#endif // STLHELPERS_H