ST_SplitDateline() small bugfix
ST_SplitDateline() small bugfix

Now it will also split geometries (some way incorect) with all/some points longtitude > 180 or < -180

Example:
{
	"type" : "Polygon",
	"coordinates" : [[[158.99931713956, -74.7882383924349], [158.999271007045, -75.7723170500044], [161.885083418942, -75.748297063159], [164.999271133772, -75.769613765603], [164.999271007045, -75.7723170500044], [165.177488019475, -75.7708336651951], [165.35574412877, -75.7720538332738], [165.355682285294, -75.7693504697167], [167.885083418942, -75.748297063159], [170.999271133772, -75.769613765603], [170.999271007045, -75.7723170500044], [171.177488019475, -75.7708336651951], [171.35574412877, -75.7720538332738], [171.355682285294, -75.7693504697167], [173.885083418942, -75.748297063159], [177.35574412877, -75.7720538332738], [177.335179458312, -74.873110502923], [180.764183844531, -74.8446850729216], [180.549890278467, -73.9039738852257], [180.359491891595, -72.9681037899419], [177.149183517994, -72.9944686973134], [174.36102445988, -72.9756368623076], [174.359491891595, -72.9681037899419], [171.149183517994, -72.9944686973134], [168.36102445988, -72.9756368623076], [168.359491891595, -72.9681037899419], [164.999387286927, -72.9956989105194], [164.999354104958, -73.8893636297556], [161.773001932108, -73.8674721252936], [161.586248427518, -74.7668023100113], [158.99931713956, -74.7882383924349], [158.99931713956, -74.7882383924349]]]
}

After split should look like:
{
	"type" : "MultiPolygon",
	"coordinates" : [[[[180, -74.8510199304879], [177.335179458312, -74.873110502923], [177.35574412877, -75.7720538332738], [173.885083418942, -75.748297063159], [171.355682285294, -75.7693504697167], [171.35574412877, -75.7720538332738], [171.177488019475, -75.7708336651951], [170.999271007045, -75.7723170500044], [170.999271133772, -75.769613765603], [167.885083418942, -75.748297063159], [165.355682285294, -75.7693504697167], [165.35574412877, -75.7720538332738], [165.177488019475, -75.7708336651951], [164.999271007045, -75.7723170500044], [164.999271133772, -75.769613765603], [161.885083418942, -75.748297063159], [158.999271007045, -75.7723170500044], [158.99931713956, -74.7882383924349], [161.586248427518, -74.7668023100113], [161.773001932108, -73.8674721252936], [164.999354104958, -73.8893636297556], [164.999387286927, -72.9956989105194], [168.359491891595, -72.9681037899419], [168.36102445988, -72.9756368623076], [171.149183517994, -72.9944686973134], [174.359491891595, -72.9681037899419], [174.36102445988, -72.9756368623076], [177.149183517994, -72.9944686973134], [180, -72.9710561450804], [180, -74.8510199304879]]], [[[-180, -72.9710561450804], [-179.640508108405, -72.9681037899419], [-179.450109721533, -73.9039738852257], [-179.235816155469, -74.8446850729216], [-180, -74.8510199304879], [-180, -72.9710561450804]]]]
}

jjrom/resto,jjrom/resto,RailwayMan/resto,RailwayMan/resto