def METHOD_NAME(self) -> napi.GeometryFormat:
    """ Get the requested geometry output format in a API-compatible
        format.
    """
    if not self.polygon_output:
        return napi.GeometryFormat.NONE
    if self.polygon_output == 'geojson':
        return napi.GeometryFormat.GEOJSON
    if self.polygon_output == 'kml':
        return napi.GeometryFormat.KML
    if self.polygon_output == 'svg':
        return napi.GeometryFormat.SVG
    if self.polygon_output == 'text':
        return napi.GeometryFormat.TEXT
    try:
        return napi.GeometryFormat[self.polygon_output.upper()]
    except KeyError as exp:
        raise UsageError(f"Unknown polygon output format '{self.polygon_output}'.") from exp