ungarj / mapchete

Tile-based geodata processing using rasterio & Fiona

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

more sencible bounds from geometries around antimerian (add a flag)

Scartography opened this issue · comments

Some geometries may stretch across the globe when hitting antimeridian and will then not be properly in the bounds of the process area. Add a check or a flag to wrap these around and split them.

  • {
    "type" : "Polygon",
    "coordinates" : [ [ [ 179.84209263611973, 66.68718991362921 ], [ -179.04432230152517, 66.7055905335068 ], [ -178.96620770878562, 65.72115713058994 ], [ 178.93922617949963, 65.67974995906643 ], [ 179.69500738745725, 66.52324086208313 ], [ 179.84209263611973, 66.68718991362921 ] ] ]
    }
  • def from_inp(cls, inp, strict=True):

this issue is caused by code not from mapchete core