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<Geometry>
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;
139 std::unique_ptr<Geometry>
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;
195 #endif // ndef GEOS_GEOS_POINT_H std::unique_ptr< Geometry > reverse() const override
Computes a new geometry which has all component coordinate sequences in reverse order (opposite orien...
Definition: Point.h:140
Geometry classes support the concept of applying a Geometry filter to the Geometry.
Definition: GeometryFilter.h:47
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
Converts this Geometry to normal form (or canonical form).
Definition: Point.h:134
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
std::unique_ptr< Geometry > clone() const override
Definition: Point.h:84
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58
DimensionType
Definition: Dimension.h:31
Definition: GeometryComponentFilter.h:43