From a3c4813d73d885092c70311f89fa4c64a372be10 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Tue, 12 Jun 2012 13:56:13 +0100 Subject: [PATCH] + remove unused impl --- src/metawriter.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/metawriter.cpp b/src/metawriter.cpp index cb892cddf..a20d67db4 100644 --- a/src/metawriter.cpp +++ b/src/metawriter.cpp @@ -274,34 +274,6 @@ void metawriter_json_stream::add_polygon(T & path, write_properties(feature, properties); } - -template -void metawriter_json_stream::write_line_polygon(T & path, CoordTransform const& t, bool /*polygon*/){ - *f_ << " ["; - double x, y, last_x=0.0, last_y=0.0; - unsigned cmd, last_cmd = SEG_END; - path.rewind(0); - - int polygon_count = 0; - while ((cmd = path.vertex(&x, &y)) != SEG_END) { - if (cmd == SEG_LINETO) { - if (last_cmd == SEG_MOVETO) { - //Start new polygon/line - if (polygon_count++) *f_ << "], "; - *f_ << "["; - write_point(t, last_x, last_y, true); - } - *f_ << ","; - write_point(t, x, y, true); - } - last_x = x; - last_y = y; - last_cmd = cmd; - } - *f_ << "]]"; -} - - void metawriter_json_stream::set_map_srs(projection const& input_srs_) { if (trans_) delete trans_;