Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

+ remove unused impl

  • Loading branch information...
commit e22b4224556a7b3683d9375b25594a64c24d97e1 1 parent 1f15012
Artem Pavlenko artemp authored
Showing with 0 additions and 28 deletions.
  1. +0 −28 src/metawriter.cpp
28 src/metawriter.cpp
View
@@ -274,34 +274,6 @@ void metawriter_json_stream::add_polygon(T & path,
write_properties(feature, properties);
}
-
-template <typename T>
-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_;
Please sign in to comment.
Something went wrong with that request. Please try again.