|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67630 - in trunk/boost/geometry: algorithms/detail/overlay extensions/gis/io/shapelib extensions/nsphere/geometries
From: barend.gehrels_at_[hidden]
Date: 2011-01-03 13:26:12
Author: barendgehrels
Date: 2011-01-03 13:26:02 EST (Mon, 03 Jan 2011)
New Revision: 67630
URL: http://svn.boost.org/trac/boost/changeset/67630
Log:
Inspect tool report update (library)
Removed:
trunk/boost/geometry/extensions/nsphere/geometries/cartesian2d.hpp
trunk/boost/geometry/extensions/nsphere/geometries/cartesian3d.hpp
Text files modified:
trunk/boost/geometry/algorithms/detail/overlay/copy_segments.hpp | 2
trunk/boost/geometry/extensions/gis/io/shapelib/shp_create_object_multi.hpp | 54 ++++++++++++++++++++--------------------
2 files changed, 28 insertions(+), 28 deletions(-)
Modified: trunk/boost/geometry/algorithms/detail/overlay/copy_segments.hpp
==============================================================================
--- trunk/boost/geometry/algorithms/detail/overlay/copy_segments.hpp (original)
+++ trunk/boost/geometry/algorithms/detail/overlay/copy_segments.hpp 2011-01-03 13:26:02 EST (Mon, 03 Jan 2011)
@@ -143,7 +143,7 @@
? to_index - index + 1
: 5 - index + to_index + 1;
- // Create array of points, the fifth one closes it
+ // Create array of points, the fifth one closes it
boost::array<typename point_type<Box>::type, 5> bp;
// Points are retrieved by "assign_box_order" in order ll, lr, ul, ur
Modified: trunk/boost/geometry/extensions/gis/io/shapelib/shp_create_object_multi.hpp
==============================================================================
--- trunk/boost/geometry/extensions/gis/io/shapelib/shp_create_object_multi.hpp (original)
+++ trunk/boost/geometry/extensions/gis/io/shapelib/shp_create_object_multi.hpp 2011-01-03 13:26:02 EST (Mon, 03 Jan 2011)
@@ -34,15 +34,15 @@
{
static inline SHPObject* apply(MultiPoint const& multi)
{
- int const n = boost::size(multi);
+ int const n = boost::size(multi);
boost::scoped_array<double> x(new double[n]);
boost::scoped_array<double> y(new double[n]);
- range_to_part(multi, x.get(), y.get());
-
- int const parts = 0;
- return ::SHPCreateObject(SHPT_MULTIPOINT, -1, 1, &parts, NULL,
- n, x.get(), y.get(), NULL, NULL);
+ range_to_part(multi, x.get(), y.get());
+
+ int const parts = 0;
+ return ::SHPCreateObject(SHPT_MULTIPOINT, -1, 1, &parts, NULL,
+ n, x.get(), y.get(), NULL, NULL);
}
};
@@ -54,26 +54,26 @@
static inline SHPObject* apply(MultiLinestring const& multi)
{
int const n = geometry::num_points(multi);
- int const part_count = boost::size(multi);
+ int const part_count = boost::size(multi);
boost::scoped_array<double> x(new double[n]);
boost::scoped_array<double> y(new double[n]);
- boost::scoped_array<int> parts(new int[part_count]);
+ boost::scoped_array<int> parts(new int[part_count]);
- int ring = 0;
- int offset = 0;
+ int ring = 0;
+ int offset = 0;
for (typename boost::range_iterator<MultiLinestring const>::type
it = boost::begin(multi);
it != boost::end(multi);
++it)
- {
- parts[ring++] = offset;
- offset = range_to_part(*it, x.get(), y.get(), offset);
- }
+ {
+ parts[ring++] = offset;
+ offset = range_to_part(*it, x.get(), y.get(), offset);
+ }
- return ::SHPCreateObject(SHPT_ARC, -1, part_count, parts.get(), NULL,
- n, x.get(), y.get(), NULL, NULL);
+ return ::SHPCreateObject(SHPT_ARC, -1, part_count, parts.get(), NULL,
+ n, x.get(), y.get(), NULL, NULL);
}
};
@@ -84,27 +84,27 @@
static inline SHPObject* apply(MultiPolygon const& multi)
{
int const n = geometry::num_points(multi);
- int const ring_count = boost::size(multi) + geometry::num_interior_rings(multi);
+ int const ring_count = boost::size(multi) + geometry::num_interior_rings(multi);
boost::scoped_array<double> x(new double[n]);
boost::scoped_array<double> y(new double[n]);
- boost::scoped_array<int> parts(new int[ring_count]);
+ boost::scoped_array<int> parts(new int[ring_count]);
- int ring = 0;
- int offset = 0;
+ int ring = 0;
+ int offset = 0;
- typedef typename boost::range_value<MultiPolygon>::type polygon_type;
+ typedef typename boost::range_value<MultiPolygon>::type polygon_type;
for (typename boost::range_iterator<MultiPolygon const>::type
it = boost::begin(multi);
it != boost::end(multi);
++it)
- {
- shape_create_polygon<polygon_type>::process_polygon(*it, x.get(), y.get(), parts.get(),
- offset, ring);
- }
+ {
+ shape_create_polygon<polygon_type>::process_polygon(*it, x.get(), y.get(), parts.get(),
+ offset, ring);
+ }
- return ::SHPCreateObject(SHPT_POLYGON, -1, ring_count, parts.get(), NULL,
- n, x.get(), y.get(), NULL, NULL);
+ return ::SHPCreateObject(SHPT_POLYGON, -1, ring_count, parts.get(), NULL,
+ n, x.get(), y.get(), NULL, NULL);
}
};
Deleted: trunk/boost/geometry/extensions/nsphere/geometries/cartesian2d.hpp
==============================================================================
--- trunk/boost/geometry/extensions/nsphere/geometries/cartesian2d.hpp 2011-01-03 13:26:02 EST (Mon, 03 Jan 2011)
+++ (empty file)
@@ -1 +0,0 @@
-// obsolete
\ No newline at end of file
Deleted: trunk/boost/geometry/extensions/nsphere/geometries/cartesian3d.hpp
==============================================================================
--- trunk/boost/geometry/extensions/nsphere/geometries/cartesian3d.hpp 2011-01-03 13:26:02 EST (Mon, 03 Jan 2011)
+++ (empty file)
@@ -1 +0,0 @@
-// obsolete
\ No newline at end of file
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