Tabnine Logo
Geometry.symDifference
Code IndexAdd Tabnine 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)

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 MultiPolygon xor(final Polygon subject)
{
  return runPolygonClipping(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: 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

  • Parsing JSON documents to java classes using gson
  • getSharedPreferences (Context)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • JFrame (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top PhpStorm 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