                                 text_var2 = PG_EXCEPTION_DETAIL,
                                 text_var3 = PG_EXCEPTION_HINT;
         raise WARNING 'ST_DistanceToNorthPole: exception occured: Msg: %, detail: %, hint: %', text_var1, text_var1, text_var3;
-        RETURN TRUE;
+        RETURN 1000000001;
 
 END
 $$ LANGUAGE 'plpgsql' IMMUTABLE;

    ELSE

        -- AntiMeridian is crossed
        IF ST_IsPolygonCW(geom_in) AND abs(ST_XMax(geom_in) - ST_XMin(geom_in)) > 180 THEN
            --RAISE NOTICE 'Polygon is CW and abs > 180';
            RETURN TRUE;
        ELSIF ST_Intersects(geom_in::geography, blade) THEN
            --RAISE NOTICE 'Polygon intersects blade';

                                text_var2 = PG_EXCEPTION_DETAIL,
                                text_var3 = PG_EXCEPTION_HINT;
        raise WARNING 'ST_SplitDateLine: exception occured: Msg: %, detail: %, hint: %', text_var1, text_var1, text_var3;
        RETURN geom_in;

END
$$ LANGUAGE 'plpgsql' IMMUTABLE;
