rename geometry_impl.hpp to geometry.hpp
This commit is contained in:
parent
323fdd5212
commit
7e03d41606
43 changed files with 49 additions and 50 deletions
|
@ -39,7 +39,7 @@
|
|||
#pragma GCC diagnostic pop
|
||||
|
||||
// mapnik
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_type.hpp>
|
||||
#include <mapnik/geometry_envelope.hpp>
|
||||
#include <mapnik/geometry_is_valid.hpp>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <mapnik/value_types.hpp>
|
||||
#include <mapnik/value.hpp>
|
||||
#include <mapnik/box2d.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_envelope.hpp>
|
||||
//
|
||||
#include <mapnik/feature_kv_iterator.hpp>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef MAPNIK_GEOMETRY_CENTROID_HPP
|
||||
#define MAPNIK_GEOMETRY_CENTROID_HPP
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_adapters.hpp>
|
||||
#include <boost/geometry/algorithms/centroid.hpp>
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef MAPNIK_GEOMETRY_CORRECT_HPP
|
||||
#define MAPNIK_GEOMETRY_CORRECT_HPP
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_adapters.hpp>
|
||||
#include <boost/geometry/algorithms/correct.hpp>
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef MAPNIK_GEOMETRY_EMPTY_HPP
|
||||
#define MAPNIK_GEOMETRY_EMPTY_HPP
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
|
||||
namespace mapnik { namespace new_geometry {
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef MAPNIK_GEOMETRY_ENVELOPE_HPP
|
||||
#define MAPNIK_GEOMETRY_ENVELOPE_HPP
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/box2d.hpp>
|
||||
|
||||
namespace mapnik { namespace new_geometry {
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef MAPNIK_GEOMETRY_IS_SIMPLE_HPP
|
||||
#define MAPNIK_GEOMETRY_IS_SIMPLE_HPP
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_adapters.hpp>
|
||||
#include <boost/geometry/algorithms/is_simple.hpp>
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef MAPNIK_GEOMETRY_IS_VALID_HPP
|
||||
#define MAPNIK_GEOMETRY_IS_VALID_HPP
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_adapters.hpp>
|
||||
#include <boost/geometry/algorithms/is_valid.hpp>
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#define MAPNIK_GEOMETRY_TYPE_HPP
|
||||
|
||||
// mapnik
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_types.hpp>
|
||||
|
||||
namespace mapnik { namespace new_geometry { namespace detail {
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
// mapnik
|
||||
#include <mapnik/feature.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geom_util.hpp>
|
||||
|
||||
namespace mapnik {
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <mapnik/json/generic_json.hpp>
|
||||
#include <mapnik/json/error_handler.hpp>
|
||||
#include <mapnik/box2d.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
// boost
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-parameter"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
// mapnik
|
||||
#include <mapnik/global.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_type.hpp>
|
||||
#include <mapnik/geometry_fusion_adapted.hpp>
|
||||
// boost
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#define MAPNIK_GEOMETRY_GRAMMAR_HPP
|
||||
|
||||
// mapnik
|
||||
#include <mapnik/geometry_impl.hpp> // for geometry_type
|
||||
#include <mapnik/geometry.hpp> // for geometry_type
|
||||
#include <mapnik/make_unique.hpp>
|
||||
#include <mapnik/json/generic_json.hpp>
|
||||
#include <mapnik/json/positions_grammar.hpp>
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef MAPNIK_JSON_GEOMETRY_UTIL_HPP
|
||||
#define MAPNIK_JSON_GEOMETRY_UTIL_HPP
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_adapters.hpp>
|
||||
// boost.geometry
|
||||
#include <boost/geometry/algorithms/correct.hpp>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <mapnik/util/variant.hpp>
|
||||
#include <mapnik/json/generic_json.hpp>
|
||||
#include <mapnik/json/error_handler.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_fusion_adapted.hpp>
|
||||
// boost
|
||||
#pragma GCC diagnostic push
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include <mapnik/color.hpp>
|
||||
#include <mapnik/feature.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_type.hpp>
|
||||
#include <mapnik/geometry_centroid.hpp>
|
||||
#include <mapnik/symbolizer.hpp>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
// mapnik
|
||||
#include <mapnik/box2d.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_envelope.hpp>
|
||||
#include <mapnik/featureset.hpp>
|
||||
#include <mapnik/datasource.hpp>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#ifndef MAPNIK_PATTERN_ALIGNMENT_HPP
|
||||
#define MAPNIK_PATTERN_ALIGNMENT_HPP
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
|
||||
namespace mapnik { namespace detail {
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
#include <mapnik/segment.hpp>
|
||||
#include <mapnik/feature.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/path.hpp>
|
||||
|
||||
#include <algorithm>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
// mapnik
|
||||
#include <mapnik/global.hpp>
|
||||
// for container stuff
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/view_transform.hpp> // for container stuff
|
||||
#include <mapnik/transform_path_adapter.hpp>
|
||||
#include <mapnik/util/path_iterator.hpp>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
//mapnik
|
||||
#include <mapnik/text/placement_finder.hpp>
|
||||
#include <mapnik/vertex_converters.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
|
||||
namespace mapnik {
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
// mapnik
|
||||
#include <mapnik/global.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/datasource_geometry_type.hpp>
|
||||
#include <mapnik/util/variant.hpp>
|
||||
// boost
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <mapnik/config.hpp>
|
||||
#include <mapnik/make_unique.hpp>
|
||||
#include <mapnik/wkb.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_type.hpp>
|
||||
|
||||
// stl
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef MAPNIK_UTIL_SPIRIT_TRANSFORM_ATTRIBUTE_HPP
|
||||
#define MAPNIK_UTIL_SPIRIT_TRANSFORM_ATTRIBUTE_HPP
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
|
||||
namespace boost { namespace spirit { namespace traits {
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
#ifndef MAPNIK_VERTEX_PROCESSOR_HPP
|
||||
#define MAPNIK_VERTEX_PROCESSOR_HPP
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
|
||||
namespace mapnik { namespace new_geometry {
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#define MAPNIK_WKB_HPP
|
||||
|
||||
// mapnik
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/util/noncopyable.hpp>
|
||||
|
||||
namespace mapnik
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#define MAPNIK_WKT_FACTORY_HPP
|
||||
|
||||
// mapnik
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
|
||||
#include <mapnik/wkt/wkt_grammar.hpp>
|
||||
#include <mapnik/wkt/wkt_generator_grammar.hpp>
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
// mapnik
|
||||
#include <mapnik/global.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_type.hpp>
|
||||
#include <mapnik/geometry_fusion_adapted.hpp>
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/wkt/wkt_generator_grammar.hpp>
|
||||
#include <mapnik/util/spirit_transform_attribute.hpp>
|
||||
// boost
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#define MAPNIK_WKT_GRAMMAR_HPP
|
||||
|
||||
// mapnik
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_adapters.hpp>
|
||||
#include <mapnik/geometry_fusion_adapted.hpp>
|
||||
#pragma GCC diagnostic push
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#include <mapnik/unicode.hpp>
|
||||
#include <mapnik/feature_layer_desc.hpp>
|
||||
#include <mapnik/feature_factory.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_correct.hpp>
|
||||
#include <mapnik/memory_featureset.hpp>
|
||||
#include <mapnik/wkt/wkt_factory.hpp>
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
// mapnik
|
||||
#include <mapnik/debug.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
|
||||
// ogr
|
||||
#include "ogr_converter.hpp"
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#define OGR_CONVERTER_HPP
|
||||
|
||||
// mapnik
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
|
||||
class OGRGeometry;
|
||||
class OGRGeometryCollection;
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
// mapnik
|
||||
#include <mapnik/make_unique.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/feature.hpp>
|
||||
#include <mapnik/feature_factory.hpp>
|
||||
#include <mapnik/debug.hpp>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include <mapnik/group/group_symbolizer_helper.hpp>
|
||||
#include <mapnik/label_collision_detector.hpp>
|
||||
//#include <mapnik/geom_util.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/vertex_processor.hpp>
|
||||
#include <mapnik/debug.hpp>
|
||||
#include <mapnik/symbolizer.hpp>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
|
||||
#include <mapnik/json/geometry_generator_grammar_impl.hpp>
|
||||
#include <mapnik/json/properties_generator_grammar_impl.hpp>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include <mapnik/feature.hpp>
|
||||
#include <mapnik/marker.hpp>
|
||||
#include <mapnik/marker_cache.hpp>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_type.hpp>
|
||||
#include <mapnik/geometry_centroid.hpp>
|
||||
#include <mapnik/vertex_processor.hpp>
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
*****************************************************************************/
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/wkt/wkt_generator_grammar_impl.hpp>
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include <boost/detail/lightweight_test.hpp>
|
||||
#include <iostream>
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/geometry_adapters.hpp>
|
||||
#include <mapnik/geometry_centroid.hpp>
|
||||
#include <vector>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "catch.hpp"
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/util/fs.hpp>
|
||||
#include <mapnik/util/file_io.hpp>
|
||||
#include <mapnik/json/geometry_parser.hpp>
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
|
||||
#include "catch.hpp"
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/hit_test_filter.hpp>
|
||||
#include <mapnik/geometry_correct.hpp>
|
||||
|
||||
|
@ -11,19 +10,19 @@ SECTION("hit_test_filter") {
|
|||
using namespace mapnik::new_geometry;
|
||||
{
|
||||
geometry geom(point(0,0));
|
||||
REQUIRE( mapnik::hit_test(geom,0,0,0) );
|
||||
REQUIRE( mapnik::hit_test(geom,0,0,0) );
|
||||
}
|
||||
{
|
||||
geometry geom(point(0,0));
|
||||
REQUIRE( mapnik::hit_test(geom,1,0,1) );
|
||||
REQUIRE( mapnik::hit_test(geom,1,0,1) );
|
||||
}
|
||||
{
|
||||
geometry geom(point(0,0));
|
||||
REQUIRE( mapnik::hit_test(geom,0,1,1) );
|
||||
REQUIRE( mapnik::hit_test(geom,0,1,1) );
|
||||
}
|
||||
{
|
||||
geometry geom(point(0,0));
|
||||
REQUIRE( mapnik::hit_test(geom,1,1,1.5) );
|
||||
REQUIRE( mapnik::hit_test(geom,1,1,1.5) );
|
||||
}
|
||||
{
|
||||
line_string line;
|
||||
|
@ -31,17 +30,17 @@ SECTION("hit_test_filter") {
|
|||
line.add_coord(1,1);
|
||||
line.add_coord(2,2);
|
||||
geometry geom(line);
|
||||
REQUIRE( mapnik::hit_test(geom,0,0,1.5) );
|
||||
REQUIRE( mapnik::hit_test(geom,0,0,1.5) );
|
||||
}
|
||||
{
|
||||
line_string line;
|
||||
line_string line;
|
||||
line.add_coord(0,0);
|
||||
line.add_coord(1,1);
|
||||
line.add_coord(2,2);
|
||||
multi_line_string multi_line;
|
||||
multi_line.emplace_back(std::move(line));
|
||||
geometry geom(multi_line);
|
||||
REQUIRE( mapnik::hit_test(geom,0,0,1.5) );
|
||||
REQUIRE( mapnik::hit_test(geom,0,0,1.5) );
|
||||
}
|
||||
{
|
||||
polygon poly;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include <mapnik/geometry_impl.hpp>
|
||||
#include <mapnik/geometry.hpp>
|
||||
#include <mapnik/feature.hpp>
|
||||
#include <mapnik/params.hpp>
|
||||
#include <mapnik/datasource.hpp>
|
||||
|
|
Loading…
Add table
Reference in a new issue