22 #include <geos/export.h> 24 #include <geos/algorithm/PointLocator.h> 25 #include <geos/operation/distance/GeometryLocation.h> 26 #include <geos/geom/CoordinateSequence.h> 34 #pragma warning(disable: 4251) // warning C4251: needs to have dll-interface to be used by clients of class 118 static std::unique_ptr<geom::CoordinateSequence> nearestPoints(
146 double terminateDistance);
165 std::unique_ptr<geom::CoordinateSequence> nearestPoints();
170 std::array<geom::Geometry const*, 2> geom;
171 double terminateDistance;
175 std::array<std::unique_ptr<GeometryLocation>, 2> minDistanceLocation;
177 bool computed =
false;
179 void updateMinDistance(std::array<std::unique_ptr<GeometryLocation>, 2> & locGeom,
bool flip);
181 void computeMinDistance();
183 void computeContainmentDistance();
185 void computeInside(std::vector<std::unique_ptr<GeometryLocation>> & locs,
186 const std::vector<const geom::Polygon*>& polys,
187 std::array<std::unique_ptr<GeometryLocation>, 2> & locPtPoly);
194 void computeFacetDistance();
196 void computeMinDistanceLines(
197 const std::vector<const geom::LineString*>& lines0,
198 const std::vector<const geom::LineString*>& lines1,
199 std::array<std::unique_ptr<GeometryLocation>, 2> & locGeom);
201 void computeMinDistancePoints(
202 const std::vector<const geom::Point*>& points0,
203 const std::vector<const geom::Point*>& points1,
204 std::array<std::unique_ptr<GeometryLocation>, 2> & locGeom);
206 void computeMinDistanceLinesPoints(
207 const std::vector<const geom::LineString*>& lines0,
208 const std::vector<const geom::Point*>& points1,
209 std::array<std::unique_ptr<GeometryLocation>, 2> & locGeom);
213 std::array<std::unique_ptr<GeometryLocation>, 2> & locGeom);
217 std::array<std::unique_ptr<GeometryLocation>, 2> & locGeom);
Find two points on two geom::Geometrys which lie within a given distance, or else are the nearest poi...
Definition: DistanceOp.h:73
Computes the topological relationship (Location) of a single point to a Geometry. ...
Definition: PointLocator.h:56
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:186
Definition: LineString.h:65
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25