Package org.geomajas.geometry

Examples of org.geomajas.geometry.CrsTransform


    context.put(PipelineCode.LAYER_ID_KEY, layerId);
    context.put(PipelineCode.LAYER_KEY, layer);
    context.put(PipelineCode.TILE_METADATA_KEY, tileMetadata);
    Crs crs = geoService.getCrs2(tileMetadata.getCrs());
    context.put(PipelineCode.CRS_KEY, crs);
    CrsTransform layerToMap = geoService.getCrsTransform(layer.getCrs(), crs);
    context.put(PipelineCode.CRS_TRANSFORM_KEY, layerToMap);
    Envelope layerExtent = dtoConverterService.toInternal(layer.getLayerInfo().getMaxExtent());
    Envelope tileExtent = geoService.transform(layerExtent, layerToMap);
    context.put(PipelineCode.TILE_MAX_EXTENT_KEY, tileExtent);
    InternalTile tile = new InternalTileImpl(tileMetadata.getCode(), tileExtent, tileMetadata.getScale());
View Full Code Here


  }

  /** @{inheritDoc} */
  public CrsTransform getCrsTransform(Crs sourceCrs, Crs targetCrs) throws GeomajasException {
    String key = getTransformKey(sourceCrs, targetCrs);
    CrsTransform transform = transformCache.get(key);
    if (null == transform) {
      MathTransform mathTransform = getBaseMathTransform(sourceCrs, targetCrs);

      // as there was no transformable area configured, try to build it instead
      Envelope transformableArea = null;
View Full Code Here

    if (sourceCrs == targetCrs) { // NOPMD
      // only works when the caching of the CRSs works
      return geometry;
    }

    CrsTransform crsTransform = getCrsTransform(sourceCrs, targetCrs);
    return transform(geometry, crsTransform);
  }
View Full Code Here

  public Geometry transform(Geometry geometry, String sourceCrs, String targetCrs) throws GeomajasException {
    if (sourceCrs.equals(targetCrs)) {
      return geometry;
    }

    CrsTransform crsTransform = getCrsTransform(sourceCrs, targetCrs);
    return transform(geometry, crsTransform);
  }
View Full Code Here

      target = (Crs) targetCrs;
    } else {
      target = getCrs2(getCodeFromCrs(targetCrs));
    }

    CrsTransform crsTransform = getCrsTransform(source, target);
    return transform(geometry, crsTransform);
  }
View Full Code Here

    if (sourceCrs == targetCrs) { // NOPMD
      // only works when the caching of the CRSs works
      return bbox;
    }

    CrsTransform crsTransform = getCrsTransform(sourceCrs, targetCrs);
    return transform(bbox, crsTransform);
  }
View Full Code Here

    if (sourceCrs.equals(targetCrs)) {
      // only works when the caching of the CRSs works
      return bbox;
    }

    CrsTransform crsTransform = getCrsTransform(sourceCrs, targetCrs);
    return transform(bbox, crsTransform);
  }
View Full Code Here

    if (sourceCrs == targetCrs) { // NOPMD
      // only works when the caching of the CRSs works
      return source;
    }

    CrsTransform crsTransform = getCrsTransform(sourceCrs, targetCrs);
    return transform(source, crsTransform);
  }
View Full Code Here

    if (sourceCrs.equals(targetCrs)) {
      // only works when the caching of the CRSs works
      return source;
    }

    CrsTransform crsTransform = getCrsTransform(sourceCrs, targetCrs);
    return transform(source, crsTransform);
  }
View Full Code Here

    if (sourceCrs == targetCrs) { // NOPMD
      // only works when the caching of the CRSs works
      return source;
    }

    CrsTransform crsTransform = getCrsTransform(sourceCrs, targetCrs);
    return transform(source, crsTransform);
  }
View Full Code Here

TOP

Related Classes of org.geomajas.geometry.CrsTransform

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.