org.h2gis.h2spatialext.function.spatial.edit
Class ST_RemoveHoles

java.lang.Object
  extended by org.h2gis.h2spatialapi.AbstractFunction
      extended by org.h2gis.h2spatialapi.DeterministicScalarFunction
          extended by org.h2gis.h2spatialext.function.spatial.edit.ST_RemoveHoles
All Implemented Interfaces:
Function, ScalarFunction

public class ST_RemoveHoles
extends DeterministicScalarFunction

Removes any holes from a polygon or multipolygon

Author:
Erwan Bocher

Field Summary
 
Fields inherited from interface org.h2gis.h2spatialapi.ScalarFunction
PROP_DETERMINISTIC, PROP_NOBUFFER
 
Fields inherited from interface org.h2gis.h2spatialapi.Function
PROP_NAME, PROP_REMARKS
 
Constructor Summary
ST_RemoveHoles()
           
 
Method Summary
 String getJavaStaticMethod()
           
static com.vividsolutions.jts.geom.Geometry removeHoles(com.vividsolutions.jts.geom.Geometry geometry)
          Remove any holes from the geometry.
static com.vividsolutions.jts.geom.MultiPolygon removeHolesMultiPolygon(com.vividsolutions.jts.geom.MultiPolygon multiPolygon)
          Create a new multiPolygon without hole.
static com.vividsolutions.jts.geom.Polygon removeHolesPolygon(com.vividsolutions.jts.geom.Polygon polygon)
          Create a new polygon without hole.
 
Methods inherited from class org.h2gis.h2spatialapi.AbstractFunction
addProperty, getProperty, removeProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.h2gis.h2spatialapi.Function
getProperty
 

Constructor Detail

ST_RemoveHoles

public ST_RemoveHoles()
Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()

removeHoles

public static com.vividsolutions.jts.geom.Geometry removeHoles(com.vividsolutions.jts.geom.Geometry geometry)
Remove any holes from the geometry. If the geometry doesn't contain any holes, return it unchanged.

Parameters:
geometry - Geometry
Returns:
Geometry with no holes *

removeHolesMultiPolygon

public static com.vividsolutions.jts.geom.MultiPolygon removeHolesMultiPolygon(com.vividsolutions.jts.geom.MultiPolygon multiPolygon)
Create a new multiPolygon without hole.

Parameters:
multiPolygon -
Returns:

removeHolesPolygon

public static com.vividsolutions.jts.geom.Polygon removeHolesPolygon(com.vividsolutions.jts.geom.Polygon polygon)
Create a new polygon without hole.

Parameters:
polygon -
Returns:


Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.