GEOS  3.9.1dev
Classes | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
geos::geom::util::Densifier Class Reference

#include <Densifier.h>

Collaboration diagram for geos::geom::util::Densifier:
[legend]

Classes

class  DensifyTransformer
 

Public Member Functions

 Densifier (const Geometry *inputGeom)
 
Geometry::Ptr densify (const Geometry *geom, double distanceTolerance)
 
void setDistanceTolerance (double distanceTolerance)
 
Geometry::Ptr getResultGeometry () const
 

Static Private Member Functions

static std::unique_ptr< Coordinate::VectdensifyPoints (const Coordinate::Vect pts, double distanceTolerance, const PrecisionModel *precModel)
 

Private Attributes

double distanceTolerance
 
const GeometryinputGeom
 

Detailed Description

Densifies a Geometry by inserting extra vertices along the line segments contained in the geometry. All segments in the created densified geometry will be no longer than than the given distance tolerance. Densified polygonal geometries are guaranteed to be topologically correct. The coordinates created during densification respect the input geometry's PrecisionModel.

Note: At some future point this class will offer a variety of densification strategies.

Author
Martin Davis

Definition at line 58 of file Densifier.h.

Constructor & Destructor Documentation

geos::geom::util::Densifier::Densifier ( const Geometry inputGeom)

Member Function Documentation

Geometry::Ptr geos::geom::util::Densifier::densify ( const Geometry geom,
double  distanceTolerance 
)
static std::unique_ptr<Coordinate::Vect> geos::geom::util::Densifier::densifyPoints ( const Coordinate::Vect  pts,
double  distanceTolerance,
const PrecisionModel precModel 
)
staticprivate
Geometry::Ptr geos::geom::util::Densifier::getResultGeometry ( ) const
void geos::geom::util::Densifier::setDistanceTolerance ( double  distanceTolerance)

Member Data Documentation

double geos::geom::util::Densifier::distanceTolerance
private

Definition at line 67 of file Densifier.h.

const Geometry* geos::geom::util::Densifier::inputGeom
private

Definition at line 68 of file Densifier.h.


The documentation for this class was generated from the following file: