[Liblas-commits] hg-main-tree: use the new Support::temppath feature

liblas-commits at liblas.org liblas-commits at liblas.org
Thu Aug 11 19:52:54 EDT 2011


details:   http://hg.libpc.orghg-main-tree/rev/f6000aa849f7
changeset: 1056:f6000aa849f7
user:      Michael P. Gerlek <mpg at flaxen.com>
date:      Thu Aug 11 16:52:42 2011 -0700
description:
use the new Support::temppath feature

diffstat:

 test/unit/SpatialReferenceTest.cpp |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 4f3f0edf1584 -r f6000aa849f7 test/unit/SpatialReferenceTest.cpp
--- a/test/unit/SpatialReferenceTest.cpp	Thu Aug 11 16:47:55 2011 -0700
+++ b/test/unit/SpatialReferenceTest.cpp	Thu Aug 11 16:52:42 2011 -0700
@@ -237,7 +237,7 @@
 // WKT with the geoidgrids (from the WKT VLR).
 BOOST_AUTO_TEST_CASE(test_vertical_datums)
 {
-    std::string tmpfile("tmp_srs.las");
+    std::string tmpfile(Support::temppath("tmp_srs.las"));
     pdal::FileUtils::deleteFile(tmpfile);
 
     const std::string wkt = "COMPD_CS[\"WGS 84 + VERT_CS\",GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]],VERT_CS[\"NAVD88 height\",VERT_DATUM[\"North American Vertical Datum 1988\",2005,AUTHORITY[\"EPSG\",\"5103\"],EXTENSION[\"PROJ4_GRIDS\",\"g2003conus.gtx,g2003alaska.gtx,g2003h01.gtx,g2003p01.gtx\"]],UNIT[\"metre\",1,AUTHORITY[\"EPSG\",\"9001\"]],AXIS[\"Up\",UP],AUTHORITY[\"EPSG\",\"5703\"]]]";
@@ -290,7 +290,7 @@
 // file still works ok.
 BOOST_AUTO_TEST_CASE(test_writing_vlr)
 {
-    std::string tmpfile("tmp_srs_9.las");
+    std::string tmpfile(Support::temppath("tmp_srs_9.las"));
     pdal::SpatialReference ref;
 
     const std::string reference_wkt = "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]]";


More information about the Liblas-commits mailing list