``GRF004`` Valid EPSG prefix in coordinate reference system - v1 ======================================================================================================================================================================================================== .. parsed-literal:: 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 | :doc:`Given A model with Schema 'IFC4' or 'IFC4.3' ` 012 | 013 | Scenario Outline: Validate EPSG code in IfcCoordinateReferenceSystem 014 | 015 | :doc:`Given An .IfcCoordinateReferenceSystem. ` 016 | :doc:`Given Its attribute .\. ` 017 | :doc:`Given Its value ^starts^ with 'EPSG:' ` 018 | 019 | :doc:`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 | :doc:`Given An .IfcProjectedCRS. ` 030 | :doc:`Given Its attribute .VerticalDatum. ` 031 | :doc:`Given Its value ^starts^ with 'EPSG:' ` 032 | 033 | :doc:`Then The value must refer to a valid EPSG code ` 034 | .. rubric:: Version history .. list-table:: :header-rows: 1 * - Version - Tag - Date - Commit - Rule link * - v1 - :tag:`v0.7.7` - 2025-06-08 - :commit:`1b873abc87fa26cbd09fac2909d6ccea52f14546` - `view `_