Examples of SpatialPredicateType


Examples of edu.indiana.extreme.lead.data_catalog.xsd.SpatialPredicateType

//      inpPolicy
//          .addResultOrdering(ResultOrderingType.ORDER_BY_CATALOG_MYLEADFIRST);
//  }

  private void setSpatialQueryType(SpatialQueryType spatial, QMExtInput input) {
    SpatialPredicateType predicate = spatial.addNewSpatialPredicate();
    SpatialPredicateType.BoundingBox bounding = predicate
        .addNewBoundingBox();

    float west = input.getWest();
    bounding.setWestBound(west);
    float east = input.getEast();
    bounding.setEastBound(east);
    float north = input.getNorth();
    bounding.setNorthBound(north);
    float south = input.getSouth();
    bounding.setSouthBound(south);

    String spatial_logic = input.getSpatial_logic();
    if (spatial_logic.compareTo("BOX_NOT_INTERSECTS_DATA") == 0)
      predicate
          .setIntersection(SpatialIntersectionType.BOX_NOT_INTERSECTS_DATA);
    else if (spatial_logic.compareTo("BOX_INTERSECTS_DATA") == 0)
      predicate
          .setIntersection(SpatialIntersectionType.BOX_INTERSECTS_DATA);
    else if (spatial_logic.compareTo("DATA_ENCLOSES_BOX") == 0)
      predicate
          .setIntersection(SpatialIntersectionType.DATA_ENCLOSES_BOX);
    else if (spatial_logic.compareTo("BOX_EQUALS_DATA") == 0)
      predicate.setIntersection(SpatialIntersectionType.BOX_EQUALS_DATA);
    else
      predicate
          .setIntersection(SpatialIntersectionType.BOX_ENCLOSES_DATA);
  }
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.