GRF004 Valid EPSG prefix in coordinate reference system - v1

001 | @implementer-agreement
002 | @GRF
003 | @version1
004 | Feature: GRF004 - Valid EPSG prefix in coordinate reference system
005 | The rule verifies that if the name of a CRS starts with "EPSG:", it must refer to a valid code from the official EPSG geodetic parameter dataset.
006 | EPSG code validation is performed using the pyproj library, which includes a local copy of the official EPSG dataset (https://epsg.org) maintained by IOGP.
007 | For reference: https://pyproj4.github.io/pyproj/stable/api/database.html
008 |
009 |   Background:
010 |
011 |       Given A model with Schema 'IFC4' or 'IFC4.3'
012 |
013 |   Scenario Outline: Validate EPSG code in IfcCoordinateReferenceSystem
014 |
015 |       Given An .IfcCoordinateReferenceSystem.
016 |       Given Its attribute .<attribute>.
017 |       Given Its value ^starts^ with 'EPSG:'
018 |
019 |       Then The value must refer to a valid EPSG code
020 |
021 |       Examples:
022 |           | attribute     |
023 |           | Name          |
024 |           | GeodeticDatum |
025 |
026 |
027 |   Scenario: Validate EPSG code for the vertical datum of IfcProjectedCRS
028 |
029 |       Given An .IfcProjectedCRS.
030 |       Given Its attribute .VerticalDatum.
031 |       Given Its value ^starts^ with 'EPSG:'
032 |
033 |       Then The value must refer to a valid EPSG code
034 |

Version history

Version

Tag

Date

Commit

Rule link

v1

v0.7.7

2025-06-08

1b873abc

view