ISIS3 scale_factor wrongly defaulting to 0 for Polar Stereographic
|Reported by:||thare||Owned by:||warmerdam|
|Severity:||normal||Keywords:||ISIS3 Polar Scale Factor|
ISIS3 does not explicitly define a scale_factor for the Polar Stereographic projection. During GDAL parsing, since nothing is found, the GDAL scale_factor is getting set to 0 (when it should default to 1).
I believe by adding ', "1.0" ' (I hope as a string) to the line below, it should correctly default to a scale_factor=1.0 when the keyword is not found in the label. Here is the corrected code which is about line 534 in isis3dataset.cpp
/*********** Grab scaleFactor ************/ scaleFactor = atof(poDS->GetKeyword( "IsisCube.Mapping.scaleFactor", "1.0"));
Attached is thumbnail lunar image which can be used for testing. Simply running gdalinfo can be used to test to see if the scale_factor is correctly set to 1.
Lastly, it looks like the ISIS2 and PDS readers are already forcing the value correctly to 1 in the GDAL listed projection.