Fix the coordinate bound checks in the OpenSearch Geo XSD

This commit is contained in:
~lucidiot 2021-11-19 23:38:46 +01:00
parent c2f0556be8
commit 744047ab00
1 changed files with 2 additions and 2 deletions

View File

@ -41,13 +41,13 @@ This file was derived from the OpenSearch Geo Extension 1.0 Draft 2 at
<xs:simpleType name="Box">
<xs:restriction base="xs:string">
<xs:pattern value="[+-]?(?:1(?:[0-7]\d|80)|0?\d{2})(?:.\d+)?,\s*[+-]?(?:[0-8][0-9]|90)(?:.\d+)?,\s*[+-]?(?:1(?:[0-7]\d|80)|0?\d{2})(?:.\d+)?,\s*[+-]?(?:[0-8][0-9]|90)(?:.\d+)?" />
<xs:pattern value="[+-]?(?:90(?:\.0+)?|[0-8]?\d(?:\.\d+)),[+-]?(?:180(?:\.0+)?|(?:1[0-7]|0?\d)?\d(?:\.\d+)?),[+-]?(?:90(?:\.0+)?|[0-8]?\d(?:\.\d+)),[+-]?(?:180(?:\.0+)?|(?:1[0-7]|0?\d)?\d(?:\.\d+)?)" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Polygon">
<xs:restriction base="xs:string">
<xs:pattern value="(?:[+-]?(?:[0-8][0-9]|90)(?:.\d+)?,[+-]?(?:1(?:[0-7]\d|80)|0?\d{2})(?:.\d+)?,)*[+-]?(?:[0-8][0-9]|90)(?:.\d+)?,[+-]?(?:1(?:[0-7]\d|80)|0?\d{2})(?:.\d+)?" />
<xs:pattern value="(?:[+-]?(?:90(?:\.0+)?|[0-8]?\d(?:\.\d+)),[+-]?(?:180(?:\.0+)?|(?:1[0-7]|0?\d)?\d(?:\.\d+)?),)*[+-]?(?:90(?:\.0+)?|[0-8]?\d(?:\.\d+)),[+-]?(?:180(?:\.0+)?|(?:1[0-7]|0?\d)?\d(?:\.\d+)?)" />
</xs:restriction>
</xs:simpleType>