Exemplo n.º 1
0
 public static BoundingBoxInputImpl createBoundingBoxInput(String key, BoundingBox bounds) {
   BoundingBoxInputDefinition bid = new BoundingBoxInputDefinition();
   CodeType ct = new CodeType();
   ct.setValue(key);
   bid.setIdentifier(ct);
   DefaultPoint min =
       new DefaultPoint(null, null, null, new double[] {bounds.getMinLon(), bounds.getMinLat()});
   DefaultPoint max =
       new DefaultPoint(null, null, null, new double[] {bounds.getMaxLon(), bounds.getMaxLat()});
   Envelope env = new DefaultEnvelope(min, max);
   BoundingBoxInputImpl lii =
       new BoundingBoxInputImpl(
           bid, new LanguageString(key, null), new LanguageString(key, null), env);
   return lii;
 }