Tabnine Logo
Geometry.isSimple
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.geotools/gt-main

static public boolean isSimple(Geometry arg0)
{
   if (arg0 == null) return false;
   Geometry _this = arg0;
   return _this.isSimple();
}
origin: org.orbisgis/h2gis-functions

  /**
   * @param geometry Geometry instance
   * @return True if the provided geometry has no points of self-tangency, self-intersection or other anomalous points.
   */
  public static Boolean isSimple(Geometry geometry) {
    if(geometry==null) {
      return null;
    }
    return geometry.isSimple();
  }
}
origin: org.geotools/gt2-main

static public boolean isSimple(Geometry arg0)
{
   Geometry _this = arg0;
   return _this.isSimple();
}
origin: org.orbisgis/h2spatial

  /**
   * @param geometry Geometry instance
   * @return True if the provided geometry has no points of self-tangency, self-intersection or other anomalous points.
   */
  public static Boolean isSimple(Geometry geometry) {
    if(geometry==null) {
      return null;
    }
    return geometry.isSimple();
  }
}
origin: org.orbisgis/h2gis

  /**
   * @param geometry Geometry instance
   * @return True if the provided geometry has no points of self-tangency, self-intersection or other anomalous points.
   */
  public static Boolean isSimple(Geometry geometry) {
    if(geometry==null) {
      return null;
    }
    return geometry.isSimple();
  }
}
origin: org.geotools/gt-render

public boolean isSimple() {
  return geometry.isSimple();
}
origin: org.geotools/gt2-jts-wrapper

/**
 * Returns true if this object does not cross itself.
 */
public final boolean isSimple() {
  com.vividsolutions.jts.geom.Geometry jtsGeom = getJTSGeometry();
  return jtsGeom.isSimple();
}
origin: teiid/teiid

public static Boolean isSimple(GeometryType geom) throws FunctionExecutionException {
  Geometry g = getGeometry(geom);
  return g.isSimple();
}

origin: org.geotools/gt-jts-wrapper

/**
 * Returns true if this object does not cross itself.
 */
public final boolean isSimple() {
  com.vividsolutions.jts.geom.Geometry jtsGeom = getJTSGeometry();
  return jtsGeom.isSimple();
}
origin: org.jboss.teiid/teiid-engine

public static Boolean isSimple(GeometryType geom) throws FunctionExecutionException {
  Geometry g = getGeometry(geom);
  return g.isSimple();
}

origin: org.teiid/teiid-engine

public static Boolean isSimple(GeometryType geom) throws FunctionExecutionException {
  Geometry g = getGeometry(geom);
  return g.isSimple();
}

origin: BaseXdb/basex

 @Override
 public Item item(final QueryContext qc, final InputInfo ii) throws QueryException {
  return Bln.get(checkGeo(0, qc).isSimple());
 }
}
origin: org.orbisgis/h2gis

  /**
   * @param geometry Geometry instance
   * @return True if the provided geometry is a ring; null otherwise
   */
  public static Boolean isRing(Geometry geometry) {
    if(geometry==null){
      return null;
    }
    if (geometry instanceof MultiLineString) {
      MultiLineString mString = ((MultiLineString) geometry);
      return mString.isClosed() && mString.isSimple();
    } else if (geometry instanceof LineString) {
      LineString line = (LineString) geometry;
      return line.isClosed() && geometry.isSimple();
    }
    return null;
  }
}
origin: org.orbisgis/h2gis-functions

  /**
   * @param geometry Geometry instance
   * @return True if the provided geometry is a ring; null otherwise
   */
  public static Boolean isRing(Geometry geometry) {
    if(geometry==null){
      return null;
    }
    if (geometry instanceof MultiLineString) {
      MultiLineString mString = ((MultiLineString) geometry);
      return mString.isClosed() && mString.isSimple();
    } else if (geometry instanceof LineString) {
      LineString line = (LineString) geometry;
      return line.isClosed() && geometry.isSimple();
    }
    return null;
  }
}
origin: org.orbisgis/h2spatial

  /**
   * @param geometry Geometry instance
   * @return True if the provided geometry is a ring; null otherwise
   */
  public static Boolean isRing(Geometry geometry) {
    if(geometry==null){
      return null;
    }
    if (geometry instanceof MultiLineString) {
      MultiLineString mString = ((MultiLineString) geometry);
      return mString.isClosed() && mString.isSimple();
    } else if (geometry instanceof LineString) {
      LineString line = (LineString) geometry;
      return line.isClosed() && geometry.isSimple();
    }
    return null;
  }
}
origin: mapplus/spatial_statistics_for_geotools_udig

private Geometry validate(Geometry source) {
  if (source == null || source.isEmpty()) {
    return null;
  }
  if (source.isValid() && source.isSimple()) {
    return source;
  }
  // validate coordinates, remove empty shell/holes, duplicated points
  Geometry valid = validateEmptyAndDuplicate(source);
  if (valid == null || valid.isEmpty()) {
    return null;
  }
  if (valid.isValid() && valid.isSimple()) {
    return valid;
  }
  // reconstruct self-intersection geometry
  Class<?> geomBinding = valid.getClass();
  if (geomBinding.isAssignableFrom(MultiPolygon.class)) {
    return validatePolygon(valid);
  } else if (geomBinding.isAssignableFrom(Polygon.class)) {
    return validatePolygon(valid);
  } else if (geomBinding.isAssignableFrom(MultiLineString.class)) {
    return validateLineString(valid);
  } else if (geomBinding.isAssignableFrom(LineString.class)) {
    return validateLineString(valid);
  } else {
    Assert.shouldNeverReachHere(source.toText());
  }
  return null;
}
origin: mapplus/spatial_statistics_for_geotools_udig

if (geomBinding.isAssignableFrom(MultiPolygon.class)
    || geomBinding.isAssignableFrom(Polygon.class)) {
  if (!cropShape.isValid() || !cropShape.isSimple()) {
    cropShape = cropShape.buffer(0);
    cropShape.setUserData(cropShape.getUserData());
com.vividsolutions.jts.geomGeometryisSimple

Javadoc

Tests whether this Geometry is simple. The SFS definition of simplicity follows the general rule that a Geometry is simple if it has no points of self-tangency, self-intersection or other anomalous points.

Simplicity is defined for each Geometry subclass as follows:

  • Valid polygonal geometries are simple, since their rings must not self-intersect. isSimple tests for this condition and reports false if it is not met. (This is a looser test than checking for validity).
  • Linear rings have the same semantics.
  • Linear geometries are simple iff they do not self-intersect at points other than boundary points.
  • Zero-dimensional geometries (points) are simple iff they have no repeated points.
  • Empty Geometrys are always simple.

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
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • JTable (javax.swing)
  • 14 Best Plugins for Eclipse
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