---
keywords: gml:LinearRing
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/dev/maps/ymapsml/doc/en/llms.txt


# gml:LinearRing

### Diagram

![](../_images/LinearRing.png)

### Description {#desc}

Specifies the "Linear ring" type of geo object.

This tag contains a description of the boundaries of a linear ring. Can be used to set the exterior and interior boundaries of polygons (see [gml:Polygon](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-Polygon.md)).

A linear ring is a simple geometric shape bounded by four or more points connected by a series of segments. The coordinates of the ring's first and last points must be the same.

{% note tip %}

In most cases, a linear ring can be considered a closed polyline (see [gml: LineString](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-LineString.md)).

{% endnote %}

Points of the ring can be set using multiple [gml: pos](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-pos.md) tags or the [gml: posList](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-posList.md)tag.

### Contains:

[gml:description](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-description.md), [gml:metaDataProperty](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-metaDataProperty.md), [gml:name](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-name.md), [gml:pos](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-pos.md), [gml:posList](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-posList.md)

### May be included in elements by substitutions:

[gml:exterior](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-exterior.md), [gml:interior](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/gml-interior.md), [ymaps:GeoObject](https://yandex.ru/dev/maps/ymapsml/doc/en/ref/reference/ymaps-GeoObject.md)

> ### gml:LinearRing
> 
> Part of a YMapsML document that describes the exterior edge of a quadrilateral:
> 
> ```xml
> <gml:LinearRing>
>  <gml:posList>37.178027 55.486953 38.040535 55.486953 38.040535 56.018499 37.178027 56.018499 37.178027 55.486953</gml:posList>
> </gml:LinearRing>
> ```

