mapbox / tile-cover

Generate the minimum number of tiles to cover a geojson geometry
MIT License
189 stars 40 forks source link

issue with polygon #42

Closed morganherlocker closed 9 years ago

morganherlocker commented 9 years ago

blocky polygon over Mexico that seems to be causing issues downstream:

{
      "type": "Polygon",
      "coordinates": [
        [
          [
            -123.74855171115327,
            31.950713949178226
          ],
          [
            -118.125,
            31.950713949178226
          ],
          [
            -118.12471745286253,
            31.95074177764231
          ],
          [
            -118.12444576385307,
            31.950824193602298
          ],
          [
            -118.12419537382794,
            31.950958029859063
          ],
          [
            -118.12397590513537,
            31.951138143160318
          ],
          [
            -118.12379579183411,
            31.9513576118529
          ],
          [
            -118.12366195557735,
            31.951608001878032
          ],
          [
            -118.12357953961735,
            31.951879690887473
          ],
          [
            -118.12355171115327,
            31.952162238024954
          ],
          [
            -118.12355171115327,
            36.59644084422347
          ],
          [
            -84.37644828884673,
            36.59644084422347
          ],
          [
            -84.37644828884673,
            11.17985016255852
          ],
          [
            -118.12355171115327,
            11.17985016255852
          ],
          [
            -118.12355171115327,
            27.05912578437406
          ],
          [
            -118.12357953961735,
            27.05940833151154
          ],
          [
            -118.12366195557735,
            27.059680020520982
          ],
          [
            -118.12379579183411,
            27.059930410546116
          ],
          [
            -118.12397590513537,
            27.060149879238697
          ],
          [
            -118.12419537382794,
            27.060329992539952
          ],
          [
            -118.12444576385307,
            27.060463828796717
          ],
          [
            -118.12471745286253,
            27.060546244756704
          ],
          [
            -118.125,
            27.06057407322079
          ],
          [
            -123.74855171115327,
            27.06057407322079
          ],
          [
            -123.74855171115327,
            31.950713949178226
          ]
        ]
      ]
    }
morganherlocker commented 9 years ago

fix released in 2.1.0 https://github.com/mapbox/tile-cover/pull/43