org.deegree.geometry
Class Geometries

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

public class Geometries
extends Object

Contains utility methods for common tasks on Geometry objects.

Version:
$Revision: 32095 $, $Date: 2011-10-05 13:40:22 +0200 (Wed, 05 Oct 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
Geometries()
           
 
Method Summary
static Geometry copyDeep(Geometry geom)
          Creates a deep copy of the given Geometry object.
static GeometricPrimitive getAsGeometry(Envelope env)
          Returns a corresponding GeometricPrimitive object for the given Envelope.
static MultiGeometry<?> homogenize(MultiGeometry<?> geometry)
          Homogenizes the given generic MultiGeometry, i.e. returns a MultiPoint, MultiCurve, MultiLineString, MultiSurface, MultiPolygon or MultiSolid (depending on the members).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Geometries

public Geometries()
Method Detail

homogenize

public static MultiGeometry<?> homogenize(MultiGeometry<?> geometry)
Homogenizes the given generic MultiGeometry, i.e. returns a MultiPoint, MultiCurve, MultiLineString, MultiSurface, MultiPolygon or MultiSolid (depending on the members).

Parameters:
geometry - generic multi geometry to be homogenized, must not be null
Returns:
the homogenized multi geometry

getAsGeometry

public static GeometricPrimitive getAsGeometry(Envelope env)
Returns a corresponding GeometricPrimitive object for the given Envelope.

Depending on the extent, this can either be:

Parameters:
env - envelope, must not be null
Returns:
corresponding geometry object, never null

copyDeep

public static Geometry copyDeep(Geometry geom)
Creates a deep copy of the given Geometry object.

Parameters:
geom -
Returns:


Copyright © 2011. All Rights Reserved.