R_GE_R_TOO_FEW_POINTS#
Requirement#
| ID | R_GE_R_TOO_FEW_POINTS |
|---|---|
| Description | A ring must have at least 3 points. For GML rings this requirement ignores the fact that the first and the last point are the same (see R_GE_R_NOT_CLOSED). According to this requirement a GML ring is valid if it contains at least 3 distinct points, but it is then not closed (the requirement R_GE_R_NOT_CLOSED is not fulfilled). |
| Parameter minVertexDistance | Points can be considered the same despite (small) distances, see Vertex Requirement |
| Error code | GE_R_TOO_FEW_POINTS |
For example, this ring is erroneous:
<gml:LinearRing>
<gml:pos>0.0 0.0 0.0</gml:pos>
<gml:pos>1.0 0.0 0.0</gml:pos>
<gml:pos>0.0 0.0 0.0</gml:pos>
</gml:LinearRing>
Valid rings:
(This ring is not closed, but has enough distinct points to satisfy this requirement.)
<gml:LinearRing>
<gml:pos>0.0 0.0 0.0</gml:pos>
<gml:pos>1.0 0.0 0.0</gml:pos>
<gml:pos>0.0 1.0 0.0</gml:pos>
</gml:LinearRing>
<gml:LinearRing>
<gml:pos>0.0 0.0 0.0</gml:pos>
<gml:pos>1.0 0.0 0.0</gml:pos>
<gml:pos>0.0 1.0 0.0</gml:pos>
<gml:pos>0.0 0.0 0.0</gml:pos>
</gml:LinearRing>
Check#
| ID | C_GE_R_TOO_FEW_POINTS |
|---|---|
| Requirement ID | R_GE_R_TOO_FEW_POINTS |
| Preconditions | R_SC_SCHEMA_VALIDATION, R_GE_R_NOT_CLOSED |
| Description | Ring must contain at least 3 distinct points |
| Error code | GE_R_TOO_FEW_POINTS |
Test cases#
| Test case ID | CityGML model | Expected result |
|---|---|---|
| GE-gml:LR-0001-T0001 | SimpleSolid_SrefBS.gml | OK |
| GE-gml:LR-0001-T0002 | SimpleSolid_SrefBS-GE-gml-LR-0001-T0001.gml | GE_R_TOO_FEW_POINTS in ring: _Simple_BD.1_PG.6_LR.1 |
| GE-gml:LR-0001-T0003 | SimpleSolid_SrefBS-GE-gml-LR-0001-T0002.gml | Check not executed because GE_R_NOT_CLOSED ring _Simple_BD.1_PG.6_LR.1 is not closed, but has 3 points. |