21 #ifndef GEOS_GEOS_POINT_H 22 #define GEOS_GEOS_POINT_H 24 #include <geos/export.h> 25 #include <geos/geom/Geometry.h> 26 #include <geos/geom/CoordinateSequence.h> 27 #include <geos/geom/FixedSizeCoordinateSequence.h> 28 #include <geos/geom/Envelope.h> 29 #include <geos/geom/Dimension.h> 31 #include <geos/inline.h> 39 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 46 class CoordinateArraySequence;
47 class CoordinateFilter;
48 class CoordinateSequenceFilter;
49 class GeometryComponentFilter;
75 ~
Point()
override =
default;
83 std::unique_ptr<Point>
clone()
const 85 return std::unique_ptr<Point>(cloneImpl());
88 std::unique_ptr<CoordinateSequence> getCoordinates(
void)
const override;
92 std::size_t getNumPoints()
const override;
93 bool isEmpty()
const override;
94 bool isSimple()
const override;
100 uint8_t getCoordinateDimension()
const override;
103 int getBoundaryDimension()
const override;
113 std::unique_ptr<Geometry> getBoundary()
const override;
118 const Coordinate* getCoordinate()
const override;
119 std::string getGeometryType()
const override;
130 bool equalsExact(
const Geometry* other,
double tolerance = 0)
const override;
138 std::unique_ptr<Point> reverse()
const 140 return std::unique_ptr<Point>(reverseImpl());
157 Point(CoordinateSequence* newCoords,
const GeometryFactory* newFactory);
159 Point(
const Coordinate& c,
const GeometryFactory* newFactory);
161 Point(
const Point& p);
167 Envelope::Ptr computeEnvelopeInternal()
const override;
169 int compareToSameClass(
const Geometry* p)
const override;
172 getSortIndex()
const override 174 return SORTINDEX_POINT;
182 FixedSizeCoordinateSequence<1> coordinates;
199 #endif // ndef GEOS_GEOS_POINT_H Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:47
Point * reverseImpl() const override
Make a geometry with coordinates in reverse order.
Definition: Point.h:165
std::unique_ptr< Point > clone() const
Definition: Point.h:83
std::vector< const Point * > ConstVect
A vector of const Point pointers.
Definition: Point.h:73
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Interface for classes which provide operations that can be applied to the coordinates in a Coordinate...
Definition: CoordinateSequenceFilter.h:57
GeometryTypeId
Geometry types.
Definition: Geometry.h:75
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:188
Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geome...
Definition: CoordinateFilter.h:43
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:68
void normalize(void) override
Definition: Point.h:133
Basic namespace for all GEOS functionalities.
Definition: Angle.h:26
Point * cloneImpl() const override
Make a deep-copy of this Geometry.
Definition: Point.h:163
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
DimensionType
Definition: Dimension.h:31
Definition: GeometryComponentFilter.h:43