Skip to content
Snippets Groups Projects
Commit 5089c3cd authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH : ossimSpotMetadata stepcount : int32->int16

parent f727e84f
No related branches found
No related tags found
No related merge requests found
......@@ -347,19 +347,17 @@ SpotImageMetadataInterface::GetSatAzimuth( const MetaDataDictionaryType & dict )
ossimString keywordString = kwl.find(key.c_str());
int step = keywordString.toInt();
std::cout<<step<<std::endl;
key= "support_data.scene_orientation";
keywordString = kwl.find(key.c_str());
double satAz = keywordString.toDouble();
std::cout<<satAz<<std::endl;
if(step<0)
if( (step-48)<0 )
{
satAz += 90.;
}
else
satAz = satAz - 90.;
std::cout<<satAz<<std::endl;
return satAz;
}
......
......@@ -73,7 +73,7 @@ public:
void getViewingAngle(ossim_float64& va) const;
void getSceneOrientation(ossim_float64& so) const;
ossim_uint32 getNumberOfBands() const;
ossim_int32 getStepCount() const;
ossim_uint16 getStepCount() const;
bool isStarTrackerUsed() const;
bool isSwirDataUsed() const;
......@@ -262,7 +262,7 @@ private:
bool theSwirDataFlag;
ossim_uint32 theNumBands;
ossimString theAcquisitionDate;
ossim_int32 theStepCount;
ossim_uint16 theStepCount;
//---
......
......@@ -943,7 +943,7 @@ ossim_uint32 ossimSpotDimapSupportData::getNumberOfBands() const
return theNumBands;
}
ossim_int32 ossimSpotDimapSupportData::getStepCount() const
ossim_uint16 ossimSpotDimapSupportData::getStepCount() const
{
return theStepCount;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment