com.esri.core.geometry.ogc.OGCCurve Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of esri-geometry-api Show documentation
Show all versions of esri-geometry-api Show documentation
The Esri Geometry API for Java enables developers to write custom applications for analysis of spatial data.
package com.esri.core.geometry.ogc;
import com.esri.core.geometry.MultiPoint;
import com.esri.core.geometry.Point;
public abstract class OGCCurve extends OGCGeometry {
public abstract double length();
public abstract OGCPoint startPoint();
public abstract OGCPoint endPoint();
public abstract boolean isClosed();
public boolean isRing() {
return isSimple() && isClosed();
}
@Override
public OGCGeometry boundary() {
if (isClosed())
return new OGCMultiPoint(new MultiPoint(getEsriGeometry()
.getDescription()), esriSR);// return empty multipoint;
else
return new OGCMultiPoint(startPoint(), endPoint());
}
}