€GeoMedia Œ¬¼€‘‰‹†Œ€‹

  • View
    242

  • Download
    0

Embed Size (px)

Text of €GeoMedia Œ¬¼€‘‰‹†Œ€‹

  • 8/3/2019 GeoMedia

    1/79

    GeoMedia4.0

    Automation

    GeoMedia GeoMedia

    1 OLE

    2 COM?

    3 OLE

    4

    5

    6

    7 Excel

    8 GeoMedia

    9 GeoMedia

    GeoMedia GeoMedia

    GeoMedia

    GeoMedia

    GDatabase GRecrdset GField MapView Legend

    LegendEntries Style DataView

    / GeoMedia

    Execl

    GeoMedia

    - 1 -

  • 8/3/2019 GeoMedia

    2/79

    - 2 -

  • 8/3/2019 GeoMedia

    3/79

    1 OLE

    GeoMedia

    GeoMedia

    OLE

    (Object Linking and Embedding)OLE

    Word Excel

    Excel OLE

    OLE OLE

    OLE -

    OLE Excel

    Visual Basic GeoMedia

    (MapViews)(Pipes) Visual Basic Visual C++

    OLE OLE COMOLE

    GeoMedia

    OLE

    COM

    GeoMedia

    (COM) GeoMedia

    OLE COM COM

    COM COM

    - 3 -

  • 8/3/2019 GeoMedia

    4/79

    COM

    COM COM COM

    COM

    OLE OLE

    COM COM Windows NT

    COM Windows

    Unix Macintosh COM

    MSDN.Microsoft.com)Kraig Brockschmidt OLE 2

    OLE

    OLE OLE (Doument-centric)

    (Application-centric)

    OLE

    OLE OLE

    OLE GeoMedia

    OLE COM

    IUnknown

    COM

    GeoMedia

    OLE OLE OLE

    VC++Visual BasicPowerBuilderDeveloper 200Delphi

    OLE

    - 4 -

  • 8/3/2019 GeoMedia

    5/79

    OLE

    VBVC

    (Setting)/ (Getting)

    Type Library

    GeoMedia DLLOCX EXE

    .tlb Visual Basic DLL

    GeoMedia

    Property

    Method(Event)

    click

    (member object)GeoMedia Application

    - 5 -

  • 8/3/2019 GeoMedia

    6/79

    Document Document Application

    Dependent Object

    GeoMedia GDO GField

    GTableDef GField GTableDef

    (Collection)

    Windows Window Queries Query

    GeoMedia Windows

    DataViewWindow MapViewWindow Queries

    Query

    Count Item

    Count Item

    For I = 1 To objCollention.Count

    ObjX = objCollention.Item(I)

    Next I

    1 1 0

    0 0 GeoMedia GDO 0

    GeoMedia 1

    _NewEnum For Each

    Item

    objCollection.Item(I)

    objCollection(I)

    Text

    txtControl1.Text

    txtControl1

    - 6 -

  • 8/3/2019 GeoMedia

    7/79

    Table - 1

    /

    Application Document Document Name

    Name

    Application.Document.Name

    With

    Application.Document.Name = Automation Overview

    Application.Document.Date = 7/12/97

    Application.Document.Author = John Doe

    Set tmpDoc = Application.Document

    tmpDoc.Name = Automation Overview

    tmpDoc.Date = 7/12/97

    tmpDoc.Author = John Doe

    With Application.Document

    .Name = Automation Overview

    - 7 -

  • 8/3/2019 GeoMedia

    8/79

    .Date = 7/12/97

    .Author = John Doe

    End With

    DimNewCreateObject

    Visual Basic Dim Dim (Object

    Variables)Dim ObjX As Object ObjX

    Object

    ObjX

    Dim objDoc As Object

    Set objDoc = Application.Document

    MyApplication

    Set objDoc = CreateObject(MyApplication.Document)

    Visual Basic New

    Dim objDoc As New Document

    New

    CreateObject Dim

    (DLL)(EXE)

    EXE EXE DLL

    - 8 -

  • 8/3/2019 GeoMedia

    9/79

    GeoMedia

    UUIDGUIDCLSIDPROGID

    (GUID: Globally Unique Identifier)GUID 128

    GUID (IID)(CLSID)

    IIDIID

    IID

    IID

    CLSID CLSID CLSID

    IID

    ProgIDProgID

    Windows ProgID CLSID API (_)

    (.) ProgID GeoMedia CLSID GeoMedia

    ProgID CreateObject

    GeoMedia.Application GeoMedia.Connection GeoMedia.ColorSchemes ProgID

    Access.GDatabase Access GDO ProgID

    C++

    HRESULT

    IUnknown IDispatch

    - 9 -

  • 8/3/2019 GeoMedia

    10/79

    Excel

    GeoMedia OLE

    Intergraph Microsoft

    Excel Excel GeoMedia

    - 10 -

  • 8/3/2019 GeoMedia

    11/79

    Application Workbooks Workbooks

    Workbook

    Workbook WorksheetsDialogSheetsCharts Modules .

    Worksheets Worksheet

    Worksheet Range

    Range Areas Border

    Excel

    Range

    Application.Workbooks(1).Worksheets(1).Range

    Excel Metacollections

    2 Excel

    - 11 -

  • 8/3/2019 GeoMedia

    12/79

    Excel

    Excel

    Visual Basic

    (Workbook)

    8 GeoMedia

    GeoMedia

    GeoMedia GeoMedia

    GeoMedia

    GeoMedia

    GeoMedia

    GeoMedia

    -

    GeoMedia

    GeoMedia /GeoMedia

    GDO Server GeoMedia

    GeoMedia GDO Server

    - 12 -

  • 8/3/2019 GeoMedia

    13/79

    GeoMedia

    1GDO

    GDO(Geographic Data Objects) OLE

    GDO Intergraph Visual Basic OLE Intergraph Open GIS

    Consortium (OGC) GDO GDO

    Microsoft DAO RDO Microsoft OLE

    GIS

    GIS GDO GIS

    GDO

    GDO

    2Grecordset

    GRecordset GRecordset

    () ()GeoMedia GRecordset

    GRecordset (cursor)

    GRecordset GFields

    Recordset GRecordset

    GRecordset GRecordset

    GRecordset

    GRecordset MoveNext Bookmark

    GeoMedia

    GDO Term Database Other Synonyms

    GDatabase Database Warehouse, server

    GTableDef Table Feature Class

    GField Column Attribute, field

    GRecordset Cursor Recordset

    Active row (bookmark) Current row Feature instance, row

    - 13 -

  • 8/3/2019 GeoMedia

    14/79

    3Legend

    GeoMedia Legend

    GeoMedia

    feature

    4Pipe

    Pipe GeoMedia Pipe

    GRecordset GeoMedia GRecordset

    Pipe

    Pipe GeoMedia GeoMedia

    Pipe GRecordset

    GRecordset GRecordset Pipe

    GRecordset Pipe

    5Coordinate System

    GIS

    GeoMedia

    GeoMedia

    Projected coordinate systems X,Y,H

    X Y h

    Geographic coordinate systems(lon)(lat)

    (h)

    GeoMedia

    6Feature Class

    Feature class GeoMedia

    feature class feature classes

    7Feature

    Feature

    feature class feature feature class

    - 14 -

  • 8/3/2019 GeoMedia

    15/79

    GeoMedia

    GeoMedia GeoMedia

    GeoMedia

    GeoMedia

    Legend Style

    GeoMedia Style

    - 15 -

  • 8/3/2019 GeoMedia

    16/79

    s y y

    ies Application.Document.Connections

    Application.ActiveWindow.MapView.Legend.LegendEntries

    Application.Document.Connections(1).ConnectionName

    skip the next object as you continue through the hierarchy.

    Application.Document.Windows(1).Mapview.Visible

    QuerySubFolders QueryFolder QueryFolders

    1Application

    GeoMedia Application

    Windows - Application

    Active Window - DataWindow

    MapWindow PreferenceSet - GeoMedia

    UnitsOfMeasure - ()

    Category / Command - t GeoMedia

    Menubar / MenuItem - MenubarMenuItem

    Accelerator - ( F1)

    Toolbar / ToolBarButton ToolbarToolBarButton

    Toolbar

    DockableControl - GeoMedia ActiveX

    Document

    Document Application GeoMedia

    (FRAMME, MGE) (Access, Oracle

    SDO) Geoworkspacedocument

    document document GeoMedia

    - 16 -

  • 8/3/2019 GeoMedia

    17/79

    document

    document

    2Document

    document

    Connections Connection GDO

    Windows document windows (

    Application.Windows)

    MasterLegend legend GeoMedia recordsets

    Legends legend

    QueryFolder query classifications query classification

    query

    SelectedObjects

    CoordSystemsMgr

    SpatialFilters connection

    PropertySet -

    ColorSchemes

    Windows MapWindow DataWindow .DataWindow DataView DataView

    3MapWindow

    MapWindow MapViewNorthArrow ScaleBar

    NorthArrow OLE

    ScaleBar MapView (1

    = 100 )

    MapView

    MapView Legend

    CoordSystemsMgr

    Legend MapView

    LegendEntries

    HighlightedObjects MapView

    MapViewSelectedObjects Document MapView SelectedObjects

    - 17 -

  • 8/3/2019 GeoMedia

    18/79

    CoordSystemsMgr MapView

    4Coordinate Systems

    CoordSystemsMgr CoordSystem

    GIS

    CoordSystem

    RefSpaceMgr

    UnitFormatSpec

    GeogSpace RefSpaceMgr

    PaperSpace -

    RefSpaceMgr

    ProjSpace RefSpaceMgr

    AltCoordSystemPaths AltCoordSystemPath

    AltCoordSystemPath CoordSystemsMgr

    LeastSquares -

    DatumTransformation -

    - 18 -

  • 8/3/2019 GeoMedia

    19/79

    5Legend

    legend (Legend Entry)

    (GRecordset)

    RecordLegendEntry

    RasterLegendEntry

    RecordLegendEntry

    RasterLegendEntry

    RangeLegendEntry

    UniqueValueLegendEntry

    Style

    TitleFont, SubtitleFont, HeadingFont

    Range

    UniqueValue

    DisplayedObjects - HighlightedObjects MapViewSelectedObjects

    - 19 -

  • 8/3/2019 GeoMedia

    20/79

    RecordsetObject -

    RecordObject -

    GeometryObject -

    RasterObject -

    6GDO

    GeoMedia GDO

    GDO

    GDatabase

    GTableDef

    GField

    GIndex

    GRecordset

    GError

    - 20 -

  • 8/3/2019 GeoMedia

    21/79

    GFRMAdminExt