Package org.geomajas.geometry

Examples of org.geomajas.geometry.Crs


    String[] layerIds = request.getLayerIds();
    Geometry location = converter.toInternal(request.getLocation());
    int queryType = request.getQueryType();
    double ratio = request.getRatio();
    int searchType = request.getSearchType();
    Crs crs = geoService.getCrs2(request.getCrs());

    // Check if a buffer should be added around the location:
    Geometry geometry = location;
    if (request.getBuffer() > 0) {
      geometry = location.buffer(request.getBuffer());
View Full Code Here


      }
    }
    layers = tempLayers.toArray(new String[tempLayers.size()]);

    Layer<?> layer;
    Crs targetCrs = geoService.getCrs2(request.getCrs());

    if (layers.length == 0) {
      // return empty bbox
      response.setBounds(new Bbox());
    } else {
View Full Code Here

  public TransformGeometryResponse getEmptyCommandResponse() {
    return new TransformGeometryResponse();
  }

  public void execute(TransformGeometryRequest request, TransformGeometryResponse response) throws Exception {
    Crs sourceCrs = geoService.getCrs2(request.getSourceCrs());
    Crs targetCrs = geoService.getCrs2(request.getTargetCrs());
    CrsTransform transform = geoService.getCrsTransform(sourceCrs, targetCrs);

    if (request.getBounds() != null) {
      Envelope source = converter.toInternal(request.getBounds());
      Envelope target = geoService.transform(source, transform);
View Full Code Here

TOP

Related Classes of org.geomajas.geometry.Crs

Copyright © 2018 www.massapicom. 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.