Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
ISO 25178-72:2017, amended in 2020, defines the XML-based x3p file format for the storage and exchange of areal surface texture data. This standard addresses a critical need in surface metrology: the lack of a universal, open, and vendor-neutral format for three-dimensional surface topography data. The x3p format enables seamless data exchange between different measurement instruments, analysis software, and manufacturing systems.
The x3p format is built upon the XML schema originally developed under the openGPS initiative by the Physikalisch-Technische Bundesanstalt (PTB). It extends the earlier ISO 5436-2 format for profile data to support full three-dimensional areal datasets, making it the de facto standard for surface texture data exchange in both research and industrial applications.
An x3p file is stored as a ZIP container containing an XML header file and optional binary data files. The XML header defined by ISO 25178-72 contains metadata describing the measurement, while surface data can be stored either as XML text or as compressed binary arrays within the ZIP package.
The standard defines two coordinate systems:
| Coordinate System | Description | Usage |
|---|---|---|
| Global Coordinate System | Three-dimensional, right-handed system defining the position and orientation of the original point cloud | Determines the physical location of the measured surface in real-world coordinates |
| View Coordinate System | Three-dimensional, right-handed system in which stored point coordinates are defined | Contains the actual measurement data with optional rotation and translation from global coordinates |
The Amendment 1 (2020) clarified the coordinate transformation between view and global coordinates using Formula (2), which applies rotation matrix elements r11 through r33, scaling factors Ix/Iy/Iz, and offset values Ox/Oy/Oz to convert dimensionless stored values into physical coordinates in metres.
The format supports two axis types: incremental (type “I”) and absolute (type “A”). X and Y coordinates can use either type, but Z coordinates must always be absolute. Incremental axes store a single spacing value and assume regular point spacing, significantly reducing file size for raster-scanned measurements. Absolute axes store explicit coordinates for each point, providing flexibility for irregular measurement grids.
The x3p format organizes data into a matrix structure defined by SizeX, SizeY, and SizeZ elements. For typical areal surface measurements, SizeZ equals 1 (single surface layer), while SizeX and SizeY define the raster dimensions. The format supports multiple data layers for applications such as multi-spectral imaging or time-series surface evolution studies.
Binary data within the x3p container can be encoded as packed arrays optimized for storage efficiency. The binary validity file format uses a packed bit array to mark valid and invalid data points, with byte and bit positions calculated using the standard’s indexing formulae.
A particularly powerful feature is the VendorSpecificID mechanism for vendor extensions. Vendors can define custom XML elements and place them in the ZIP container under a unique URI-based path. This ensures full forward and backward compatibility — software that does not recognize a vendor extension can safely ignore it while still reading all standard x3p data.
When implementing x3p support in measurement software or selecting an x3p-compatible instrument, consider the following design aspects:
Data Volume Management: A single areal measurement at high resolution can generate millions of data points. Use incremental axis types where possible and leverage the binary encoding options to minimize file sizes without sacrificing precision.
Metadata Completeness: The standard defines comprehensive metadata fields including instrument identification, calibration dates, probing system characteristics, and comments. Populating these fields thoroughly is essential for data traceability and regulatory compliance in industries such as aerospace and medical devices.
Version Control: The Revision record must contain “ISO25178-72:2017/D AM1” for files conforming to the amended standard. Always verify the revision string when exchanging files between different software packages to avoid compatibility issues.