[cig-commits] [commit] master: Add KML output (8e77a92)
cig_noreply at geodynamics.org
cig_noreply at geodynamics.org
Mon Jan 5 10:55:31 PST 2015
Repository : https://github.com/geodynamics/vq
On branch : master
Link : https://github.com/geodynamics/vq/compare/a77e0124f38a909b20a374ec686149d65dbca5b1...f26b7fa26e56a9309aa9658f7441dfd63922dee6
>---------------------------------------------------------------
commit 8e77a920d0a548ec9a12b9f8a6f4891eded1d201
Author: Eric Heien <emheien at ucdavis.edu>
Date: Fri Jan 2 11:29:27 2015 -0800
Add KML output
>---------------------------------------------------------------
8e77a920d0a548ec9a12b9f8a6f4891eded1d201
quakelib/src/QuakeLibIO.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/quakelib/src/QuakeLibIO.cpp b/quakelib/src/QuakeLibIO.cpp
index a1c5787..fb3d1a5 100644
--- a/quakelib/src/QuakeLibIO.cpp
+++ b/quakelib/src/QuakeLibIO.cpp
@@ -1844,8 +1844,10 @@ int quakelib::ModelWorld::write_file_kml(const std::string &file_name) {
// Output the KML format polygon for this section
out_file << "\t\t<Placemark>\n";
out_file << "\t\t<description>\n";
+ out_file << "Fault name: " << fit->second.name() << "\n";
out_file << "Slip rate: " << c.m_per_sec2cm_per_yr(eit->second.slip_rate()) << " cm/year\n";
out_file << "Rake: " << c.rad2deg(eit->second.rake()) << " degrees\n";
+ out_file << "Aseismic: " << eit->second.aseismic() << "\n";
out_file << "\t\t</description>\n";
out_file << "\t\t\t<styleUrl>#baseStyle</styleUrl>\n";
out_file << "\t\t\t<Polygon>\n";
More information about the CIG-COMMITS
mailing list