thomersch / scapegoat

0 stars 0 forks source link

Remove trailing 0s from positions #9

Closed grischard closed 4 years ago

grischard commented 4 years ago

One tile I'm looking at contains:

"geometry": {
                "type": "Polygon",
                "coordinates": [
                    [
                        [
                            5.62500000,
                            48.92249926
                        ],
                        [
                            8.43750000,
                            48.92249926
                        ],
                        [
                            8.43750000,
                            50.73645514
                        ],
                        [
                            5.62500000,
                            50.73645514
                        ],
                        [
                            5.62500000,
                            48.92249926
                        ]
                    ]
                ]
            }

We should have 5.625 instead of 5.62500000.

thomersch commented 4 years ago

This bug is presented to you by my premature optimization.

thomersch commented 4 years ago

Fixed.