org.geotools.geometry.jts

## Class MultiCurve

• Object
• Geometry
• GeometryCollection
• MultiLineString
• MultiCurve
• All Implemented Interfaces:
Serializable, Cloneable, Comparable, CurvedGeometry<MultiLineString>, MultiCurvedGeometry<MultiLineString>, Lineal

```public class MultiCurve
extends MultiLineString
implements MultiCurvedGeometry<MultiLineString>```
A subclass of multi line string that can host also curves and will linearize if needed
Author:
Andrea Aime - GeoSolutions
Serialized Form

• ### Fields inherited from class GeometryCollection

`geometries`
• ### Fields 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

Constructors
Constructor and Description
```MultiCurve(List<LineString> components, GeometryFactory factory, double tolerance)```
• ### Method Summary

All Methods
Modifier and Type Method and Description
`int` `getCoordinatesDimension()`
Returns the dimension of the geometry without forcing access to the coordinate sequence
`double` `getTolerance()`
The default linearization tolerance
`MultiLineString` `linearize()`
Linearizes the geometry using the built-in linearization tolerance
`MultiLineString` `linearize(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, see `CircularArc.MAX_SEGMENTS_QUADRANT`
`String` `toCurvedText()`
Parallel method to `Geometry.toText()` that will output the geometry as curved instead of as linear
• ### Methods inherited from class MultiLineString

`copyInternal, equalsExact, getBoundary, getBoundaryDimension, getDimension, getGeometryType, getTypeCode, isClosed, reverse, reverseInternal`
• ### Methods inherited from class GeometryCollection

`apply, apply, apply, apply, clone, compareToSameClass, compareToSameClass, computeEnvelopeInternal, getArea, getCoordinate, getCoordinates, getGeometryN, getLength, getNumGeometries, getNumPoints, isEmpty, normalize`
• ### Methods 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`
• ### Methods inherited from class Object

`finalize, getClass, notify, notifyAll, wait, wait, wait`
• ### Constructor Detail

• #### MultiCurve

```public MultiCurve(List<LineString> components,
GeometryFactory factory,
double tolerance)```
• ### Method Detail

• #### linearize

`public MultiLineString linearize()`
Description copied from interface: `CurvedGeometry`
Linearizes the geometry using the built-in linearization tolerance
Specified by:
`linearize` in interface `CurvedGeometry<MultiLineString>`
• #### linearize

`public MultiLineString linearize(double tolerance)`
Description copied from interface: `CurvedGeometry`
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, see `CircularArc.MAX_SEGMENTS_QUADRANT`
Specified by:
`linearize` in interface `CurvedGeometry<MultiLineString>`
Parameters:
`tolerance` - Linearization tolerance, should be zero or positive. When zero is used, the maximum number of allowed linearization points will be used, see `CircularArc.MAX_SEGMENTS_QUADRANT`
• #### toCurvedText

`public String toCurvedText()`
Description copied from interface: `CurvedGeometry`
Parallel method to `Geometry.toText()` that will output the geometry as curved instead of as linear
Specified by:
`toCurvedText` in interface `CurvedGeometry<MultiLineString>`
• #### getTolerance

`public double getTolerance()`
Description copied from interface: `CurvedGeometry`
The default linearization tolerance
Specified by:
`getTolerance` in interface `CurvedGeometry<MultiLineString>`
• #### getCoordinatesDimension

`public int getCoordinatesDimension()`
Description copied from interface: `CurvedGeometry`
Returns the dimension of the geometry without forcing access to the coordinate sequence
Specified by:
`getCoordinatesDimension` in interface `CurvedGeometry<MultiLineString>`
{"ft_lang_label":"__label__en","ft_lang_prob":0.61627114,"math_prob":0.673503,"size":3277,"snap":"2022-27-2022-33","text_gpt3_token_len":747,"char_repetition_ratio":0.15704247,"word_repetition_ratio":0.077922076,"special_character_ratio":0.15807141,"punctuation_ratio":0.26327944,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9794065,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-06T23:06:28Z\",\"WARC-Record-ID\":\"<urn:uuid:6c0fa1ce-4571-4cc2-b203-e90de83e5abb>\",\"Content-Length\":\"23063\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:03abcbb6-cc56-43de-9d7c-d1b67cba1a6d>\",\"WARC-Concurrent-To\":\"<urn:uuid:5350b0d0-b2c3-46ce-a07d-04ee002a1ab6>\",\"WARC-IP-Address\":\"140.211.15.3\",\"WARC-Target-URI\":\"https://docs.geotools.org/stable/javadocs/org/geotools/geometry/jts/MultiCurve.html\",\"WARC-Payload-Digest\":\"sha1:F3IQOGP5B2MCU2Y2QPFH57YBIHPKYKYT\",\"WARC-Block-Digest\":\"sha1:TOOCWOXM7VOMLI5FO5FJ7QMQ3SW3HRV2\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104678225.97_warc_CC-MAIN-20220706212428-20220707002428-00624.warc.gz\"}"}