Better handling of features that cross the antimeridian

This commit is contained in:
Eric Fischer
2015-12-03 13:12:34 -08:00
parent 53471521f3
commit c832b34160
4 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ void parse_geometry(int t, json_object *j, unsigned *bbox, long long *fpos, FILE
}
} else {
if (j->length >= 2 && j->array[0]->type == JSON_NUMBER && j->array[1]->type == JSON_NUMBER) {
unsigned x, y;
long long x, y;
double lon = j->array[0]->number;
double lat = j->array[1]->number;
latlon2tile(lat, lon, 32, &x, &y);