source: subversion/applications/editors/osm-editor/qt3/Polygon.cpp @ 16590

Last change on this file since 16590 was 1158, checked in by nick, 13 years ago

moved current version to qt3 directory in preparation for qt4

File size: 473 bytes
Line 
1#include "Polygon.h"
2#include <iostream>
3using std::endl;
4
5namespace OpenStreetMap
6{
7
8void Polygon::toGPX(std::ostream& outfile)
9{
10        outfile << "<extensions>" << endl;
11        outfile << "<polygon>" << endl << "<type>"<<
12                        type<<"</type>"<<endl;
13
14        for(vector<EarthPoint>::iterator i=points.begin(); i!=points.end(); i++)
15        {
16                outfile << "<polypt lat=\"" << i->y << "\" lon=\"" 
17                                << i->x << "\" />" << endl;
18        }
19
20        outfile << "</polygon>" << endl << "</extensions>" << endl;
21}
22
23}
Note: See TracBrowser for help on using the repository browser.