Codota Logo
Geometry.symDifference
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Geometry
private void myMethod () {
Geometry g =
  • Codota IconGeometryCollection gc;gc.getGeometryN(n)
  • Codota IconSimpleFeature feature;(Geometry) feature.getDefaultGeometry()
  • Codota IconString wellKnownText;new WKTReader().read(wellKnownText)
  • Smart code suggestions by Codota
}
origin: com.vividsolutions/jts

/**
 * Computes the set-theoretic symmetric difference of two geometries,
 * using enhanced precision.
 * @param geom0 the first Geometry
 * @param geom1 the second Geometry
 * @return the Geometry representing the set-theoretic symmetric difference of the input Geometries.
 */
public Geometry symDifference(Geometry geom0, Geometry geom1)
{
 Geometry[] geom = removeCommonBits(geom0, geom1);
 return computeResultPrecision(geom[0].symDifference(geom[1]));
}
origin: com.vividsolutions/jts

Geometry result = geom0.symDifference(geom1);
return result;
origin: org.geotools/gt-main

static public Geometry symDifference(Geometry arg0,Geometry arg1)
{
   if (arg0 == null || arg1 == null) return null;
   Geometry _this = arg0;
   return _this.symDifference(arg1);
}
origin: org.geotools/gt2-main

static public Geometry symDifference(Geometry arg0,Geometry arg1)
{
   Geometry _this = arg0;
   return _this.symDifference(arg1);
}
origin: org.orbisgis/h2gis

  /**
   * @param a Geometry instance.
   * @param b Geometry instance
   * @return the symmetric difference between two geometries
   */
  public static Geometry symDifference(Geometry a,Geometry b) {
    if(a==null || b==null) {
      return null;
    }
    return a.symDifference(b);
  }
}
origin: org.orbisgis/h2gis-functions

  /**
   * @param a Geometry instance.
   * @param b Geometry instance
   * @return the symmetric difference between two geometries
   */
  public static Geometry symDifference(Geometry a,Geometry b) {
    if(a==null || b==null) {
      return null;
    }
    return a.symDifference(b);
  }
}
origin: us.ihmc/ihmc-jmonkey-engine-toolkit

public static Geometry symDifference(Geometry a, Geometry b)
{
 return a.symDifference(b);
}
origin: org.orbisgis/h2spatial

  /**
   * @param a Geometry instance.
   * @param b Geometry instance
   * @return the symmetric difference between two geometries
   */
  public static Geometry symDifference(Geometry a,Geometry b) {
    if(a==null || b==null) {
      return null;
    }
    return a.symDifference(b);
  }
}
origin: us.ihmc/IHMCJMonkeyEngineToolkit

public static Geometry symDifference(Geometry a, Geometry b)
{
 return a.symDifference(b);
}
origin: org.geotools/gt-render

public Geometry symDifference(Geometry other) {
  return geometry.symDifference(other);
}
origin: osmlab/atlas

protected MultiPolygon xor(final MultiPolygon subject)
{
  return runMultiPolygonClipping(subject, (sub, clipping) -> sub.symDifference(clipping));
}
origin: osmlab/atlas

protected List<PolyLine> xor(final PolyLine subject)
{
  return runPolyLineClipping(subject, (sub, clipping) -> sub.symDifference(clipping));
}
origin: osmlab/atlas

protected MultiPolygon xor(final Polygon subject)
{
  return runPolygonClipping(subject, (sub, clipping) -> sub.symDifference(clipping));
}
origin: com.vividsolutions/jts-core

/**
 * Computes the set-theoretic symmetric difference of two geometries,
 * using enhanced precision.
 * @param geom0 the first Geometry
 * @param geom1 the second Geometry
 * @return the Geometry representing the set-theoretic symmetric difference of the input Geometries.
 */
public Geometry symDifference(Geometry geom0, Geometry geom1)
{
 Geometry[] geom = removeCommonBits(geom0, geom1);
 return computeResultPrecision(geom[0].symDifference(geom[1]));
}
origin: osmlab/atlas

public List<? extends PolyLine> xor(final PolyLine subject)
{
  return processResult(getJts(subject).symDifference(this.jtsClipping));
}
origin: org.jboss.teiid/teiid-engine

public static GeometryType symDifference(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
  Geometry g1 = getGeometry(geom1);
  Geometry g2 = getGeometry(geom2);
  return getGeometryType(g1.symDifference(g2));
}

origin: BaseXdb/basex

 @Override
 public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
  return toElement(checkGeo(0, qc).symDifference(checkGeo(1, qc)), qc);
 }
}
origin: stackoverflow.com

Geometry ret = iter.next();
while(iter.hasNext()){
  ret = ret.symDifference(iter.next());
origin: teiid/teiid

public static GeometryType symDifference(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
  Geometry g1 = getGeometry(geom1);
  Geometry g2 = getGeometry(geom2);
  return getGeometryType(g1.symDifference(g2), geom1.getSrid());
}

origin: org.teiid/teiid-engine

public static GeometryType symDifference(GeometryType geom1, GeometryType geom2) throws FunctionExecutionException {
  Geometry g1 = getGeometry(geom1);
  Geometry g2 = getGeometry(geom2);
  return getGeometryType(g1.symDifference(g2), geom1.getSrid());
}

com.vividsolutions.jts.geomGeometrysymDifference

Javadoc

Computes a Geometry representing the closure of the point-set which is the union of the points in this Geometry which are not contained in the other Geometry, with the points in the other Geometry not contained in this Geometry. If the result is empty, it is an atomic geometry with the dimension of the highest input dimension.

Non-empty GeometryCollection arguments are not supported.

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

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Socket (java.net)
    Provides a client-side TCP socket.
  • BitSet (java.util)
    This class implements a vector of bits that grows as needed. Each component of the bit set has a boo
  • Timer (java.util)
    A facility for threads to schedule tasks for future execution in a background thread. Tasks may be s
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now