1
0
Fork 0

Adapt to SG changes

This commit is contained in:
Christian Schmitt 2012-08-26 22:20:18 +02:00
parent a35008f061
commit 7774de4939
6 changed files with 8 additions and 2 deletions

View file

@ -32,6 +32,7 @@
#include "global.hxx"
#include "point2d.hxx"
using std::string;
// build 3d airport
void build_airport( string airport_id, float alt_m,

View file

@ -54,6 +54,7 @@ extern "C" {
using std::copy;
using std::ostream_iterator;
using std::sort;
using std::string;
using std::vector;
#if 0 // unused

View file

@ -18,6 +18,7 @@
#define MP_STRETCH (0.000001)
using std::string;
using std::vector;
namespace tg {

View file

@ -43,6 +43,8 @@
#include "simple_clip.hxx"
#include "chop.hxx"
using std::string;
static void clip_and_write_poly( string root, long int p_index,
const string &poly_type,
SGBucket b, const TGPolygon& shape,

View file

@ -268,7 +268,7 @@ void TGPolygon::shift( double lon, double lat ) {
// output
void TGPolygon::write( const string& file ) const {
void TGPolygon::write( const std::string& file ) const {
FILE *fp = fopen( file.c_str(), "w" );
fprintf(fp, "%ld\n", poly.size());
@ -353,7 +353,7 @@ void tgPolygonFindSlivers( TGPolygon& in, poly_list& slivers )
// output
void TGPolygon::write_contour( const int contour, const string& file ) const {
void TGPolygon::write_contour( const int contour, const std::string& file ) const {
FILE *fp = fopen( file.c_str(), "w" );
for ( int j = 0; j < (int)poly[contour].size(); ++j ) {

View file

@ -22,6 +22,7 @@
using std::vector;
using std::cerr;
using std::endl;
using std::string;
static string prog_name;
static string work_dir = ".";