Ejemplo n.º 1
0
 /**
  * Returns a boolean value that shows if whether relationships between the boundaries, interiors
  * and exteriors of two geometries match the pattern specified in intersection-matrix-pattern.
  *
  * @param node1 xml element containing gml object(s)
  * @param node2 xml element containing gml object(s)
  * @param intersectionMatrix intersection matrix for two geometries
  * @return boolean value
  * @throws QueryException query exception
  */
 @Deterministic
 public Bln relate(final ANode node1, final ANode node2, final Str intersectionMatrix)
     throws QueryException {
   final Geometry geo1 = checkGeo(node1);
   final Geometry geo2 = checkGeo(node2);
   return Bln.get(geo1.relate(geo2, intersectionMatrix.toJava()));
 }
Ejemplo n.º 2
0
 /**
  * Returns the WKT format of a geometry.
  *
  * @param node xml element containing gml object(s)
  * @return Well-Known Text geometry representation
  * @throws QueryException query exception
  */
 @Deterministic
 public Str asText(final ANode node) throws QueryException {
   return Str.get(new WKTWriter().write(checkGeo(node)));
 }