Skip to content

Issue with HAE Scene Coordinates in CPHD XML #345

@sharpthc

Description

@sharpthc

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions