Examples of Envelope


Examples of buri.ddmsence.ddms.summary.tspi.Envelope

        for (int i = 0; i < ellipses.size(); i++) {
          _tspiShapes.add(new Ellipse(ellipses.get(i)));
        }
        Elements envelopes = element.getChildElements(Envelope.getName(getDDMSVersion()), tspiNamespace);
        for (int i = 0; i < envelopes.size(); i++) {
          _tspiShapes.add(new Envelope(envelopes.get(i)));
        }
        Elements points = element.getChildElements(
          buri.ddmsence.ddms.summary.tspi.Point.getName(getDDMSVersion()), tspiNamespace);
        for (int i = 0; i < points.size(); i++) {
          _tspiShapes.add(new buri.ddmsence.ddms.summary.tspi.Point(points.get(i)));
View Full Code Here

Examples of chunmap.model.elem.Envelope

    return grid;
  }

  private void createAllTile(Grid grid, String path) throws IOException {

    Envelope oenvelop = map.getLayerCollection().getEnvelop();

    double w = grid.getSubEnvelop().getWidth();
    double h = grid.getSubEnvelop().getHeight();
    double zw = oenvelop.getWidth();
    double zh = oenvelop.getHeight();
    // double vw = map.getView().getEnvelop().getWidth();
    // double vh = map.getView().getEnvelop().getHeight();
    double ox = oenvelop.getMinX();
    double oy = oenvelop.getMinY();

    double dn = zw / w + 0.4999;
    double dm = zh / h + 0.4999;
    int n = (int) Math.round(dn);
    int m = (int) Math.round(dm);

    double dx, dy;

    for (int i = 0; i < n; i++) {
      for (int j = 0; j < m; j++) {

        // compute envelop
        dx = i * w + ox;
        dy = j * h + oy;

        // pixels expand
        // double dd = buffer / map.getView().getScale();

        Envelope envelop = new Envelope(dx, dy, dx + w, dy + h);
        map.getView().setViewEnvelop(envelop);
        // map.getView().pan(0, dy);

        createImage(grid, path, i, j);
      }
View Full Code Here

Examples of com.biasedbit.nettytutorials.customcodecs.common.Envelope

            return;
        }

        this.startTime = System.currentTimeMillis();
        for (int i = 0; i < this.messages; i++) {
            this.handler.sendMessage(new Envelope(Version.VERSION1, Type.REQUEST, new byte[175]));
        }
    }
View Full Code Here

Examples of com.droidkit.actors.mailbox.Envelope

     * @param message message
     * @param delay   delay
     * @param sender  sender
     */
    public void send(Object message, long delay, ActorRef sender) {
        mailbox.schedule(new Envelope(message, mailbox, sender), ActorTime.currentTime() + delay);
    }
View Full Code Here

Examples of com.esri.core.geometry.Envelope

    if (ogcGeometry == null) {
      LogUtils.Log_ArgumentsNull(LOG);
      return null;
    }

    Envelope envBound = new Envelope();
    ogcGeometry.getEsriGeometry().queryEnvelope(envBound);
    resultDouble.set(envBound.getXMax());
    return resultDouble;
  }
View Full Code Here

