1#ifndef SQL_GIS_LONGITUDE_RANGE_NORMALIZER_H_INCLUDED
2#define SQL_GIS_LONGITUDE_RANGE_NORMALIZER_H_INCLUDED
57 pt->
x(lon + 2.0 * M_PI);
58 }
else if (lon > M_PI) {
60 pt->
x(lon - 2.0 * M_PI);
Definition: spatial_reference_system.h:53
virtual double angular_unit() const =0
virtual bool positive_east() const =0
virtual double prime_meridian() const =0
Definition: longitude_range_normalizer.h:40
Longitude_range_normalizer(const dd::Spatial_reference_system *srs)
Construct a new longitude range normalizer.
Definition: longitude_range_normalizer.h:48
const dd::Spatial_reference_system * m_srs
Definition: longitude_range_normalizer.h:42
bool visit(Point *pt) override
Definition: longitude_range_normalizer.h:52
A visitor that implements the entire interface and does nothing.
Definition: geometry_visitor.h:122
bool visit(Geometry *) override
Visits a geometry.
Definition: geometry_visitor.h:159
A 2d point.
Definition: geometries.h:150
double x() const
Gets the first coordinate value.
Definition: geometries.cc:46
The geometries implement a hierarchical visitor pattern.