org.maptalks.geojson.Point 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;
import java.util.Arrays;
public class Point extends Geometry {
private double[] coordinates;
public Point() {
super();
}
public Point(double [] coordinates) {
super();
this.setCoordinates(coordinates);
}
public double[] getCoordinates() {
return coordinates;
}
public void setCoordinates(double[] coordinates) {
this.coordinates = coordinates;
}
@Override
public boolean equals(Object obj) {
if (!(obj instanceof Point)) {
return false;
}
Point o = ((Point) obj);
return Arrays.equals(this.coordinates, o.coordinates);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy