The units in which the length should be computed. Defaults to the unit of the spatial reference system. The unit name must
match the UNIT_NAME column of a row in the ST_UNITS_OF_MEASURE view where UNIT_TYPE is 'LINEAR'.
The ST_Perimeter method returns the length of the perimeter of a surface in the units identified by the unit-name parameter. If the surface is empty, then NULL is returned.
If the surface contains Z values, these are not considered when computing the perimeter of the geometry.
The perimeter of a polygon includes the length of all rings (exterior and interior).
Note
If the surface-expression is an empty geometry (ST_IsEmpty()=1), then this method returns NULL.