Commit fa6714e 1 parent badff59 commit fa6714e Copy full SHA for fa6714e
File tree 1 file changed +13
-0
lines changed
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 24
24
#include < geos/geom/GeometryFactory.h>
25
25
#include < geos/geom/prep/PreparedGeometry.h>
26
26
#include < geos/geom/prep/PreparedGeometryFactory.h>
27
+ #include < geos/algorithm/Orientation.h>
27
28
#include < geos/algorithm/construct/LargestEmptyCircle.h>
28
29
#include < geos/algorithm/construct/MaximumInscribedCircle.h>
29
30
#include < geos/algorithm/BoundaryNodeRule.h>
@@ -802,6 +803,18 @@ std::vector<GeometryOpCreator> opRegistry {
802
803
return new Result ( prepGeomCache.get (geom.get ())->intersects ( geomB.get () ) );
803
804
});
804
805
}},
806
+ { " orientationIndex" , [](std::string name) { return GeometryOp::create (name,
807
+ catRel, " orientation index for a line segment and a point" ,
808
+ Result::typeInt,
809
+ [](const std::unique_ptr<Geometry>& geom, const std::unique_ptr<Geometry>& geomB) {
810
+ std::unique_ptr<CoordinateSequence> seqA = geom->getCoordinates ();
811
+ Coordinate p0 = seqA->getAt (0 );
812
+ Coordinate p1 = seqA->getAt (1 );
813
+ std::unique_ptr<CoordinateSequence> seqB = geomB->getCoordinates ();
814
+ Coordinate q = seqB->getAt (0 );
815
+ return new Result ( algorithm::Orientation::index (p0, p1, q) );
816
+ });
817
+ }},
805
818
806
819
// ============= category: Overlay ==================
807
820
You can’t perform that action at this time.
0 commit comments