Package org.geotools.geometry.iso.topograph2D

Examples of org.geotools.geometry.iso.topograph2D.IntersectionMatrix.matches()


   */
  public static boolean cRelate(Geometry g1, Geometry g2, String intersectionPatternMatrix) throws UnsupportedDimensionException {
    GeometryImpl geom1 = GeometryImpl.castToGeometryImpl(g1);
    GeometryImpl geom2 = GeometryImpl.castToGeometryImpl(g2);
    IntersectionMatrix tIM = RelateOp.relate((GeometryImpl) geom1, (GeometryImpl) geom2);
    return tIM.matches(intersectionPatternMatrix);
  }
 
  /**
   * Verifies a boolean relation between two geometry objects
   *
 
View Full Code Here


   */
  public boolean relate(Geometry aOther, String intersectionPatternMatrix)
      throws UnsupportedDimensionException {
    GeometryImpl geom = GeometryImpl.castToGeometryImpl(aOther);
    IntersectionMatrix tIM = RelateOp.relate(this, geom);
    return tIM.matches(intersectionPatternMatrix);
  }

  /*
   * (non-Javadoc)
   *
 
View Full Code Here

      e.printStackTrace();
      return false;
    }
   
    boolean rValue = false;
    rValue = tIM.matches("T*F**F***");
   
//    if (this instanceof PrimitiveImpl) {
//      if (geom instanceof PrimitiveImpl) {
//        // Primitive / Primitive
//        rValue = tIM.matches("TFF******");
 
View Full Code Here

    String intersectionPatternMatrix = "FF*FF****";

    try {
      IntersectionMatrix tIM = RelateOp.relate(this, geom);
      boolean rValue = tIM.matches(intersectionPatternMatrix);
      return rValue;
     
    } catch (UnsupportedDimensionException e) {
      e.printStackTrace();
      return false;
View Full Code Here

    }
   
    boolean rValue = false;
   
    // No distinction between primitive and complex (explanation see thesis)
    rValue = tIM.matches("T*F**FFF*");
   
//    if (this instanceof PrimitiveImpl) {
//      if (geom instanceof PrimitiveImpl) {
//        // Primitive / Primitive
//        rValue = tIM.matches("T*F**FFF*");
 
View Full Code Here

      e.printStackTrace();
      return false;
    }
   
    boolean rValue = false;
    rValue = tIM.matches("F***T****")
        || tIM.matches("FT*******")
        || tIM.matches("F**T*****");
   
//    if (this instanceof PrimitiveImpl) {
//      if (geom instanceof PrimitiveImpl) {
View Full Code Here

      return false;
    }
   
    boolean rValue = false;
    rValue = tIM.matches("F***T****")
        || tIM.matches("FT*******")
        || tIM.matches("F**T*****");
   
//    if (this instanceof PrimitiveImpl) {
//      if (geom instanceof PrimitiveImpl) {
//        // Primitive / Primitive
View Full Code Here

    }
   
    boolean rValue = false;
    rValue = tIM.matches("F***T****")
        || tIM.matches("FT*******")
        || tIM.matches("F**T*****");
   
//    if (this instanceof PrimitiveImpl) {
//      if (geom instanceof PrimitiveImpl) {
//        // Primitive / Primitive
//        rValue = tIM.matches("FT*******")
 
View Full Code Here

      return false;
    }
   
    boolean rValue = false;
    if (d1 == 1)
      rValue = tIM.matches("1*T***T**");
    else
      rValue = tIM.matches("T*T***T**");

   
//    if (this instanceof PrimitiveImpl) {
View Full Code Here

   
    boolean rValue = false;
    if (d1 == 1)
      rValue = tIM.matches("1*T***T**");
    else
      rValue = tIM.matches("T*T***T**");

   
//    if (this instanceof PrimitiveImpl) {
//      if (geom instanceof PrimitiveImpl) {
//        // Primitive / Primitive
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.