From dc3c6138d140dfaf459e424e01ff912845c9e85c Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Wed, 15 Oct 2014 16:15:24 -0700 Subject: [PATCH] Fix failure to close polygons. --- geojson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geojson.c b/geojson.c index fbfb067..fe629af 100644 --- a/geojson.c +++ b/geojson.c @@ -212,7 +212,7 @@ void parse_geometry(int t, json_object *j, unsigned *bbox, long long *fpos, FILE } } - if (mb_geometry[t] == GEOM_POLYGON) { + if (mb_geometry[t] == VT_POLYGON) { serialize_int(out, VT_CLOSEPATH, fpos, fname, source); } }