Package de.fhpotsdam.unfolding.geo

Examples of de.fhpotsdam.unfolding.geo.Transformation


*/
public class AcetateProvider {
  public static abstract class GenericAcetateProvider extends AbstractMapTileUrlProvider {

    public GenericAcetateProvider() {
      super(new MercatorProjection(26, new Transformation(1.068070779e7, 0.0, 3.355443185e7, 0.0,
          -1.068070890e7, 3.355443057e7)));
    }
View Full Code Here


*/
public class OpenWeatherProvider {
  public static abstract class GenericOpenWeatherMapProvider extends AbstractMapTileUrlProvider {

    public GenericOpenWeatherMapProvider() {
      super(new MercatorProjection(26, new Transformation(1.068070779e7, 0.0, 3.355443185e7, 0.0,
          -1.068070890e7, 3.355443057e7)));
    }
View Full Code Here

  private String carto = null;
  public static Logger log = Logger.getLogger(CartoDBProvider.class);
  public AbstractMapProvider masterProvider = null;

  public CartoDBProvider(String account, String dbTable) {
    super(new MercatorProjection(26, new Transformation(1.068070779e7, 0.0f, 3.355443185e7, 0.0,
        -1.068070890e7, 3.355443057e7)));
    this.subdomain = account;
    this.table = dbTable;
  }
View Full Code Here

    // from MercatorProjection#rawProject
    PVector point2 = new PVector(point1.x, PApplet.log(PApplet.tan(0.25f * PApplet.PI + 0.5f * point1.y)));
    System.out.printf("\tpoint2 : x = %.9f y = %.9f \n", point2.x, point2.y);

    // from AbstractProjection#project
    Transformation transformation = new Transformation(1.068070779e7f, 0.0f, 3.355443185e7f, 0.0f,
        -1.068070890e7f, 3.355443057e7f);
    PVector point3 = transformation.transform(point2);
    System.out.printf("\tpoint3a : x = %.9f y = %.9f \n", point3.x, point3.y);

    double x = 1.068070779e7 * point2.x + 0.0 * point2.y + 3.355443185e7;
    double y = 0.0 * point2.x + -1.068070890e7 * point2.y + 3.355443057e7;
    System.out.printf("\tpoint3b : x = %.9f y = %.9f \n", x, y);
View Full Code Here

TOP

Related Classes of de.fhpotsdam.unfolding.geo.Transformation

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.