GeoDesk for C++
Fast and storage-efficient spatial database engine for OpenStreetMap features
Loading...
Searching...
No Matches
geodesk::Polygonizer Class Reference

#include <Polygonizer.h>

Public Member Functions

 Polygonizer ()
 
const Ring * outerRings () const
 
const Ring * innerRings () const
 
void createRings (FeatureStore *store, RelationPtr relation)
 Creates only the raw outer and inner rings, without assigning the inner rings to outer, and without merging inner rings whose edges touch.
 
void assignAndMergeHoles ()
 Assigns inner rings to outer, and merges any inner rings whose edges touch.
 

Friends

class RingCoordinateIterator
 

Constructor & Destructor Documentation

◆ Polygonizer()

geodesk::Polygonizer::Polygonizer ( )

Member Function Documentation

◆ assignAndMergeHoles()

void geodesk::Polygonizer::assignAndMergeHoles ( )

Assigns inner rings to outer, and merges any inner rings whose edges touch.

The createRings() method must have been called.

◆ createRings()

void geodesk::Polygonizer::createRings ( FeatureStore * store,
RelationPtr relation )

Creates only the raw outer and inner rings, without assigning the inner rings to outer, and without merging inner rings whose edges touch.

(This is sufficient for area calculation)

◆ innerRings()

const Ring * geodesk::Polygonizer::innerRings ( ) const
inline

◆ outerRings()

const Ring * geodesk::Polygonizer::outerRings ( ) const
inline

Friends And Related Symbol Documentation

◆ RingCoordinateIterator

friend class RingCoordinateIterator
friend

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