29
Geospaal Modeling Sparx Systems Enterprise Architect supports Geography Markup Language (GML) application schemas and ArcGIS geodatabase modeling to define geospatial data integrated with other data to form comprehensive views of information not possible in other tools. Enterprise Architect User Guide Series Author: Sparx Systems Date: 2021-04-29 Version: 15.2 CREATED WITH

Geospatial Modeling - Enterprise Architect...UML Profile for GML68 GML Toolbox Pages71 Generate GML Application Schema77 User Guide - Geospatial Modeling7 September, 2020 Geospatial

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

  • Geospatial ModelingSparx Systems Enterprise Architect supports

    Geography Markup Language (GML)application schemas and ArcGIS geodatabasemodeling to define geospatial data integrated

    with other data to form comprehensive views ofinformation not possible in other tools.

    Enterprise Architect

    User Guide Series

    Author: Sparx SystemsDate: 2021-04-29

    Version: 15.2

    CREATED WITH

  • Table of Contents

    Geospatial Modeling 4Getting Started 6ArcGIS Geodatabases 8Example Diagram 10Exporting ArcGIS XML Workspaces 12Importing ArcGIS XML Workspaces 16

    Geography Markup Language (GML) 20Example Diagram 23Modeling with GML 24

    More Information 28

  • Geospatial Modeling 29 April, 2021

    Geospatial Modeling

    The popularity of the internet, the ever-present mobilephone and the prevalence of location-based services haveresulted in almost everyone interacting with location-basedinformation in some form in their daily lives. It has alsobecome critical for governments and organizations toembrace this type of information as part of strategic decisionmaking. Geospatial information can be modeled inEnterprise Architect and also integrated with other data toform a single and comprehensive view of information notpossible in other tools.

    Enterprise Architect, through the use of MDG Technologies,supports the Geography Markup Language (GML)application schemas and the modeling of ArcGISgeodatabases. The information precursors to these models -such as community conceptual models - can also bemodeled, and traceability can be used to connect the modelstogether.

    Modeling Tools

    Tool Description

    ArcGISProfile

    Enterprise Architect supports the designof geodatabases for the ArcGIS 10.0 suiteof tools developed by Esri Inc.

    (c) Sparx Systems 2021 Page 4 of 29

  • Geospatial Modeling 29 April, 2021

    GeographyMarkup

    Language

    MDG Technology for GML is theimplementation of the Open GeospatialConsortium's Geography MarkupLanguage (GML) 3.3 for EnterpriseArchitect, which provides an XMLgrammar for geographical featuremodeling capabilities within EnterpriseArchitect

    (c) Sparx Systems 2021 Page 5 of 29

  • Geospatial Modeling 29 April, 2021

    Getting Started

    Enterprise Architect partitions the tools extensive featuresinto perspectives this ensures that you can focus on aspecific task and work with the tools you need without thedistraction of other features. To work with the ArcGISGeodatabases or Geography Markup Language features youfirst need to select the following perspectives:

    Database Engineering > ArcGIS

    Information Exchange > Geographic GML

    Setting the perspective ensures that the ArcGISGeodatabases and Geography Markup Language diagramsand their tool boxes and other features of the perspectivewill be available by default.

    ArcGIS Geodatabases

    Using the ArcGIS features in Enterprise Architect you canvisualize geodatabases inside this powerful system andcollaboration platform. This allows you to unify teamsworking in traditional software centric and engineeringsystems with your geospatial teams defining features anddomains. Teams defining the strategy business rules andrequirements for a system or the components that deliver the

    (c) Sparx Systems 2021 Page 6 of 29

  • Geospatial Modeling 29 April, 2021

    system functionality can share models with the geospatialteams creating an integrated model that will help withintegration and risk reduction.

    Geography Markup Language (GML)

    Using the Geography Markup Language (GML) facility youcan model organization or community based applicationschemas. The models can be used to show the relationshipbetween Features and these elements in turn can contain anynumber of Properties that qualify their characteristics. Thesecan be based on defined Types, DataTypes, CodeLIsts orEnumerations.

    (c) Sparx Systems 2021 Page 7 of 29

  • Geospatial Modeling 29 April, 2021

    ArcGIS Geodatabases

    Exchange, Model and Visualize ArcGIS Geodatabases

    Enterprise Architect allows you to import and exportArcGIS geodatabses allowing you to visualize Features andDomains within this powerful collaboration platform. In therecent past there has been a separation of the disciplines ofsystem and software development and geospatialdevelopment. In this age of social architecture and digitaldisruption almost every project and endeavor requires someaspect of location information from simple delivery servicesto agricultural, mining, exploration, weather, real estate anddisaster recovery systems.

    Package diagram showing a navigation cell and a Packagecontaining Features Domains and a Geospatial Reference

    The ArcGIS system, developed by Esri, supports thedevelopment and management of geodatabases. As it is forother databases, it is useful to model the design of a

    (c) Sparx Systems 2021 Page 8 of 29

  • Geospatial Modeling 29 April, 2021

    geodatabase using a standard notation such as UML. Youcan perform such modeling in Enterprise Architect, usingthe UML profile for ArcGIS, which is part of the built-inMDG Technology for ArcGIS. Once you have modeled anArcGIS schema in Enterprise Architect, you can export themodel to ArcGIS as an XML Workspace document. Youcan also visualize an existing ArcGIS geodatabase schema,by importing the ArcGIS XML Workspace document intoEnterprise Architect.

    (c) Sparx Systems 2021 Page 9 of 29

  • Geospatial Modeling 29 April, 2021

    Example Diagram

    ArcGIS diagrams allow you to visualize the geographicfeatures, domains and other elements that make up ageodatabase schema. In this example a Building has beensub-typed as a house, the house in turn is sub-typed basedon the material type. The subtypes of the House references aCoded Value Domain also presented in the diagram withtwo Domain Code Values:

    Brick·

    WeatherBoard·

    A Smart Meter is associated with the house. The House is atype of Building and the Building contains the property ofStreet Address

    (c) Sparx Systems 2021 Page 10 of 29

  • Geospatial Modeling 29 April, 2021

    (c) Sparx Systems 2021 Page 11 of 29

  • Geospatial Modeling 29 April, 2021

    Exporting ArcGIS XML Workspaces

    When you have modeled your Geodatabase WorkspaceXML Document (containing the ArcGIS schema), you canexport it to an external directory (using the Publish ModelPackage facility), from which you can then import it to theEsri ArcCatalog.

    Access

    Click on an ArcGIS stereotyped Package (your ArcGISWorkspace Package) in the Browser window.

    Ribbon Specialize > Technologies > ArcGIS >Export to ArcGIS Workspace XML orPublish > Model Exchange > PublishAs...

    ContextMenu

    Right-click on Package | Specialize |ArcGIS | Export to ArcGIS WorkspaceXML

    KeyboardShortcuts

    Ctrl+Alt+E : Publish

    (c) Sparx Systems 2021 Page 12 of 29

  • Geospatial Modeling 29 April, 2021

    Export the Workspace

    Option Action

    Root Package Display the name of the selected ArcGISWorkspace Package.

    Filename Type in or browse for the file path intowhich the XML file is to be generated.

    XML Type Select 'ArcGIS' as the XML/XMI versionto export the Package to.

    Format XMLOutput

    Format the output into readable XML(this takes a few more seconds at the endof the run).

    Write LogFile

    Write a log of the export activity(recommended).The log file is saved to the directory intowhich the XML file is exported.

    View XML Click on this button to view the exportedXML file.

    Export Click on this button to initiate the XMLexport.

    (c) Sparx Systems 2021 Page 13 of 29

  • Geospatial Modeling 29 April, 2021

    Close Click on this button to close this dialog.

    Progress Observe the progress of the XML export.

    Notes

    The MDG Technology for ArcGIS is available in the·Professional, Corporate, Unified and Ultimate Editions ofEnterprise Architect

    In the Corporate, Unified and Ultimate Editions of·Enterprise Architect, if security is enabled you must have'Export XMI' permission to export to XML

    Before exporting your model to an ArcGIS schema, you·must define at least one Spatial Reference element;Spatial Reference elements are referred to by otherschema elements via a dynamically linked Tagged Value,named SpatialReference

    The DefaultSpatialReference tag on an ArcGIS Package is·used to specify a Spatial Reference that can be applied toall Feature Datasets and Feature Classes in the workspace;therefore, you do not need to apply a Spatial Referenceelement to each Feature Dataset or Feature Class

    If you do not reference a Spatial Reference Class from·any Feature Dataset or Feature Class in your ArcGISmodel, Enterprise Architect by default will generate anXML schema with Unknown type of Spatial Reference

    (c) Sparx Systems 2021 Page 14 of 29

  • Geospatial Modeling 29 April, 2021

    for these elements

    (c) Sparx Systems 2021 Page 15 of 29

  • Geospatial Modeling 29 April, 2021

    Importing ArcGIS XML Workspaces

    If you have a Geodatabase Workspace XML Document(containing the ArcGIS schema) you can import it into yourEnterprise Architect project as a UML model.

    Before running the import, deselect the 'Sort FeaturesAlphabetically' checkbox on the 'Objects' page of thePreferences window (Start > Desktop > Preferences >Preferences). This ensures that the fields are imported andorganized in Enterprise Architect in the same order as in thesource.

    Access

    Click on the target Package in the Browser window.

    Ribbon Publish > Technologies > Publish >ArcGIS > Import ArcGIS WorkspaceXML orPublish > Model Exchange >Import-XML > Import Package fromXML : Other XML Formats > ArcGIS

    ContextMenu

    Right-click on Package | Specialize |ArcGIS | Import ArcGIS WorkspaceXML

    (c) Sparx Systems 2021 Page 16 of 29

  • Geospatial Modeling 29 April, 2021

    KeyboardShortcuts

    Ctrl+Alt+I : Other XML Formats |ArcGIS

    Import a Geodatabase Workspace XMLdocument

    Option Action

    Filename Type in or browse for the name of theArcGIS XML file to import.

    CreateDiagrams

    Select the checkbox to create Classdiagrams under the imported Packages.

    HideSystem-LevelArcGISFields onDiagrams

    Select the checkbox to hide thesestereotyped attributes:

    RequiredField·AttributeIndex·SpatialIndex·

    on these stereotyped Classes:Point·Polyline·Polygon·MultiPatch·

    (c) Sparx Systems 2021 Page 17 of 29

  • Geospatial Modeling 29 April, 2021

    The 'RequiredField' and 'AttributeIndex'attributes are also hidden for the Table(Object Class) Class.This option is enabled only when the'Create Diagrams' checkbox is selected.

    Strip GUIDs The 'Strip GUIDs' feature is currentlymandatory for ArcGIS imports, whichmeans that elements are created 'as new'each time an ArcGIS schema is imported.

    Write LogFile

    Select the checkbox to write a log ofimport activity (recommended).The log file is saved in the directory fromwhich the file is being imported, with thesame name as the imported file plus thesuffix _import.log.

    View XML Click on this button to view the XMLbefore import.

    Import Click on this button to import the ArcGISXML file.

    Close Click on this button to close this dialog.

    Help Click on this button to display this Helppage.

    (c) Sparx Systems 2021 Page 18 of 29

  • Geospatial Modeling 29 April, 2021

    ImportProgress

    This field indicates the progress of theimport.

    Notes

    The MDG Technology for ArcGIS is available in the·Professional, Corporate, Unified and Ultimate Editions ofEnterprise Architect

    (c) Sparx Systems 2021 Page 19 of 29

  • Geospatial Modeling 29 April, 2021

    Geography Markup Language (GML)

    Model Geographic Features and Generate ApplicationSchemas

    You can create expressive and collaborative models of theimportant features in your domain and use these to generateGML compliant application schemas which can beconsumed by other applications. Many of the disruptiveforces and technologies that have changed the way weinteract with each other and the world we inhabit, involvegeographic locations and features. We drive along roads andstop at lookouts to view coastal features or cityscapes, wetravel abroad to view monuments and buildings such aschurches and museums, we rely on wind farms for energyand we take off and land at airports to name a few. You canmodel any geographic features of interest using EnterpriseArchitect's implementation of the Geography MarkupLanguage which is fundamental for geographic informationsystems as well as its use as an open interchange format forgeographic transactions on the Internet.

    (c) Sparx Systems 2021 Page 20 of 29

  • Geospatial Modeling 29 April, 2021

    «FeatureType»Road

    «property»+ category: Road Category+ Name: Name+ publicAccessibility: Accessibility+ width: Distance

    «Enumeration»Road Category

    literalsTollwayHywayFederalStateTrackBicycle Trail

    «DataType»Name

    «DataType»Distance

    «Enumeration»Accessibility

    literalsExcellentGoodMediumFairBadPoor

    «FeatureType»Junction

    «property»+ Name: Name+ Type: int

    «FeatureType»Ramp

    «property»+ Length: Distance+ Speed: int

    «FeatureType»On Ramp

    «FeatureType»Off Ramp

    «ApplicationSchema»Road Network

    1..5

    GML Model of roads showing two Feature with propertiesthat access two Data Types and Enumerations

    MDG Technology for GML is the implementation of theOpen Geospatial Consortium's Geography MarkupLanguage (GML) 3.3 for Enterprise Architect, whichprovides an XML grammar for geographical featuremodeling capabilities within Enterprise Architect at or laterthan Release 10.

    Through the MDG Technology for GML, you can:

    Apply a UML Profile for the Geography Markup·Language (GML) 3.3

    Make use of customized diagram types and toolbox pages,·for convenient access to elements and relationships tomodel geographical features effectively

    Generate GML Application Schema files·

    (c) Sparx Systems 2021 Page 21 of 29

  • Geospatial Modeling 29 April, 2021

    (c) Sparx Systems 2021 Page 22 of 29

  • Geospatial Modeling 29 April, 2021

    Example Diagram

    Using the Geography Markup Language (GML) facility youcan model organization or community based applicationschemas. The models can be used to show the relationshipbetween Features Types that contain any number ofProperties that qualify their characteristics. These can bebased on defined Types, Data Types, Code Lists orEnumerations. You can collaborate with other geospatialcolleagues or with people working in traditional systemsimplementations in disciplines that manage artifactsincluding: Strategies, Goals, Requirements, Data Models,Software Models, Deployment Descriptions and more.

    «FeatureType»Custodian

    «property»+ firstName: CharacterString+ lastName: CharacterString

    «FeatureType»Itinerary

    «property»+ Property One: type one+ Property Two: type two

    «FeatureType»Interest Point

    «property»+ city: CharacterString [0..1]+ closesAt: Time+ country: CountryCodes [0..1] = DE+ opensAt: Time

    «FeatureType»Natural

    «property»+ age: Integer

    «FeatureType»Built

    «property»+ material: type one

    «FeatureType»Waterfall

    «Property»+ height: Integer

    «FeatureType»Mountain

    «FeatureType»Church

    «FeatureType»Mosque

    «FeatureType»Temple

    0..*

    +property type«property»

    0..*

    (c) Sparx Systems 2021 Page 23 of 29

  • Geospatial Modeling 29 April, 2021

    Modeling with GML

    You can create GML models using the powerfuldiagramming and modeling facilities in EnterpriseArchitect. FIrst you need to select the GML or InformationExchange Perspective. Perspectives are a powerful focusingtool facility that ensure you remain focused and canconcentrate on GML modeling.

    Perspective menu - GML perspective selection

    This activates the MDG Technology for GML whichcontains the UML Profile for GML allowing you to createmodels with elements and connectors that describe yourorganization or community domains.

    Access

    Ribbon Specialize > Technologies > GML

    (c) Sparx Systems 2021 Page 24 of 29

  • Geospatial Modeling 29 April, 2021

    ContextMenu

    Right-click on Package | Specialize |GML

    Features

    Feature Detail

    ProfileSupport

    You can develop GML constructs quicklyand simply, through use of the built-inMDG Technology for GML facilitiesprovided in the form of:

    A GML diagram type, accessed·through the 'New Diagram' dialogGML pages in the Diagram Toolbox·that map GML concepts toappropriately stereotyped UMLelementsGML element and relationship entries·in the 'Toolbox Shortcut Menu' and'Quick Linker'

    GMLToolboxPage

    The GML Toolbox pages containelements and connectors to modelgeographical features effectively.

    (c) Sparx Systems 2021 Page 25 of 29

  • Geospatial Modeling 29 April, 2021

    UML Classesfrom ISO

    (Optional) You can download the UMLClasses implemented in ISO/TC 211 asan XMI file, then import the XMI fileinto Enterprise Architect as a Packagecontaining diagrams and standard UMLClasses, which you can reuse in yourmodel.

    Not all UML Classes implemented in·ISO/TC 211 have a correspondingmapping in GML; the Classes that havea mapping (as specified in the GML3.2.1 specification) are specified in theconfigurable fileGMLClassMapping.xml in the 'SparxSystems > EA > Config > GML' folderThe Namespace information for these·Classes is specified in the configurablefile GMLNamespaces.xml in the 'SparxSystems > EA > Config > GML folder'

    GMLApplicationSchemaGeneration

    Any model you create using the built-inMDG Technology for GML can beexported as a GML Application Schema.Using the configurable fileGMLStereotypes.xml in the 'SparxSystems > EA > Config > GML' folder,you can specify aliases for the standardGML stereotypes. The GML ApplicationSchema Generator will also consider

    (c) Sparx Systems 2021 Page 26 of 29

  • Geospatial Modeling 29 April, 2021

    these aliases during Schema generation.

    Notes

    The MDG Technology for GML is available in the·Professional, Corporate, Unified and Ultimate Editions ofEnterprise Architect

    (c) Sparx Systems 2021 Page 27 of 29

  • Geospatial Modeling 29 April, 2021

    More Information

    Geospatial modeling can be explored in more detail byaccessing the following two topics:

    ArcGIS Geodatabases

    Geography Markup Language

    (c) Sparx Systems 2021 Page 28 of 29

    https://sparxsystems.com/enterprise_architect_user_guide/15.2/about_arcgishttps://sparxsystems.com/enterprise_architect_user_guide/15.2/mdg_technology_for_gml

  • Geospatial Modeling 29 April, 2021

    (c) Sparx Systems 2021 Page 29 of 29

    Geospatial ModelingGetting StartedArcGIS GeodatabasesExample DiagramExporting ArcGIS XML WorkspacesImporting ArcGIS XML Workspaces

    Geography Markup Language (GML)Example DiagramModeling with GML

    More Information