Examples of BBOXTypeInfo


Examples of org.geomajas.sld.filter.BBOXTypeInfo

    return null;
  }

  private String toSpatial(SpatialOpsTypeInfo spatialOps) {
    if (spatialOps instanceof BBOXTypeInfo) {
      BBOXTypeInfo bbox = (BBOXTypeInfo) spatialOps;
      String propertyName = bbox.getPropertyName().getValue();
      String coordinates = null;
      if (bbox.getBox().ifCoordinates()) {
        String cs = bbox.getBox().getCoordinates().getCs();
        String ts = bbox.getBox().getCoordinates().getTs();
        String ds = bbox.getBox().getCoordinates().getDecimal();
        coordinates = bbox.getBox().getCoordinates().getString().trim().replace(ds, "ds").replace(ts, "ts")
            .replace(cs, "cs").replace("ds", ".").replace("ts", ",").replace("cs", ",");
      } else {
        for (CoordTypeInfo coord : bbox.getBox().getCoordList()) {
          coordinates += coord.getX() + "," + coord.getY() + (coordinates == null ? "," : "");
        }
      }
      return "BBOX (" + propertyName + "," + coordinates + ")";
    } else if (spatialOps instanceof BinarySpatialOpTypeInfo) {
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.