23 #include <geos/export.h> 24 #include <geos/geom/Geometry.h> 25 #include <geos/geom/CoordinateSequence.h> 26 #include <geos/geom/FixedSizeCoordinateSequence.h> 27 #include <geos/geom/Envelope.h> 28 #include <geos/geom/Dimension.h> 36 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 43 class CoordinateArraySequence;
44 class CoordinateFilter;
45 class CoordinateSequenceFilter;
46 class GeometryComponentFilter;
72 ~
Point()
override =
default;
80 std::unique_ptr<Point>
clone()
const 82 return std::unique_ptr<Point>(cloneImpl());
85 std::unique_ptr<CoordinateSequence> getCoordinates(
void)
const override;
89 std::size_t getNumPoints()
const override;
90 bool isEmpty()
const override;
91 bool isSimple()
const override;
97 uint8_t getCoordinateDimension()
const override;
100 int getBoundaryDimension()
const override;
110 std::unique_ptr<Geometry> getBoundary()
const override;
115 const Coordinate* getCoordinate()
const override;
116 std::string getGeometryType()
const override;
127 bool equalsExact(
const Geometry* other,
double tolerance = 0)
const override;
135 std::unique_ptr<Point> reverse()
const 137 return std::unique_ptr<Point>(reverseImpl());
154 Point(CoordinateSequence* newCoords,
const GeometryFactory* newFactory);
156 Point(
const Coordinate& c,
const GeometryFactory* newFactory);
158 Point(
const Point& p);
164 Envelope::Ptr computeEnvelopeInternal()
const override;
166 int compareToSameClass(
const Geometry* p)
const override;
169 getSortIndex()
const override 171 return SORTINDEX_POINT;
179 FixedSizeCoordinateSequence<1> coordinates;
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:45
Point * reverseImpl() const override
Make a geometry with coordinates in reverse order.
Definition: Point.h:162
std::unique_ptr< Point > clone() const
Definition: Point.h:80
std::vector< const Point * > ConstVect
A vector of const Point pointers.
Definition: Point.h:70
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:58
Interface for classes which provide operations that can be applied to the coordinates in a Coordinate...
Definition: CoordinateSequenceFilter.h:55
GeometryTypeId
Geometry types.
Definition: Geometry.h:73
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geome...
Definition: CoordinateFilter.h:41
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:66
void normalize(void) override
Definition: Point.h:130
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25
Point * cloneImpl() const override
Make a deep-copy of this Geometry.
Definition: Point.h:160
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:44
DimensionType
Definition: Dimension.h:29
Definition: GeometryComponentFilter.h:41