Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot get DDI number from "ISO11783_DDI" Representations created without the RepresentationManager.Instance #31

Open
JasonRoesbeke opened this issue Feb 12, 2018 · 0 comments

Comments

@JasonRoesbeke
Copy link
Contributor

When a representation that has a DDI number as code and RepresentationCodeSourceEnum.ISO11783_DDI as CodeSource, DDI number is not retrieved.

Example of such a representation:

numericRepresentation = new AgGateway.ADAPT.ApplicationDataModel.Representations.NumericRepresentation()
{
    Code = "7",
    CodeSource = RepresentationCodeSourceEnum.ISO11783_DDI,
    Description = "Actual Mass Per Area Application Rate",
    LongDescription = @"Actual Application Rate specified as mass per area.",
    Dimension = UnitOfMeasureDimensionEnum.MassPerArea,
};

See line below where DDI numbers from only representations that are created with RepresentationManager.Instance.Representations are retrieved:

var matchingRepresentation = RepresentationManager.Instance.Representations[adaptRepresentation.Code];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant