org.deegree.geometry.linearization
Class SurfaceLinearizer

java.lang.Object
  extended by org.deegree.geometry.linearization.SurfaceLinearizer

public class SurfaceLinearizer
extends Object

Provides methods for the linearization of planar surfaces, i.e. PolygonPatches and Polygons.

Version:
$Revision: 31641 $, $Date: 9 May 2008 13:09:29$
Author:
Markus Schneider, last edited by: $Author: elmasri$

Constructor Summary
SurfaceLinearizer(GeometryFactory geomFac)
           
 
Method Summary
 PolygonPatch linearize(PolygonPatch patch, LinearizationCriterion crit)
          Returns a linearized version (i.e. a PolygonPatch that only uses LinearRings as boundaries) of the given PolygonPatch.
<T extends Surface>
T
linearize(T surface, LinearizationCriterion crit)
          Returns a linearized version of the given Surface geometry, i.e. the patches only use linear interpolated curves as boundaries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SurfaceLinearizer

public SurfaceLinearizer(GeometryFactory geomFac)
Parameters:
geomFac -
Method Detail

linearize

public <T extends Surface> T linearize(T surface,
                                       LinearizationCriterion crit)
Returns a linearized version of the given Surface geometry, i.e. the patches only use linear interpolated curves as boundaries.

NOTE: This method respects the semantic difference between Surface and Polygon geometries: if the input is a Polygon, a polygon geometry will be returned.

Type Parameters:
T - subtype of Surface
Parameters:
surface -
crit -
Returns:
linearized version of the input curve

linearize

public PolygonPatch linearize(PolygonPatch patch,
                              LinearizationCriterion crit)
Returns a linearized version (i.e. a PolygonPatch that only uses LinearRings as boundaries) of the given PolygonPatch.

Parameters:
patch -
crit - determines the interpolation quality / number of interpolation points
Returns:
PolygonPatch that only uses LinearRings as boundaries


Copyright © 2011. All Rights Reserved.