congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Geometry.getBoundary
Code IndexAdd Tabnine to your IDE (free)

How to use
getBoundary
method
in
com.vividsolutions.jts.geom.Geometry

Best Java code snippets using com.vividsolutions.jts.geom.Geometry.getBoundary (Showing top 20 results out of 315)

origin: com.vividsolutions/jts

private void checkPositiveValid()
{
  Geometry bufCurve = result.getBoundary();
  checkMinimumDistance(input, bufCurve, minValidDistance);
  if (! isValid) return;
  
  checkMaximumDistance(input, bufCurve, maxValidDistance);
}
 
origin: com.vividsolutions/jts

public Geometry getBoundary()
{
 if (geom instanceof LineString) return boundaryLineString((LineString) geom);
 if (geom instanceof MultiLineString) return boundaryMultiLineString((MultiLineString) geom);
 return geom.getBoundary();
}
origin: org.geotools/gt-main

static public Geometry boundary(Geometry arg0)
{
   if (arg0 == null) return null;
   Geometry _this = arg0;
   return _this.getBoundary();
}
origin: org.geotools/gt2-main

static public Geometry boundary(Geometry arg0)
{
   Geometry _this = arg0;
   return _this.getBoundary();
}
origin: nl.cloudfarming.client/farm-model

@Override
public Geometry getBoundingBox() {
  return (this.geometry!=null)?geometry.getBoundary():null;
}    
origin: org.orbisgis/h2spatial

  /**
   * @param geometry Geometry instance
   * @return Geometry envelope
   */
  public static Geometry getBoundary(Geometry geometry) {
    if(geometry==null) {
      return null;
    }
    return geometry.getBoundary();
  }
}
origin: org.orbisgis/h2gis-functions

  /**
   * @param geometry Geometry instance
   * @return Geometry envelope
   */
  public static Geometry getBoundary(Geometry geometry) {
    if(geometry==null) {
      return null;
    }
    return geometry.getBoundary();
  }
}
origin: org.orbisgis/h2gis

  /**
   * @param geometry Geometry instance
   * @return Geometry envelope
   */
  public static Geometry getBoundary(Geometry geometry) {
    if(geometry==null) {
      return null;
    }
    return geometry.getBoundary();
  }
}
origin: nl.cloudfarming.client/mask-model

@Override
public Geometry getBoundingBox() {
  return (this.geometry!=null)?geometry.getBoundary():null;
}    
origin: org.orbisgis/h2gis-functions

/**
 * @param geometry Geometry instance
 * @return Geometry envelope
 */
public static Geometry getBoundary(Geometry geometry, int srid) {
  if(geometry==null) {
    return null;
  }
  Geometry geometryEnvelope = geometry.getBoundary();
  geometryEnvelope.setSRID(srid);
  return geometryEnvelope;
}
origin: org.orbisgis/h2gis

/**
 * @param geometry Geometry instance
 * @return Geometry envelope
 */
public static Geometry getBoundary(Geometry geometry, int srid) {
  if(geometry==null) {
    return null;
  }
  Geometry geometryEnvelope = geometry.getBoundary();
  geometryEnvelope.setSRID(srid);
  return geometryEnvelope;
}
origin: org.orbisgis/h2spatial

/**
 * @param geometry Geometry instance
 * @return Geometry envelope
 */
public static Geometry getBoundary(Geometry geometry, int srid) {
  if(geometry==null) {
    return null;
  }
  Geometry geometryEnvelope = geometry.getBoundary();
  geometryEnvelope.setSRID(srid);
  return geometryEnvelope;
}
origin: BaseXdb/basex

 @Override
 public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
  return toElement(checkGeo(0, qc).getBoundary(), qc);
 }
}
origin: com.vividsolutions/jts-core

private void checkPositiveValid()
{
  Geometry bufCurve = result.getBoundary();
  checkMinimumDistance(input, bufCurve, minValidDistance);
  if (! isValid) return;
  
  checkMaximumDistance(input, bufCurve, maxValidDistance);
}
 
origin: org.geotools/gt-jts-wrapper

public final boolean isCycle() {
  com.vividsolutions.jts.geom.Geometry jtsGeom = getJTSGeometry();
  com.vividsolutions.jts.geom.Geometry jtsBoundary = jtsGeom.getBoundary();
  return jtsBoundary.isEmpty();
}
origin: com.vividsolutions/jts-core

public Geometry getBoundary()
{
 if (geom instanceof LineString) return boundaryLineString((LineString) geom);
 if (geom instanceof MultiLineString) return boundaryMultiLineString((MultiLineString) geom);
 return geom.getBoundary();
}
origin: org.geotools/gt-jts-wrapper

/**
 * @return
 * @see com.polexis.lite.spatialschema.geometry.geometry.GenericSurfaceImpl#getPerimeter()
 */
public final double getPerimeter() {
  com.vividsolutions.jts.geom.Geometry jtsGeom = getJTSGeometry();
  return jtsGeom.getBoundary().getLength();
}
origin: stackoverflow.com

 Envelope env = new Envelope();
for(Geometry g : mySet){
 env.expandToInclude(g.getBoundary().getEnvelopeInternal()):
}
origin: org.geotools/gt2-jts-wrapper

public final boolean isCycle() {
  com.vividsolutions.jts.geom.Geometry jtsGeom = getJTSGeometry();
  com.vividsolutions.jts.geom.Geometry jtsBoundary = jtsGeom.getBoundary();
  return jtsBoundary.isEmpty();
}
origin: org.geotools/gt2-jts-wrapper

/**
 * @return
 * @see com.polexis.lite.spatialschema.geometry.geometry.GenericSurfaceImpl#getPerimeter()
 */
public final double getPerimeter() {
  com.vividsolutions.jts.geom.Geometry jtsGeom = getJTSGeometry();
  return jtsGeom.getBoundary().getLength();
}
com.vividsolutions.jts.geomGeometrygetBoundary

Javadoc

Returns the boundary, or an empty geometry of appropriate dimension if this Geometry is empty. (In the case of zero-dimensional geometries, ' an empty GeometryCollection is returned.) For a discussion of this function, see the OpenGIS Simple Features Specification. As stated in SFS Section 2.1.13.1, "the boundary of a Geometry is a set of Geometries of the next lower dimension."

Popular methods of Geometry

  • getEnvelopeInternal
    Gets an Envelope containing the minimum and maximum x and y values in this Geometry. If the geometr
  • getCoordinates
    Returns an array containing the values of all the vertices for this geometry. If the geometry is a c
  • isEmpty
    Tests whether the set of points covered by this Geometry is empty.
  • getCentroid
    Computes the centroid of this Geometry. The centroid is equal to the centroid of the set of componen
  • getGeometryN
    Returns an element Geometry from a GeometryCollection(or this, if the geometry is not a collection).
  • toText
    Returns the Well-known Text representation of this Geometry. For a definition of the Well-known Text
  • getNumGeometries
    Returns the number of Geometrys in a GeometryCollection(or 1, if the geometry is not a collection).
  • getFactory
    Gets the factory which contains the context in which this geometry was created.
  • getGeometryType
    Returns the name of this Geometry's actual class.
  • getSRID
    Returns the ID of the Spatial Reference System used by the Geometry. JTS supports Spatial Reference
  • getCoordinate
    Returns a vertex of this Geometry (usually, but not necessarily, the first one). The returned coordi
  • intersection
    Computes a Geometry representing the point-set which is common to both this Geometry and the other
  • getCoordinate,
  • intersection,
  • buffer,
  • contains,
  • getArea,
  • getEnvelope,
  • intersects,
  • union,
  • apply,
  • getLength

Popular in Java

  • Reading from database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JFrame (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now