Skip to content

File polygon_subtract.hpp

FileList > geometry > polygon_subtract.hpp

Go to the source code of this file

  • #include <ogrsf_frmts.h>
  • #include <algorithm>
  • #include <cmath>
  • #include <memory>
  • #include <unordered_map>
  • #include <vector>
  • #include "geometry/polygon.hpp"
  • #include "io/gdal_init.hpp"

Namespaces

Type Name
namespace detail

Classes

Type Name
class ExtentSpatialIndex

Public Functions

Type Name
std::vector< PolygonWithHoles > clip_polygon_to_extent (const PolygonWithHoles & poly, const Extent2D & bounds)
std::vector< PolygonWithHoles > finalize_polygon_with_holes (PolygonWithHoles poly, const std::vector< Extent2D > & snap_extents={}, double snap_tolerance=0.01)
std::vector< PolygonWithHoles > intersect_polygon (const PolygonWithHoles & host, const PolygonWithHoles & clip)
std::vector< PolygonWithHoles > subtract_polygon (const PolygonWithHoles & host, const std::vector< PolygonWithHoles > & cutouts)
std::vector< PolygonWithHoles > subtract_polygon_with_union (const PolygonWithHoles & host, const OGRGeometry * cut_union)
std::vector< PolygonWithHoles > union_overlapping_polygons (const std::vector< PolygonWithHoles > & polygons)

Public Functions Documentation

function clip_polygon_to_extent

inline std::vector< PolygonWithHoles > clip_polygon_to_extent (
    const PolygonWithHoles & poly,
    const Extent2D & bounds
) 

function finalize_polygon_with_holes

inline std::vector< PolygonWithHoles > finalize_polygon_with_holes (
    PolygonWithHoles poly,
    const std::vector< Extent2D > & snap_extents={},
    double snap_tolerance=0.01
) 

function intersect_polygon

inline std::vector< PolygonWithHoles > intersect_polygon (
    const PolygonWithHoles & host,
    const PolygonWithHoles & clip
) 

function subtract_polygon

inline std::vector< PolygonWithHoles > subtract_polygon (
    const PolygonWithHoles & host,
    const std::vector< PolygonWithHoles > & cutouts
) 

function subtract_polygon_with_union

inline std::vector< PolygonWithHoles > subtract_polygon_with_union (
    const PolygonWithHoles & host,
    const OGRGeometry * cut_union
) 

function union_overlapping_polygons

inline std::vector< PolygonWithHoles > union_overlapping_polygons (
    const std::vector< PolygonWithHoles > & polygons
) 


The documentation for this class was generated from the following file /home/runner/work/Blaze/Blaze/src/lib/geometry/polygon_subtract.hpp