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;
66 class GEOS_DLL Point :
public Geometry {
70 friend class GeometryFactory;
73 typedef std::vector<const Point*> ConstVect;
75 ~Point()
override =
default;
83 std::unique_ptr<Geometry>
84 clone()
const override
86 return std::unique_ptr<Geometry>(
new Point(*
this));
89 std::unique_ptr<CoordinateSequence> getCoordinates(
void)
const override;
93 size_t getNumPoints()
const override;
94 bool isEmpty()
const override;
95 bool isSimple()
const override;
101 int getCoordinateDimension()
const override;
104 int getBoundaryDimension()
const override;
114 std::unique_ptr<Geometry> getBoundary()
const override;
119 const Coordinate* getCoordinate()
const override;
120 std::string getGeometryType()
const override;
131 bool equalsExact(
const Geometry* other,
double tolerance = 0)
const override;
134 normalize(
void)
override
139 std::unique_ptr<Geometry>
140 reverse()
const override
165 Envelope::Ptr computeEnvelopeInternal()
const override;
167 int compareToSameClass(
const Geometry* p)
const override;
170 getSortIndex()
const override
172 return SORTINDEX_POINT;
180 FixedSizeCoordinateSequence<1> coordinates;
197 #endif // ndef GEOS_GEOS_POINT_H
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:24
Definition: GeometryComponentFilter.h:42
DimensionType
Definition: Dimension.h:63
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:81
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:187
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:57
Interface for classes which provide operations that can be applied to the coordinates in a Coordinate...
Definition: CoordinateSequenceFilter.h:56
GeometryTypeId
Geometry types.
Definition: Geometry.h:74
Geometry classes support the concept of applying a coordinate filter to every coordinate in the Geome...
Definition: CoordinateFilter.h:64
Supplies a set of utility methods for building Geometry objects from CoordinateSequence or other Geom...
Definition: GeometryFactory.h:67
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:46