org.maptalks.geojson.measure.impl.IdentityRuler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geojson4j Show documentation
Show all versions of geojson4j Show documentation
GeoJSON Serilization and mutual conversion with JSON .
The newest version!
package org.maptalks.geojson.measure.impl;
/**
* Created by fuzhen on 2015/7/2.
*/
public class IdentityRuler implements IRuler {
public double[] locate(double[] src, double xDistance, double yDistance) {
return new double[]{src[0] + xDistance, src[1] + yDistance};
}
public double computeGeodesicLength(double[] mlonlat1, double[] mlonlat2) {
return 0;
}
public double computeArea(double[][] rings) {
return 0;
}
public double computeGeodesicLength(double[][] rings) {
return 0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy