org.h2gis.h2spatialext.function.spatial.create
Class ST_MakeEnvelope

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

public class ST_MakeEnvelope
extends DeterministicScalarFunction

Creates a rectangular POLYGON formed from the given x and y minima. The user may specify an SRID; if no SRID is specified the unknown spatial reference system is assumed.

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_MakeEnvelope()
           
 
Method Summary
 String getJavaStaticMethod()
           
static com.vividsolutions.jts.geom.Polygon makeEnvelope(double xmin, double ymin, double xmax, double ymax)
          Creates a rectangular Polygon formed from the minima and maxima by the given shell.
static com.vividsolutions.jts.geom.Polygon makeEnvelope(double xmin, double ymin, double xmax, double ymax, int srid)
          Creates a rectangular Polygon formed from the minima and maxima by the given shell.
 
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_MakeEnvelope

public ST_MakeEnvelope()
Method Detail

getJavaStaticMethod

public String getJavaStaticMethod()

makeEnvelope

public static com.vividsolutions.jts.geom.Polygon makeEnvelope(double xmin,
                                                               double ymin,
                                                               double xmax,
                                                               double ymax)
Creates a rectangular Polygon formed from the minima and maxima by the given shell.

Parameters:
xmin - X min
ymin - Y min
xmax - X max
ymax - Y max
Returns:
Envelope as a POLYGON

makeEnvelope

public static com.vividsolutions.jts.geom.Polygon makeEnvelope(double xmin,
                                                               double ymin,
                                                               double xmax,
                                                               double ymax,
                                                               int srid)
Creates a rectangular Polygon formed from the minima and maxima by the given shell. The user can set a srid.

Parameters:
xmin - X min
ymin - Y min
xmax - X max
ymax - Y max
srid - SRID
Returns:
Envelope as a POLYGON


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