Skip to content
This repository
Browse code

+ remove unused impl

  • Loading branch information...
commit e22b4224556a7b3683d9375b25594a64c24d97e1 1 parent 1f15012
Artem Pavlenko authored June 12, 2012

Showing 1 changed file with 0 additions and 28 deletions. Show diff stats Hide diff stats

  1. 28  src/metawriter.cpp
28  src/metawriter.cpp
@@ -274,34 +274,6 @@ void metawriter_json_stream::add_polygon(T & path,
274 274
     write_properties(feature, properties);
275 275
 }
276 276
 
277  
-
278  
-template <typename T>
279  
-void metawriter_json_stream::write_line_polygon(T & path, CoordTransform const& t, bool /*polygon*/){
280  
-    *f_ << " [";
281  
-    double x, y, last_x=0.0, last_y=0.0;
282  
-    unsigned cmd, last_cmd = SEG_END;
283  
-    path.rewind(0);
284  
-
285  
-    int polygon_count = 0;
286  
-    while ((cmd = path.vertex(&x, &y)) != SEG_END) {
287  
-        if (cmd == SEG_LINETO) {
288  
-            if (last_cmd == SEG_MOVETO) {
289  
-                //Start new polygon/line
290  
-                if (polygon_count++) *f_ << "], ";
291  
-                *f_ << "[";
292  
-                write_point(t, last_x, last_y, true);
293  
-            }
294  
-            *f_ << ",";
295  
-            write_point(t, x, y, true);
296  
-        }
297  
-        last_x = x;
298  
-        last_y = y;
299  
-        last_cmd = cmd;
300  
-    }
301  
-    *f_ << "]]";
302  
-}
303  
-
304  
-
305 277
 void metawriter_json_stream::set_map_srs(projection const& input_srs_)
306 278
 {
307 279
     if (trans_) delete trans_;

0 notes on commit e22b422

Please sign in to comment.
Something went wrong with that request. Please try again.