Computes the perimeter of the multi-surface in the specified units.
SELECT NEW ST_MultiSurface( NEW ST_Polygon('Polygon((0 0, 1 0, 1 1,0 1, 0 0))') , NEW ST_Polygon('Polygon((10 10, 20 10, 20 20,10 20, 10 10))') ) .ST_Perimeter()
The following example creates a multi-surface containing two polygons and an example unit of measure (example_unit_halfmetre). The ST_Perimeter method finds the length of the perimeter, returning the value 88.0.
CREATE SPATIAL UNIT OF MEASURE IF NOT EXISTS "example_unit_halfmetre" TYPE LINEAR CONVERT USING .5; SELECT NEW ST_MultiSurface( NEW ST_Polygon('Polygon((0 0, 1 0, 1 1,0 1, 0 0))') , NEW ST_Polygon('Polygon((10 10, 20 10, 20 20,10 20, 10 10))') ) .ST_Perimeter('example_unit_halfmetre');
SQL/MM (ISO/IEC 13249-3: 2006) 9.5.4