All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.esri.core.geometry.ogc.OGCCurve Maven / Gradle / Ivy

Go to download

The Esri Geometry API for Java enables developers to write custom applications for analysis of spatial data.

There is a newer version: 2.2.4
Show newest version
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());
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy