Open adodo1 opened 6 years ago
Sorry about this! It's a known issue (see #100, #87, #42), but we don't have a fix for it yet.
[
{
"name": "water",
"features": [
{
"geometry":"POLYGON ((156 2, 156 0, 157 0, 160 0, 165 0, 170 0, 170 4, 170 30, 170 31, 170 34, 170 35, 170 61, 170 62, 171 62, 171 70, 170 70, 170 67, 170 66, 169 66, 169 62, 168 60, 166 60, 166 58, 164 58, 164 57, 163 57, 163 55, 162 55, 162 54, 161 54, 161 53, 160 53, 159 51, 157 51, 157 50, 156 50, 156 49, 155 49, 155 43, 155 42, 154 42, 154 41, 155 41, 155 39, 157 39, 157 38, 158 38, 158 37, 157 37, 157 35, 160 35, 160 34, 164 33, 164 32, 166 32, 166 30, 164 30, 164 29, 162 29, 162 30, 161 30, 161 29, 160 29, 160 28, 162 28, 163 26, 161 26, 161 25, 159 25, 159 24, 158 24, 158 26, 157 26, 157 23, 158 23, 158 22, 156 22, 156 19, 157 19, 157 18, 158 18, 158 16, 160 15, 159 13, 158 13, 158 12, 159 12, 159 11, 160 11, 161 9, 163 9, 163 8, 165 7, 165 6, 158 6, 158 5, 157 5, 157 2, 156 2), (171 2, 171 0, 177 0, 201 0, 201 14, 201 15, 202 15, 202 20, 202 21, 203 21, 203 34, 202 34, 202 33, 201 33, 201 34, 200 34, 198 34, 198 35, 196 35, 196 36, 194 36, 194 40, 193 40, 193 41, 194 41, 195 43, 194 43, 194 45, 192 45, 192 47, 190 46, 190 43, 189 45, 188 45, 188 44, 187 44, 187 45, 185 45, 185 44, 184 44, 184 42, 183 42, 183 40, 183 39, 183 38, 182 38, 181 38, 181 7, 185 7, 185 6, 186 7, 186 6, 194 6, 194 7, 195 7, 196 9, 198 9, 198 10, 199 10, 199 12, 200 12, 200 9, 199 9, 199 7, 197 6, 197 4, 196 4, 196 3, 189 3, 188 4, 182 4, 182 3, 181 3, 181 4, 177 4, 177 3, 176 3, 176 4, 173 4, 173 3, 171 2))",
"properties":{
"uid":123,
"foo":"bar",
"cat":"flew"
}
}
]
}
]
I found the reason of this
the input geometry is anti-clockwise, anti-clockwise
but the output geometry is clockwise, anti-clockwise
# the test code in this
https://github.com/adodo1/mapbox-vector-tile-demo
https://github.com/adodo1/mapbox-vector-tile-demo/blob/master/tiles/test.py
# this coordinates in file:
https://github.com/adodo1/mapbox-vector-tile-demo/blob/master/tiles/6_.json