Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:ossimlabs/ossim-plugins into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarkramer committed Sep 18, 2019
2 parents 2609c9c + 3dc606c commit d8a603b
Show file tree
Hide file tree
Showing 38 changed files with 69 additions and 33 deletions.
2 changes: 2 additions & 0 deletions cnes/src/ossimAlosPalsarModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include <ossim/base/ossimKeywordNames.h>
#include <ossim/base/ossimTrace.h>

using namespace std;


// Static trace for debugging
static ossimTrace traceDebug("ossimAlosPalsarModel:debug");
Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimCosmoSkymedModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <otb/RefPoint.h>
#include <otb/SarSensor.h>

using namespace std;

namespace ossimplugins
{

Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimEnvisatAsarModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
#include <otb/RefPoint.h>
#include <otb/SarSensor.h>

using namespace std;

namespace ossimplugins
{

Expand Down
1 change: 0 additions & 1 deletion cnes/src/ossimEnvisatAsarModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
namespace ossimplugins
{


class PlatformPosition;
class SensorParams;
class RefPoint;
Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimErsSarModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ static ossimTrace traceDebug("ossimErsSarModel:debug");
#include <string>
#include <algorithm>

using namespace std;

namespace ossimplugins
{

Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimFormosatDimapSupportData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
// Define Trace flags for use within this file:
static ossimTrace traceDebug ("ossimFormosatDimapSupportData:debug");

using namespace std;

static const ossim_uint32 LAGRANGE_FILTER_SIZE = 8; // num samples considered

ossimFormosatDimapSupportData::ossimFormosatDimapSupportData ()
Expand Down
3 changes: 1 addition & 2 deletions cnes/src/ossimFormosatDimapSupportData.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
#include <vector>
#include <iostream>

using namespace std;

class ossimKeywordlist;
// class ossimRefPtr;
Expand Down Expand Up @@ -151,7 +150,7 @@ class OSSIM_PLUGINS_DLL ossimFormosatDimapSupportData :
//---
// Convenient method to print important image info:
//---
void printInfo (ostream& os) const;
void printInfo (std::ostream& os) const;

virtual bool saveState(ossimKeywordlist& kwl,
const char* prefix = 0)const;
Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimFormosatModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ using namespace std;

#include <ossimFormosatDimapSupportData.h>

using namespace std;

namespace ossimplugins
{
RTTI_DEF1(ossimFormosatModel, "ossimFormosatModel", ossimSensorModel);
Expand Down
3 changes: 1 addition & 2 deletions cnes/src/ossimFormosatModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#define ossimFormosatModel_HEADER

#include <iostream>
using namespace std;

#include <ossim/plugin/ossimPluginConstants.h>
#include <ossim/projection/ossimSensorModel.h>
Expand Down Expand Up @@ -82,7 +81,7 @@ class OSSIM_PLUGINS_DLL ossimFormosatModel : public ossimSensorModel
* Writes a template of geom keywords processed by loadState and saveState
* to output stream.
*/
static void writeGeomTemplate(ostream& os);
static void writeGeomTemplate(std::ostream& os);

/*!
* Given an image point and height, initializes worldPoint.
Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimGeometricSarSensorModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <cmath>
#include <string>

using namespace std;

namespace ossimplugins
{

Expand Down
3 changes: 1 addition & 2 deletions cnes/src/ossimGeometricSarSensorModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <list>
#include <vector>

using namespace std;

namespace ossimplugins
{
Expand Down Expand Up @@ -73,7 +72,7 @@ class OSSIM_PLUGINS_DLL ossimGeometricSarSensorModel : public ossimSensorModel
* @param position Position of the sensor at line line
* @param speed Speed of the sensor at line line
*/
virtual bool getPlatformPositionAtLine(double line, vector<double>& position, vector<double>& speed);
virtual bool getPlatformPositionAtLine(double line, std::vector<double>& position, std::vector<double>& speed);

/**
* @brief This function is able to convert image coordinates into world
Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimPleiadesDimapSupportData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
#include <iterator>
#include <sstream>

using namespace std;


// Define Trace flags for use within this file:
static ossimTrace traceExec ("ossimPleiadesDimapSupportData:exec");
Expand Down
3 changes: 1 addition & 2 deletions cnes/src/ossimPleiadesDimapSupportData.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
#include <vector>
#include <iostream>

using namespace std;


class ossimKeywordlist;
Expand Down Expand Up @@ -85,7 +84,7 @@ namespace ossimplugins
//---
// Convenient method to print important image info:
//---
void printInfo (ostream& os) const;
void printInfo (std::ostream& os) const;

/**
* Method to save the state of the object to a keyword list.
Expand Down
1 change: 1 addition & 0 deletions cnes/src/ossimPleiadesModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
#include <ossim/base/ossimXmlNode.h>
#include <ossim/support_data/ossimSupportFilesList.h>

using namespace std;

namespace ossimplugins
{
Expand Down
3 changes: 3 additions & 0 deletions cnes/src/ossimPluginCommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
#include <ossim/base/ossimXmlNode.h>
#include <otb/CivilDateTime.h>
#include <ossim/base/ossimTrace.h>

using namespace std;

static ossimTrace traceDebug("ossimPluginCommon:debug");
namespace ossimplugins
{
Expand Down
1 change: 1 addition & 0 deletions cnes/src/ossimPluginInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <ossimPluginProjectionFactory.h>
#include <ossimPluginReaderFactory.h>

using namespace std;

namespace ossimplugins
{
Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimPluginProjectionFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ static ossimTrace traceDebug = ossimTrace("ossimPluginProjectionFactory:debug");
#include <ossimFormosatModel.h>
#include <ossimFormosatDimapSupportData.h>

using namespace std;

namespace ossimplugins
{

Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimPluginReaderFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#include <ossim/base/ossimTrace.h>
#include <ossim/base/ossimKeywordNames.h>

using namespace std;

namespace ossimplugins
{

Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimRadarSat2Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include <otb/RefPoint.h>
#include <otb/SarSensor.h>

using namespace std;

namespace ossimplugins
{
// Keyword constants:
Expand Down
10 changes: 4 additions & 6 deletions cnes/src/ossimRadarSat2ProductDoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include <list>
#include <vector>
#include <sstream>
#include <vector>

class ossimDpt;
class ossimGpt;
Expand All @@ -29,7 +28,6 @@ class ossimXmlNode;
class ossimString;


using namespace std;

typedef struct
{
Expand All @@ -47,10 +45,10 @@ typedef struct
double latitudeScale;
double longitudeScale;
double heightScale;
vector<double> lineNumeratorCoefficients;
vector<double> lineDenominatorCoefficients;
vector<double> pixelNumeratorCoefficients;
vector<double> pixelDenominatorCoefficients;
std::vector<double> lineNumeratorCoefficients;
std::vector<double> lineDenominatorCoefficients;
std::vector<double> pixelNumeratorCoefficients;
std::vector<double> pixelDenominatorCoefficients;

}RPCModel;

Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimRadarSat2RPCModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#include <otb/SensorParams.h>
#include <otb/SarSensor.h>

using namespace std;

namespace ossimplugins
{

Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimRadarSat2TiffReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#include <ossim/projection/ossimProjection.h>
#include <ossim/projection/ossimProjectionFactoryRegistry.h>

using namespace std;

// Keyword constants:
static const char PRODUCT_XML_FILE_KW[] = "product_xml_filename";

Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimRadarSatModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
#include <RadarSat/CommonRecord/ProcessingParameters.h>
#include <RadarSat/Leader/PlatformPositionData.h>

using namespace std;

namespace ossimplugins
{
RTTI_DEF1(ossimRadarSatModel, "ossimRadarSatModel", ossimGeometricSarSensorModel);
Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimSpot6DimapSupportData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
#include <iterator>
#include <sstream>

using namespace std;


// Define Trace flags for use within this file:
static ossimTrace traceExec ("ossimSpot6DimapSupportData:exec");
Expand Down
6 changes: 1 addition & 5 deletions cnes/src/ossimSpot6DimapSupportData.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,9 @@
#include <ossim/base/ossimDrect.h>
#include <ossim/base/ossimGpt.h>


#include <vector>
#include <iostream>

using namespace std;


class ossimKeywordlist;
class ossimXmlDocument;

Expand Down Expand Up @@ -84,7 +80,7 @@ namespace ossimplugins
//---
// Convenient method to print important image info:
//---
void printInfo (ostream& os) const;
void printInfo (std::ostream& os) const;

/**
* Method to save the state of the object to a keyword list.
Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimSpot6Model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
#include <ossim/base/ossimXmlNode.h>
#include <ossim/support_data/ossimSupportFilesList.h>

using namespace std;


namespace ossimplugins
{
Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimTerraSarModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include <iostream>
#include <sstream>

using namespace std;


// Keyword constants:
static const char NUMBER_SRGR_COEFFICIENTS_KW[] = "sr_gr_coeffs_count";
Expand Down
2 changes: 1 addition & 1 deletion cnes/src/ossimTerraSarModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ namespace ossimplugins
//---
// Convenient method to print important image info:
//---
void printInfo (ostream& os) const;
void printInfo (std::ostream& os) const;

private:

Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimTerraSarProductDoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
#include <ossim/base/ossimXmlDocument.h>
#include <ossim/base/ossimXmlNode.h>

using namespace std;

// Static trace for debugging
static ossimTrace traceDebug("ossimTerraSarProductDoc:debug");

Expand Down
2 changes: 2 additions & 0 deletions cnes/src/ossimTerraSarTiffReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#include <ossim/projection/ossimProjectionFactoryRegistry.h>
#include <ossim/support_data/ossimGeoTiff.h>

using namespace std;

// Keyword constants:
static const char PRODUCT_XML_FILE_KW[] = "product_xml_filename";

Expand Down
2 changes: 2 additions & 0 deletions gdal/src/ossimGdalOgrVectorAnnotation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
#include <ogr_api.h>
#include <sstream>

using namespace std;

RTTI_DEF2(ossimGdalOgrVectorAnnotation,
"ossimGdalOgrVectorAnnotation",
ossimAnnotationSource,
Expand Down
7 changes: 3 additions & 4 deletions gdal/src/ossimGdalOgrVectorAnnotation.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
#include <ossim/imaging/ossimImageGeometry.h>
#include <ossim/projection/ossimProjection.h>

using namespace std;

class ossimProjection;
class ossimMapProjection;
Expand Down Expand Up @@ -94,7 +93,7 @@ class OSSIM_PLUGINS_DLL ossimGdalOgrVectorAnnotation :
//OGRLayer::GetExtent() returns the MBR (minimal bounding rect) of the data in the layer.
//So when only do ossim-info, it is not necessary to go through each feature to calculate
//the bounding which cause the memory allocate problem when the shape file is large.
void initializeBoundingRec(vector<ossimGpt> points);
void initializeBoundingRec(std::vector<ossimGpt> points);

bool setCurrentEntry(ossim_uint32 entryIdx);

Expand All @@ -104,7 +103,7 @@ class OSSIM_PLUGINS_DLL ossimGdalOgrVectorAnnotation :
ossimFilename theFilename;
OGREnvelope theBoundingExtent;
ossimRefPtr<ossimImageGeometry> theImageGeometry;
vector<bool> theLayersToRenderFlagList;
std::vector<bool> theLayersToRenderFlagList;
std::vector<ossimOgrGdalLayerNode*> theLayerTable;
ossimRgbVector thePenColor;
ossimRgbVector theBrushColor;
Expand Down Expand Up @@ -139,7 +138,7 @@ class OSSIM_PLUGINS_DLL ossimGdalOgrVectorAnnotation :

void getFeatures(std::list<long>& result,
const ossimIrect& rect);
void getFeature(vector<ossimAnnotationObject*>& featureList,
void getFeature(std::vector<ossimAnnotationObject*>& featureList,
long id);
ossimProjection* createProjFromReference(OGRSpatialReference* reference)const;
void initializeTables();
Expand Down
2 changes: 2 additions & 0 deletions gdal/src/ossimGdalTileSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@

#include <sstream>

using namespace std;

RTTI_DEF1(ossimGdalTileSource, "ossimGdalTileSource", ossimImageHandler)

static ossimOgcWktTranslator wktTranslator;
Expand Down
Loading

0 comments on commit d8a603b

Please sign in to comment.