Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85723 - trunk/libs/geometry/extensions/example/gis/projections
From: barend.gehrels_at_[hidden]
Date: 2013-09-17 12:00:09


Author: barendgehrels
Date: 2013-09-17 12:00:09 EDT (Tue, 17 Sep 2013)
New Revision: 85723
URL: http://svn.boost.org/trac/boost/changeset/85723

Log:
[geometry][extensions] Bugfixes: fixed map_transformer (w.r.t. changed template parameters) and location of sample data (folder structure has been changed earlier this year)

Text files modified:
   trunk/libs/geometry/extensions/example/gis/projections/p03_projmap_example.cpp | 8 +++-----
   trunk/libs/geometry/extensions/example/gis/projections/p04_example.cpp | 2 +-
   trunk/libs/geometry/extensions/example/gis/projections/p05_example.cpp | 2 +-
   3 files changed, 5 insertions(+), 7 deletions(-)

Modified: trunk/libs/geometry/extensions/example/gis/projections/p03_projmap_example.cpp
==============================================================================
--- trunk/libs/geometry/extensions/example/gis/projections/p03_projmap_example.cpp Tue Sep 17 08:24:36 2013 (r85722)
+++ trunk/libs/geometry/extensions/example/gis/projections/p03_projmap_example.cpp 2013-09-17 12:00:09 EDT (Tue, 17 Sep 2013) (r85723)
@@ -101,10 +101,8 @@
     typedef boost::geometry::model::d2::point_xy<int> svg_point;
     boost::geometry::strategy::transform::map_transformer
         <
- point_xy,
- svg_point,
- true,
- true
+ double, 2, 2,
+ true, true
> svg_transformer(bbox, 800, 600);
 
     // Create the background
@@ -132,7 +130,7 @@
         // Note, file location: trunk/libs/geometry/example/data
         // update path below if necessary
         read_wkt_and_project_and_write_svg(
- "../../../example/data/world.wkt",
+ "../../../../example/data/world.wkt",
             "+proj=moll +ellps=clrk66",
             "world.svg");
     }

Modified: trunk/libs/geometry/extensions/example/gis/projections/p04_example.cpp
==============================================================================
--- trunk/libs/geometry/extensions/example/gis/projections/p04_example.cpp Tue Sep 17 08:24:36 2013 (r85722)
+++ trunk/libs/geometry/extensions/example/gis/projections/p04_example.cpp 2013-09-17 12:00:09 EDT (Tue, 17 Sep 2013) (r85723)
@@ -109,7 +109,7 @@
         // Note, file location: trunk/libs/geometry/example/data
         // update path below if necessary
         read_wkt_and_project_and_map_svg(
- "../../../example/data/world.wkt",
+ "../../../../example/data/world.wkt",
             "world4.svg");
     }
     catch(std::exception const& e)

Modified: trunk/libs/geometry/extensions/example/gis/projections/p05_example.cpp
==============================================================================
--- trunk/libs/geometry/extensions/example/gis/projections/p05_example.cpp Tue Sep 17 08:24:36 2013 (r85722)
+++ trunk/libs/geometry/extensions/example/gis/projections/p05_example.cpp 2013-09-17 12:00:09 EDT (Tue, 17 Sep 2013) (r85723)
@@ -132,7 +132,7 @@
 {
     // Note, file location: trunk/libs/geometry/example/data
     // update path below if necessary
- std::string const data = "../../../example/data/world.wkt";
+ std::string const data = "../../../../example/data/world.wkt";
     try
     {
         p05_example(1, data, "p05_world_1.svg");


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk