PHP Class Location\Processor\Polyline\Simplify

Deprecation: This class is no longer supported. Please use the `SimplifyDouglasPeucker` oder `SimplifyBearing` classes.
Author: Marcus Jaschen ([email protected])
Afficher le fichier Open project: mjaschen/phpgeo Class Usage Examples

Protected Properties

Свойство Type Description
$polyline Location\Polyline

Méthodes publiques

Méthode Description
__construct ( Polyline $polyline )
simplify ( float $tolerance ) : Polyline

Méthodes protégées

Méthode Description
deg2radLatitude ( float $latitude ) : float
deg2radLongitude ( float $longitude ) : float
douglasPeucker ( array $line, float $tolerance ) : array
getPerpendicularDistance ( Coordinate $point, Line $line ) : float

Method Details

__construct() public méthode

public __construct ( Polyline $polyline )
$polyline Location\Polyline

deg2radLatitude() protected méthode

protected deg2radLatitude ( float $latitude ) : float
$latitude float
Résultat float

deg2radLongitude() protected méthode

protected deg2radLongitude ( float $longitude ) : float
$longitude float
Résultat float

douglasPeucker() protected méthode

protected douglasPeucker ( array $line, float $tolerance ) : array
$line array
$tolerance float
Résultat array

getPerpendicularDistance() protected méthode

protected getPerpendicularDistance ( Coordinate $point, Line $line ) : float
$point Location\Coordinate
$line Location\Line
Résultat float

simplify() public méthode

public simplify ( float $tolerance ) : Polyline
$tolerance float The maximum allowed deviation
Résultat Location\Polyline

Property Details

$polyline protected_oe property

protected Polyline,Location $polyline
Résultat Location\Polyline