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

com.esri.core.geometry.ogc.OGCMultiCurve 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.MultiPath;

public abstract class OGCMultiCurve extends OGCGeometryCollection {
	public int numGeometries() {
		MultiPath mp = (MultiPath) getEsriGeometry();
		return mp.getPathCount();
	}

	public boolean isClosed() {
		MultiPath mp = (MultiPath) getEsriGeometry();
		for (int i = 0, n = mp.getPathCount(); i < n; i++) {
			if (!mp.isClosedPathInXYPlane(i))
				return false;
		}

		return true;
	}

	public double length() {
		return getEsriGeometry().calculateLength2D();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy