[Liblas-commits] hg: 2 new changesets

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Aug 26 16:07:16 EDT 2010


changeset e640387819e8 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=e640387819e8
summary: boost:: qualify integer types

changeset 51c33c0ab0b0 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=51c33c0ab0b0
summary: #ifndef code to silence unreachable warning

diffstat:

 apps/las2ogr.cpp            |  4 ++--
 src/lasspatialreference.cpp |  2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 30d7b8e1bb8f -r 51c33c0ab0b0 apps/las2ogr.cpp
--- a/apps/las2ogr.cpp	Thu Aug 26 13:39:36 2010 -0600
+++ b/apps/las2ogr.cpp	Thu Aug 26 14:07:00 2010 -0600
@@ -330,8 +330,8 @@
         //
         // Translation of points cloud to features set
         //
-        uint32_t i = 0;
-        uint32_t const size = reader.GetHeader().GetPointRecordsCount();
+        boost::uint32_t i = 0;
+        boost::uint32_t const size = reader.GetHeader().GetPointRecordsCount();
 
         std::cout << "Translating " << size << " points:\n";
 
diff -r 30d7b8e1bb8f -r 51c33c0ab0b0 src/lasspatialreference.cpp
--- a/src/lasspatialreference.cpp	Thu Aug 26 13:39:36 2010 -0600
+++ b/src/lasspatialreference.cpp	Thu Aug 26 14:07:00 2010 -0600
@@ -578,8 +578,10 @@
     }
 #endif
 
+#ifndef HAVE_GDAL
     // By default or if we have neither GDAL nor proj.4, we can't do squat
     return std::string();
+#endif
 }
 
 void SpatialReference::SetProj4(std::string const& v)


More information about the Liblas-commits mailing list