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

Add alias to data dictionary entity section #29

Closed
stansmith907 opened this issue Jan 21, 2015 · 2 comments
Closed

Add alias to data dictionary entity section #29

stansmith907 opened this issue Jan 21, 2015 · 2 comments

Comments

@stansmith907
Copy link
Contributor

Add an 'alias' element to the entity and attribute sections of mdJson.

Add to entity ...

        "entityId": "",
        "commonName": "",
        "codeName": "",
        "alias": [""],
        "definition": "",
        "primaryKeyAttributeCodeName": [""],
        "index": [
          {
            "codeName": "",
            "allowDuplicates": false,
            "attributeCodeName": [""]
          }
        ],
        "attribute": []

Add to attribute ...

            "commonName": "",
            "codeName": "",
            "alias": [""],
            "definition": "",
            "dataType": "",
            "required": true,
            "units": "",
            "domainId": "",
            "minValue": "",
            "maxValue": ""

Is everyone okay with above proposal?

@stansmith907
Copy link
Contributor Author

Alias added to entity and attribute as above. mdJson reader and internal object have been modified and tested. Because changes were made to the template and examples neither the validation or unit test work properly until example and schema changes are made.

Also, I made dataDictionary an array. ISO 1915-1 allows for multiple portrayal catalogues (data dictionaries). Since ISO 19110 is the HTML for a single dictionary, not sure what to do if someone actually enters multiple dictionary definitions and writes 19110, output just the first?

19110 allows alias and 'localName' and will add these tomorrow.

@stansmith907
Copy link
Contributor Author

I added aliases for entities (feature type) to ISO 19110 writer. Turns out aliases are not supported for attributes, only entities. So attribute aliases will only be in mdJson. Since dataDictionary was changed to an array to support 19115-1, 19110 was set to only accept dataDictionary[0](the first dictionary defined).

@jlblcc jlblcc closed this as completed in 92d2231 Feb 19, 2015
@jlblcc jlblcc modified the milestone: pre-2.1.0 May 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants