congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • onRequestPermissionsResult (Fragment)
  • startActivity (Activity)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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