org.deegree.geometry
Class SFSProfiler

java.lang.Object
  extended by org.deegree.geometry.SFSProfiler

public class SFSProfiler
extends Object

Converts a generic deegree Geometry instance (which may be anything from the ISO 19107 model) into a Geometry that matches the capabilities of the Simple Feature Specification (SFS)

General conversion scheme

TODO Solids, Composites

Version:
$Revision: 31649 $, $Date: 2011-08-25 01:03:49 +0200 (Thu, 25 Aug 2011) $
Author:
Andrei Ionita, Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
SFSProfiler(LinearizationCriterion crit)
          Creates a new SFSProfiler that uses the given LinearizationCriterion for linearizing non-linear curve segments / surface boundaries.
 
Method Summary
 LineString simplify(Curve geometry)
          Simplifies the given Curve.
 Geometry simplify(GeometricPrimitive geometry)
          Simplifies the given GeometricPrimitive.
 Geometry simplify(Geometry geometry)
          Simplifies the given Geometry.
 MultiGeometry<?> simplify(MultiGeometry<?> geometry)
          Simplifies the given MultiGeometry.
 Point simplify(Point geometry)
          Simplifies the given Point.
 Solid simplify(Solid geometry)
          Simplifies the given Solid.
 Geometry simplify(Surface geometry)
          Simplifies the given Surface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SFSProfiler

public SFSProfiler(LinearizationCriterion crit)
Creates a new SFSProfiler that uses the given LinearizationCriterion for linearizing non-linear curve segments / surface boundaries.

Parameters:
crit - linearization criterion, must not be null
Method Detail

simplify

public Geometry simplify(Geometry geometry)
Simplifies the given Geometry.

Parameters:
geometry - the geometry to be simplified, must not be null
Returns:
the simplified geometry

simplify

public Geometry simplify(GeometricPrimitive geometry)
Simplifies the given GeometricPrimitive.

Parameters:
geometry - the geometry to be simplified, must not be null
Returns:
the simplified geometry

simplify

public Point simplify(Point geometry)
Simplifies the given Point.

Parameters:
geometry - the geometry to be simplified, must not be null
Returns:
the simplified geometry

simplify

public LineString simplify(Curve geometry)
Simplifies the given Curve.

Parameters:
geometry - the geometry to be simplified, must not be null
Returns:
the simplified geometry

simplify

public Geometry simplify(Surface geometry)
Simplifies the given Surface.

Parameters:
geometry - the geometry to be simplified, must not be null
Returns:
the simplified geometry, either a Polygon or a MultiPolygon (if the input surface has multiple patches)

simplify

public Solid simplify(Solid geometry)
Simplifies the given Solid.

Parameters:
geometry - the geometry to be simplified, must not be null
Returns:
the simplified geometry

simplify

public MultiGeometry<?> simplify(MultiGeometry<?> geometry)
Simplifies the given MultiGeometry.

Parameters:
geometry - the geometry to be simplified, must not be null
Returns:
the simplified geometry


Copyright © 2011. All Rights Reserved.