Examples of BBox


Examples of org.geomajas.gwt.client.spatial.Bbox

  private Bbox convertToLatLon(Bbox bounds) {
    // convert corners
    Coordinate orig = convertToLatLon(bounds.getOrigin());
    Coordinate end = convertToLatLon(bounds.getEndPoint());
    return new Bbox(orig.getX(), orig.getY(), end.getX() - orig.getX(), end.getY() - orig.getY());
  }
View Full Code Here

Examples of org.geomajas.gwt.client.spatial.Bbox

      }
    }
  }

  private void onZoomClick() {
    Bbox bounds = null;
    for (VectorLayer layer : mapWidget.getMapModel().getVectorLayers()) {
      if (layer.isShowing()) {
        VectorLayerStore store = layer.getFeatureStore();
        for (String featureId : layer.getSelectedFeatures()) {
          Feature f = store.getPartialFeature(featureId);
          if (bounds == null) {
            bounds = f.getGeometry().getBounds();
          } else {
            bounds = bounds.union(f.getGeometry().getBounds());
          }
        }
      }
    }
    if (bounds == null) {
View Full Code Here

Examples of org.geomajas.puregwt.client.spatial.Bbox

          viewPort.setMapSize(display.asWidget().getOffsetWidth(), display.asWidget().getOffsetHeight());
          layersModel.initialize(r.getMapInfo(), viewPort, eventBus);
          viewPort.initialize(r.getMapInfo(), eventBus);

          // Immediately zoom to the initial bounds as configured:
          Bbox initialBounds = factory.createBbox(r.getMapInfo().getInitialBounds());
          viewPort.applyBounds(initialBounds);

          // If there are already some MapGadgets registered, draw them now:
          for (Entry<MapGadget, ScreenContainer> entry : gadgets.entrySet()) {
            entry.getKey().onDraw(viewPort, entry.getValue());
View Full Code Here

Examples of org.opengis.filter.spatial.BBOX

              double minx=addedBounds.getMinX();
        double miny=addedBounds.getMinY();
        double maxx=addedBounds.getMaxX();
        double maxy=addedBounds.getMaxY();
        String srs=CRS.lookupIdentifier(schema.getCoordinateReferenceSystem(), false);
        BBOX bboxFilter = fac.bbox(name, minx, miny, maxx, maxy, srs);
       
                query.setFilter(bboxFilter);
                FeatureCollection<SimpleFeatureType, SimpleFeature>  features = source.getFeatures(query);
                this.table.update(features);
            }
            // update modified features
            if( modifiedBounds!=null ){
              double minx=modifiedBounds.getMinX();
        double miny=modifiedBounds.getMinY();
        double maxx=modifiedBounds.getMaxX();
        double maxy=modifiedBounds.getMaxY();
        String srs=CRS.lookupIdentifier(schema.getCoordinateReferenceSystem(), false);
        BBOX bboxFilter = fac.bbox(name, minx, miny, maxx, maxy, srs);

                query.setFilter(bboxFilter);
                FeatureCollection<SimpleFeatureType, SimpleFeature>  features = source.getFeatures(query);
                this.table.update(features);
            }       
View Full Code Here

Examples of org.openstreetmap.josm.data.osm.BBox

            // This needs to be a hash set because the searches
            // overlap a bit and can return duplicate nodes.
            nearbyNodeCache = null;
            List<LatLon> bounds = this.getBounds(dist);
            List<Node> found_nodes = endnodes_highway.search(new BBox(bounds.get(0), bounds.get(1)));
            found_nodes.addAll(endnodes.search(new BBox(bounds.get(0), bounds.get(1))));

            for (Node n : found_nodes) {
                if (!nearby(n, dist) || !n.getCoor().isIn(dsArea)) {
                    continue;
                }
View Full Code Here

Examples of org.zkoss.openlayers.strategy.BBOX

    styleMap.addUniqueValueRules("default", "STATE_FIPS", fips, null);

    // create a vector layer using the canvas renderer (where available)
    map.addLayer(new Vector(
        "States",
        toMap(pair("strategies", new Object[] { new BBOX() }),
          pair("protocol",
          new WFS(toMap(pair("version", "1.1.0"),
              pair("srsName", "EPSG:900913"),
              pair("url",
                "http://v2.suite.opengeo.org/geoserver/wfs"),
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.