# STIsPseudoMultiCurve

STIsPseudoMultiCurve — Checks if supplied @p_geometry is a GeometryCollection object containing only LineString, CircularString and CompoundCurve elements.

Function Specification.

```Function [dbo].[STIsPseudoMultiCurve] (
@p_geometry geometry
)
Returns bit
```

Description.

This function checks if the supplied @p_geometry is a GeometryCollection object containing only LineString, CircularString and CompoundCurve elements.

One cannot create a MultiLineString object where an element is a CircularString or CompoundCurve.

Any attempt to do so causes the GeometryType to be set to GeometryCollection rather than MultiLineString or MultiCurve.

If these sorts of GeometryCollection objects are not supported, it is impossible to represent a MultiLine object with a mix of CircularCurve and LineString types.

The function returns 1 (true) if provided geometry is a pseudo MultiCurve (or MultiLineString).

Parameters.

```    @p_geometry (geometry) - GeometryCollection or MultiLineString.
```

Result.

This function returns 1 (true) if @_geometry is a pseudo MultiCurve, 0 (false) otherwise.

Example.

```-- This is how SQL Server merges a LineString and a CircularString that do not touch
--
SELECT geometry::STGeomFromText('LINESTRING(0 0 0 5.6, 5 5 0 6.3,5 10 0 9.6)',0)
.STUnion(
geometry::STGeomFromText('CIRCULARSTRING(-0.5 -0.5 0 5.6,-0.2 -0.4 0 5.5, -0.1 -0.1 0 5.65)',0)
).AsTextZM() as MultiCurve;
GO

MultiCurve
--------------------------------------------------------------------------------------------------
GEOMETRYCOLLECTION (LINESTRING (5 10, 5 5, 0 0), CIRCULARSTRING (-0.5 -0.5, -0.2 -0.4, -0.1 -0.1))

-- Note that STUnion removes Z and M ordinates

-- Now put result through STIsPseudoMultiCurve
--
SELECT [dbo].STIsPseudoMultiCurve] ( geometry::STGeomFromText('GEOMETRYCOLLECTION (LINESTRING (5 10, 5 5, 0 0), CIRCULARSTRING (-0.5 -0.5, -0.2 -0.4, -0.1 -0.1))',0)) as isMultiCurve
GO

isMultiCurve
------------
1
```
{"ft_lang_label":"__label__en","ft_lang_prob":0.5743145,"math_prob":0.8105858,"size":1904,"snap":"2019-51-2020-05","text_gpt3_token_len":522,"char_repetition_ratio":0.20789474,"word_repetition_ratio":0.15966387,"special_character_ratio":0.3130252,"punctuation_ratio":0.20234604,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96155643,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-23T20:25:44Z\",\"WARC-Record-ID\":\"<urn:uuid:f76a40ee-a824-48d9-8f58-41b40a753a9d>\",\"Content-Length\":\"62567\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e98e1211-f918-4265-ac46-d60fa18b2b71>\",\"WARC-Concurrent-To\":\"<urn:uuid:ba4869d8-752c-4a90-ba52-c0eccde081aa>\",\"WARC-IP-Address\":\"103.18.109.163\",\"WARC-Target-URI\":\"https://www.spdba.com.au/sql-server-stispseudomulticurve/\",\"WARC-Payload-Digest\":\"sha1:EGJIGJZJJYLIRGPPC47KIS3NYQH44MN7\",\"WARC-Block-Digest\":\"sha1:HA26XG6Z2YYMKJBCYBFJSG3RDUAVKWIO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579250613416.54_warc_CC-MAIN-20200123191130-20200123220130-00468.warc.gz\"}"}