Examples of VectorLayer


Examples of org.geomajas.layer.VectorLayer

  private VectorLayer getVectorLayer(String layerId) throws GeomajasException {
    if (!securityContext.isLayerVisible(layerId)) {
      throw new GeomajasSecurityException(ExceptionCode.LAYER_NOT_VISIBLE, layerId, securityContext.getUserId());
    }
    VectorLayer layer = configurationService.getVectorLayer(layerId);
    if (null == layer) {
      throw new GeomajasException(ExceptionCode.VECTOR_LAYER_NOT_FOUND, layerId);
    }
    return layer;
  }
View Full Code Here

Examples of org.geomajas.layer.VectorLayer

  @SuppressWarnings("unchecked")
  public void saveOrUpdate(String layerId, CoordinateReferenceSystem crs, List<InternalFeature> oldFeatures,
      List<InternalFeature> newFeatures) throws GeomajasException {
    log.debug("saveOrUpdate start on layer {}", layerId);
    long ts = System.currentTimeMillis();
    VectorLayer layer = getVectorLayer(layerId);
    CrsTransform mapToLayer = geoService.getCrsTransform(crs, layer.getCrs());
    CrsTransform layerToMap = geoService.getCrsTransform(layer.getCrs(), crs);
    PipelineContext context = pipelineService.createContext();
    context.put(PipelineCode.LAYER_ID_KEY, layerId);
    context.put(PipelineCode.LAYER_KEY, layer);
    context.put(PipelineCode.CRS_TRANSFORM_KEY, mapToLayer);
    context.put(PipelineCode.CRS_BACK_TRANSFORM_KEY, layerToMap);
View Full Code Here

Examples of org.geomajas.puregwt.client.map.layer.VectorLayer

        RasterLayer rLayer = new RasterLayer((ClientRasterLayerInfo) layerInfo, viewPort, eventBus);
        layers.add(rLayer);
        eventBus.fireEvent(new LayerAddedEvent(rLayer));
        break;
      default:
        VectorLayer vLayer = new VectorLayer((ClientVectorLayerInfo) layerInfo, viewPort, eventBus);
        layers.add(vLayer);
        eventBus.fireEvent(new LayerAddedEvent(vLayer));
        break;
    }
  }
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.