Book a Demo

Author Topic: GML MDG  (Read 3058 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
GML MDG
« on: December 09, 2019, 11:03:16 pm »
Hi,

This is a GML specific question: I started using the GML MDG to create an Application Schema.
In a FeatureType class, I can create attributes and set the type. Is there a way to select an existing GML type e.g. gml:AbstractSurface (http://www.datypic.com/sc/niem21/e-gml32_AbstractSurface.html)?

Or do I just need to manually enter "gml:AbstractSurface" in the attribute's data type?

The aim is to generate the GML Application Schema file (EA Help: https://sparxsystems.com/enterprise_architect_user_guide/15.0/model_domains/generate_gml_application_schem.html)

Thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: GML MDG
« Reply #1 on: December 09, 2019, 11:36:38 pm »
There usually is a xmi you can download for these type of things.

This page seems to mention a download, but I'm not sure if it is applicable in this case
https://sparxsystems.com/enterprise_architect_user_guide/15.0/model_domains/uml_profile_for_gml.html

Geert

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: GML MDG
« Reply #2 on: December 09, 2019, 11:50:33 pm »
The link no longer works but I found a project here: https://github.com/ISO-TC211/HMMG/blob/master/EA/ISOTC211_HM.eap
Where it contains relevant models related with these standards, I couldn't find a set of class to fulfil the above need.

If anyone has used GML, or if Sparx has a view on this, I'm interested.


Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: GML MDG
« Reply #3 on: December 19, 2019, 02:04:01 am »
After further investigations and looking at the EA Example project, I found that GML types can be used from ISO TC211 model. for instance there's a CharacterString "type" class to select for string attributes.
When generating the GML Application Schema, the XSD file is properly mapped (e.g. CharacterString  -> xs:string, or GM_Surface -> gml:SurfacePropertyType , Area -> gml:AreaType).
Is there a full mapping definition somewhere from type classes to the XSD types? The aim is to lookup the appropriate type name to use in EA to get the expected gml: type in the generated XSD file.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com