From 1f6e6f6f68436e906546a5050c8f7e18f713732e Mon Sep 17 00:00:00 2001 From: Christian Schmitt Date: Thu, 22 Nov 2012 17:47:37 +0100 Subject: [PATCH] tg_unique_geod: compile under MSVC --- src/Lib/Polygon/tg_unique_geod.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Lib/Polygon/tg_unique_geod.hxx b/src/Lib/Polygon/tg_unique_geod.hxx index 293e53cf..78926792 100644 --- a/src/Lib/Polygon/tg_unique_geod.hxx +++ b/src/Lib/Polygon/tg_unique_geod.hxx @@ -1,4 +1,5 @@ #include +#include // Implement Unique SGGeod list @@ -41,8 +42,8 @@ public: /* only hash lon, lat - we want to detect dups in 2d only */ unsigned long long raw_pt[2]; - raw_pt[0] = (unsigned long long)( round(geod.getLongitudeDeg() * PROXIMITY_MULTIPLIER) ); - raw_pt[1] = (unsigned long long)( round(geod.getLatitudeDeg() * PROXIMITY_MULTIPLIER) ); + raw_pt[0] = (unsigned long long)( SGMisc::round(geod.getLongitudeDeg() * PROXIMITY_MULTIPLIER) ); + raw_pt[1] = (unsigned long long)( SGMisc::round(geod.getLatitudeDeg() * PROXIMITY_MULTIPLIER) ); unsigned char* it = (unsigned char*)raw_pt; for ( unsigned i=0; i geod_list; -}; \ No newline at end of file +};