diff --git a/Code/BasicFilters/otbMeanShiftImageFilter2.h b/Code/BasicFilters/otbMeanShiftImageFilter2.h index f833aca14816f0f6e485bfc72ba5e4d00fb8d9ba..6aa0ba58ffea0ec141128750d193c2e05e5b9f3b 100644 --- a/Code/BasicFilters/otbMeanShiftImageFilter2.h +++ b/Code/BasicFilters/otbMeanShiftImageFilter2.h @@ -102,7 +102,6 @@ class NormL2 }; - template <class TInputImage, class TOutputImage, class TKernel = KernelUniform, class TNorm = NormL2, class TOutputMetricImage = TOutputImage, class TOutputIterationImage = otb::Image<unsigned int, TInputImage::ImageDimension> > class ITK_EXPORT MeanShiftImageFilter2 : public itk::ImageToImageFilter<TInputImage, TOutputImage> @@ -239,7 +238,6 @@ private: // }; - /** Range bandwidth */ RealType m_RangeBandwidth; diff --git a/Code/OBIA/otbFusionOGRTileFilter.txx b/Code/OBIA/otbFusionOGRTileFilter.txx index 16cce76db29448a1f601ecc3e9f0922284c10f7f..f47333026222483f9369ce250c664999a4abab78 100644 --- a/Code/OBIA/otbFusionOGRTileFilter.txx +++ b/Code/OBIA/otbFusionOGRTileFilter.txx @@ -88,7 +88,7 @@ FusionOGRTileFilter<TImage> { /*std::cout<< " column tile number : " << x*y <<std::endl; itk::TimeProbe chrono; - chrono.Start();*/ + chrono.Start(); */ //First compute the intersection between polygons and the streaming line (upper stream) std::vector<FeatureStruct> upperStreamFeatureList; @@ -253,7 +253,7 @@ FusionOGRTileFilter<TImage> } /*chrono.Stop(); - std::cout<< "Column fusion tile took " << chrono.GetTotal() << " sec"<<std::endl;*/ + std::cout<< "Column fusion tile took " << chrono.GetTotal() << " sec"<<std::endl; */ } //end for x } //end for y @@ -268,7 +268,7 @@ FusionOGRTileFilter<TImage> { /*std::cout<< " line tile number : " << x*y <<std::endl; itk::TimeProbe chrono; - chrono.Start();*/ + chrono.Start(); */ //First compute the intersection between polygons and the streaming line (upper stream) std::vector<FeatureStruct> upperStreamFeatureList; @@ -431,7 +431,7 @@ FusionOGRTileFilter<TImage> /*chrono.Stop(); - std::cout<< "line fusion tile took " << chrono.GetTotal() << " sec"<<std::endl;*/ + std::cout<< "line fusion tile took " << chrono.GetTotal() << " sec"<<std::endl; */ } //end for x } //end for y diff --git a/Code/OBIA/otbPersistentImageToOGRDataFilter.txx b/Code/OBIA/otbPersistentImageToOGRDataFilter.txx index 3a348ebe4ed50848d413284bb0385cc1ccabfb50..ea349399d8e5ab92b2ee8f82eda576857a39baaa 100644 --- a/Code/OBIA/otbPersistentImageToOGRDataFilter.txx +++ b/Code/OBIA/otbPersistentImageToOGRDataFilter.txx @@ -154,7 +154,7 @@ PersistentImageToOGRDataFilter<TImage> /*char ** options = NULL; char * opt = "SPATIALITE=YES"; options = CSLAddString(options, opt ); - m_DataSource = ogrDriver->CreateDataSource(this->m_FileName.c_str(), &options[0]);*/ + m_DataSource = ogrDriver->CreateDataSource(this->m_FileName.c_str(), &options[0]); */ m_DataSource->CreateLayer("layer", oSRS ,wkbMultiPolygon, NULL); diff --git a/Code/Testing/otbCurlHelperStub.cxx b/Code/Testing/otbCurlHelperStub.cxx index fcdf0843cec074f0349faf02f27c56472167e0ce..802f94a2983e1ba4e5c19811475671c8dc85223a 100644 --- a/Code/Testing/otbCurlHelperStub.cxx +++ b/Code/Testing/otbCurlHelperStub.cxx @@ -33,7 +33,7 @@ bool CurlHelperStub::TestUrlAvailability(const std::string& url) const int CurlHelperStub::RetrieveUrlInMemory(const std::string& url, std::string& output) const { - if (url.compare("http://ws.geonames.org/findNearbyPlaceName?lat=1.29&lng=103.78") == 0) + if (url.compare("http://api.geonames.org/findNearbyPlaceName?lat=1.29&lng=103.78&username=otbteam") == 0) { output = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>\n" "<geonames>\n" @@ -58,7 +58,7 @@ int CurlHelperStub::RetrieveUrlInMemory(const std::string& url, std::string& out int CurlHelperStub::RetrieveFile(const std::ostringstream& urlStream, std::string filename) const { - if (urlStream.str().compare("http://ws.geonames.org/findNearbyPlaceName?lat=1.29&lng=103.78") == 0) + if (urlStream.str().compare("http://api.geonames.org/findNearbyPlaceName?lat=1.29&lng=103.78&username=otbteam") == 0) { std::ofstream file; file.open(filename.c_str());