-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
Values uIAXLL and uIAYLL in the CPHD XML should be printed in radians per meter according to Table 11-3 Scene Geographic Coordinates in the CPHD standard. Currently they are printed as degrees per meter. The issue can be seen in six/modules/c++/cphd/source/CPHDXMLParser.cpp on lines 199 and 200.
I was able to fix the issue by creating new methods in six/modules/c++/six/SICommonXMLParser called createLatLonRadians
XMLElem SICommonXMLParser::createLatLonRadians(
const std::string& name,
const std::string& uri,
const LatLon& value,
XMLElem parent) const
{
XMLElem e = newElement(name, uri, parent);
createDouble("Lat", getSICommonURI(), value.getLatRadians(), e);
createDouble("Lon", getSICommonURI(), value.getLonRadians(), e);
return e;
}
XMLElem SICommonXMLParser::createLatLonRadians(
const std::string& name,
const LatLon& value,
XMLElem parent) const
{
return createLatLonRadians(name, getDefaultURI(), value, parent);
}I then modified lines 199 and 200 in CPHDXMLParser.cpp to use this new method.
Metadata
Metadata
Assignees
Labels
No labels