1#ifndef SQL_GIS_RING_FLIP_VISITOR_H_INCLUDED
2#define SQL_GIS_RING_FLIP_VISITOR_H_INCLUDED
27#include <boost/geometry.hpp>
45 std::unique_ptr<boost::geometry::strategy::area::geographic<>>
60 new boost::geometry::strategy::area::geographic<>(
61 boost::geometry::srs::spheroid<double>(semi_major, semi_minor)));
A collection of linestrings.
Definition: geometries.h:523
A collection of points.
Definition: geometries.h:484
A collection of polygons.
Definition: geometries.h:564
A visitor that implements the entire interface and does nothing.
Definition: geometry_visitor.h:122
bool visit_enter(Geometry *) override
Enters a compound geometry.
Definition: geometry_visitor.h:124
A polygon consisting of an outer ring and zero or more interior rings defining holes in the polygon.
Definition: geometries.h:349
A visitor that flips polygon rings so that exterior rings are in a counter-clockwise direction and in...
Definition: ring_flip_visitor.h:42
bool visit_enter(Polygon *py) override
Definition: ring_flip_visitor.cc:34
bool visit_enter(Multilinestring *) override
Definition: ring_flip_visitor.h:89
std::unique_ptr< boost::geometry::strategy::area::geographic<> > m_geographic_strategy
Strategy used for geographic SRSs.
Definition: ring_flip_visitor.h:46
bool visit_enter(Multipoint *) override
Definition: ring_flip_visitor.h:85
bool m_invalid
Whether the geometry is invalid.
Definition: ring_flip_visitor.h:50
bool invalid() const
Check if anything wrong has been detected, either an invalid ellipsoid or a ring with an unknown dire...
Definition: ring_flip_visitor.h:79
Ring_flip_visitor(double semi_major, double semi_minor)
Construct a new ring flip visitor.
Definition: ring_flip_visitor.h:57
This file declares the coordinate system specific subclasses of the geometry class hierarchy.
This file contains Boost.Geometry type traits declarations for Cartesian and geographic geometries.
The geometries implement a hierarchical visitor pattern.