Examples of com.esri.gpt.framework.geometry.Envelope

                   
          ESRI_ItemInformation itemInfo = new ESRI_ItemInformation();
                    itemInfo.setType("Map Service");
                    itemInfo.setTags(Arrays.asList(new String[]{"ArcGIS","Server map","service"}));
                   
          Envelope extent = new Envelope();
          for (Fieldable fld : flds) {
            String fieldName = fld.name();
            String[] vals = document.getValues(fieldName);
                        if (fieldName.contains("uuid")) {
                          itemInfo.setId(vals[0].replaceAll("^\\{|\\}$|\\-", ""));
                        } else if (fieldName.contains("title")) {
              itemInfo.setTitle(vals[0]);
              itemInfo.setName(vals[0]);
            } else if (fieldName.contains("resource.url")) {
              itemInfo.setUrl(vals[0]);
              String type = Val.chkStr(guessServiceTypeFromUrl(vals[0]));
              if (type.length() > 0) {
                itemInfo.setType(type);
              }
            } else if (fieldName.contains("contentType")) {
            } else if (fieldName.contains("keywords")) {
              itemInfo.setTypeKeywords(Arrays.asList(vals));
              itemInfo.setTags(Arrays.asList(vals));
            } else if (fieldName.contains("dataTheme")) {
              itemInfo.setTags(Arrays.asList(vals));
            } else if (fieldName.contains("abstract")) {
              itemInfo.setDescription(vals[0]);
//            } else if (fieldName.contains("xml")) {
//              itemInfo.setXml(vals[0]);
            } else if (fieldName.contains("minx")) {
              extent.setMinX(vals[0]);
            } else if (fieldName.contains("miny")) {
              extent.setMinY(vals[0]);
            } else if (fieldName.contains("maxx")) {
              extent.setMaxX(vals[0]);
            } else if (fieldName.contains("maxy")) {
              extent.setMaxY(vals[0]);
            } else if (fieldName.contains("thumbnail.url")) {
              itemInfo.setThumbnailUrl(vals[0]);
            }
          }
          itemInfo.setExtent(extent);
View Full Code Here

Examples of com.google.glass.companion.Proto.Envelope

                mInStream = mStreamConnection.openInputStream();
                mGlassReaderThread = new GlassReaderThread();
                mGlassReaderThread.start();

                // handshaking
                Envelope envelope = CompanionMessagingUtil.newEnvelope();
                envelope.timezoneC2G = TimeZone.getDefault().getID();
                write(envelope);

                try {
                    Thread.sleep(300);
                } catch (InterruptedException e) {
                    e.printStackTrace();
                }

                // handshaking
                Envelope envelope2 = CompanionMessagingUtil.newEnvelope();
                GlassInfoRequest glassInfoRequest = new GlassInfoRequest();
                glassInfoRequest.requestBatteryLevel = true;
                glassInfoRequest.requestStorageInfo = true;
                glassInfoRequest.requestDeviceName = true;
                glassInfoRequest.requestSoftwareVersion = true;
View Full Code Here

Examples of com.impetus.kundera.gis.geometry.Envelope

        return persons;
    }

    public List<Person> findWithinRectangle(double x1, double y1, double x2, double y2)
    {
        Envelope envelope = new Envelope(x1, x2, y1, y2);
        Query q = em.createQuery("Select p from Person p where p.currentLocation IN :envelope");
        q.setParameter("envelope", envelope);
        List<Person> persons = q.getResultList();
        return persons;
    }
View Full Code Here

Examples of com.rabbitmq.client.Envelope

    final ConsumerDelegate consumerDelegate = (ConsumerDelegate) invocation.args[invocation.args.length - 1];
    new Thread() {
      public void run() {
        try {
          for (; deliveryTag.get() <= 100000 && consume.get(); deliveryTag.incrementAndGet()) {
            consumerDelegate.handleDelivery("test-tag", new Envelope(deliveryTag.get(), false, "x",
                "#"), null, ("foo-" + deliveryTag).getBytes());
            Thread.sleep(5);
          }
        } catch (Exception e) {
        }
View Full Code Here

Examples of com.sun.syndication.feed.module.georss.geometries.Envelope

        GeoRSSModule geoInfo = new GMLModuleImpl();
        double minLat = refenv.getMinimum(0),
               minLong = refenv.getMinimum(1),
               maxLat = refenv.getMaximum(0),
               maxLong = refenv.getMaximum(1);
        Envelope bounds = new Envelope(minLat, minLong, maxLat, maxLong);
        geoInfo.setGeometry(bounds);
        List modules = entry.getModules();
        modules.add(geoInfo);
        entry.setModules(modules);
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.