Package org.geotools.geometry.jts
Class MultiSurface
Object
Geometry
GeometryCollection
MultiPolygon
MultiSurface
- All Implemented Interfaces:
Serializable,Cloneable,Comparable,CurvedGeometry<MultiPolygon>,MultiCurvedGeometry<MultiPolygon>,Polygonal
A subclass of
MultiPolygon that can host also CurvePolygon and will linearize if needed- Author:
- Andrea Aime - GeoSolutions
- See Also:
-
Field Summary
Fields inherited from class GeometryCollection
geometriesFields inherited from class Geometry
envelope, factory, SRID, TYPECODE_GEOMETRYCOLLECTION, TYPECODE_LINEARRING, TYPECODE_LINESTRING, TYPECODE_MULTILINESTRING, TYPECODE_MULTIPOINT, TYPECODE_MULTIPOLYGON, TYPECODE_POINT, TYPECODE_POLYGON, TYPENAME_GEOMETRYCOLLECTION, TYPENAME_LINEARRING, TYPENAME_LINESTRING, TYPENAME_MULTILINESTRING, TYPENAME_MULTIPOINT, TYPENAME_MULTIPOLYGON, TYPENAME_POINT, TYPENAME_POLYGON -
Constructor Summary
ConstructorsConstructorDescriptionMultiSurface(List<Polygon> components, GeometryFactory factory, double tolerance) MultiSurface(Polygon[] polygons, GeometryFactory factory, double tolerance) -
Method Summary
Modifier and TypeMethodDescriptionintReturns the dimension of the geometry without forcing access to the coordinate sequencedoubleThe default linearization toleranceLinearizes the geometry using the built-in linearization tolerancelinearize(double tolerance) Linearizes the geometry using the provided tolerance, the result is guaranteed to be less than tolerance away from the curved geometry unless the number of points needed to linearize the geometry exceeds the build-in per quadrant maximum, seeCircularArc.MAX_SEGMENTS_QUADRANTParallel method toGeometry.toText()that will output the geometry as curved instead of as linearMethods inherited from class MultiPolygon
equalsExact, getBoundary, getBoundaryDimension, getDimension, getTypeCode, hasDimension, reverse, reverseInternalMethods inherited from class GeometryCollection
apply, apply, apply, apply, clone, compareToSameClass, compareToSameClass, computeEnvelopeInternal, getArea, getCoordinate, getCoordinates, getGeometryN, getLength, getNumGeometries, getNumPoints, isEmpty, normalizeMethods inherited from class Geometry
buffer, buffer, buffer, compare, compareTo, compareTo, contains, convexHull, copy, coveredBy, covers, crosses, difference, disjoint, distance, equal, equals, equals, equalsExact, equalsNorm, equalsTopo, geometryChanged, geometryChangedAction, getCentroid, getEnvelope, getEnvelopeInternal, getFactory, getInteriorPoint, getPrecisionModel, getSRID, getUserData, hashCode, hasNonEmptyElements, hasNullElements, intersection, intersects, isEquivalentClass, isGeometryCollection, isRectangle, isSimple, isValid, isWithinDistance, norm, overlaps, relate, relate, setSRID, setUserData, symDifference, toString, toText, touches, union, union, within
-
Constructor Details
-
MultiSurface
-
MultiSurface
-
-
Method Details
-
linearize
Description copied from interface:CurvedGeometryLinearizes the geometry using the built-in linearization tolerance- Specified by:
linearizein interfaceCurvedGeometry<MultiPolygon>
-
linearize
Description copied from interface:CurvedGeometryLinearizes the geometry using the provided tolerance, the result is guaranteed to be less than tolerance away from the curved geometry unless the number of points needed to linearize the geometry exceeds the build-in per quadrant maximum, seeCircularArc.MAX_SEGMENTS_QUADRANT- Specified by:
linearizein interfaceCurvedGeometry<MultiPolygon>- Parameters:
tolerance- Linearization tolerance, should be zero or positive. When zero is used, the maximum number of allowed linearization points will be used, seeCircularArc.MAX_SEGMENTS_QUADRANT
-
toCurvedText
Description copied from interface:CurvedGeometryParallel method toGeometry.toText()that will output the geometry as curved instead of as linear- Specified by:
toCurvedTextin interfaceCurvedGeometry<MultiPolygon>
-
getTolerance
public double getTolerance()Description copied from interface:CurvedGeometryThe default linearization tolerance- Specified by:
getTolerancein interfaceCurvedGeometry<MultiPolygon>
-
getCoordinatesDimension
public int getCoordinatesDimension()Description copied from interface:CurvedGeometryReturns the dimension of the geometry without forcing access to the coordinate sequence- Specified by:
getCoordinatesDimensionin interfaceCurvedGeometry<MultiPolygon>
-
copyInternal
- Overrides:
copyInternalin classMultiPolygon
-
getGeometryType
- Overrides:
getGeometryTypein classMultiPolygon
-