[Liblas-commits] hg: allow setting the --a_srs to ''

liblas-commits at liblas.org liblas-commits at liblas.org
Tue Nov 23 09:44:38 EST 2010


changeset df74ea861314 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=df74ea861314
summary: allow setting the --a_srs to ''

diffstat:

 apps/laskernel.cpp |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r f42350719b60 -r df74ea861314 apps/laskernel.cpp
--- a/apps/laskernel.cpp	Mon Nov 22 16:11:21 2010 -0600
+++ b/apps/laskernel.cpp	Tue Nov 23 08:43:05 2010 -0600
@@ -1128,9 +1128,14 @@
         liblas::SpatialReference in_ref;
         
         std::string input_srs = vm["a_srs"].as< string >();
+        
+        if (!input_srs.empty())
+        {
+            in_ref.SetFromUserInput(input_srs);
+        }
+        
         if (verbose)
-            std::cout << "Setting input SRS to " << input_srs << std::endl;
-        in_ref.SetFromUserInput(input_srs);
+            std::cout << "Setting input SRS to '" << input_srs << "'"<< std::endl;
         header.SetSRS(in_ref);
     }
 


More information about the Liblas-commits mailing list