23

Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location
Page 2: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

Navigating PODS and APDMNavigating PODS and APDMPipeline Models 101Pipeline Models 101

John Linehan GISPJohn Linehan GISPGIS Database ConsultantGIS Database Consultant

Geospatial Integration ServicesGeospatial Integration ServicesHouston TXHouston TX

Page 3: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

What is a database model?What is a database model?

A model defines data storage and structure A model defines data storage and structure as well as defining operations that can be as well as defining operations that can be performed on the data.performed on the data.

•• Relational models allow operations such as select Relational models allow operations such as select and join using SQL commands to manipulate and and join using SQL commands to manipulate and extract data.extract data.

•• Spatial models Spatial models alsoalso allow operations based on allow operations based on topology to query and extract data based on topology to query and extract data based on location.location.

Page 4: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

PODS BackgroundPODS Background

PODS PODS –– Pipeline Open Database StandardPipeline Open Database Standard

•• Developed by the Gas Technology Institute Developed by the Gas Technology Institute (GTI) along with several Operators and (GTI) along with several Operators and vendors beginning in 1995.vendors beginning in 1995.

•• Enhancement of ISAT database.Enhancement of ISAT database.•• Bridges ISAT gaps in GIS integration, Bridges ISAT gaps in GIS integration, normalization, and common pipeline normalization, and common pipeline industry practices.industry practices.

Page 5: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

PODS BackgroundPODS Background

•• Standard release is a Relational Model.Standard release is a Relational Model.•• Commonly loaded using SQL.Commonly loaded using SQL.•• Somewhat Proprietary, Owned by PODS.Somewhat Proprietary, Owned by PODS.•• Platform independent, closely Platform independent, closely ““LinkedLinked””with mapping application.with mapping application.

““Complete and Ready out of the boxComplete and Ready out of the box””

Page 6: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

APDM BackgroundAPDM Background

APDM APDM –– ArcGIS Pipeline Data ModelArcGIS Pipeline Data Model

•• Developed on the ESRI ArcGIS platform by Developed on the ESRI ArcGIS platform by several pipeline operators and vendors several pipeline operators and vendors beginning in 2002.beginning in 2002.

•• Developed as a template, not a complete Developed as a template, not a complete database.database.

•• Common pipeline practices are optimized Common pipeline practices are optimized by ArcGIS dynamic segmentation and by ArcGIS dynamic segmentation and spatial toolsets.spatial toolsets.

Page 7: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

APDM BackgroundAPDM Background

•• Standard release is a Spatial Model.Standard release is a Spatial Model.•• Commonly designed and installed using Commonly designed and installed using Case/UML.Case/UML.

•• Open Architecture. Open Architecture. •• Spatial platform needed to fully utilize Spatial platform needed to fully utilize model.model.

““Some assembly requiredSome assembly required””

Page 8: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

CORE TablesCORE TablesPODSPODS

LINELINEROUTEROUTESERIESSERIESFEATURE_TABLEFEATURE_TABLEEVENT_RANGEEVENT_RANGESTATION_POINTSTATION_POINTLOCATIONLOCATIONCOORDINATECOORDINATE

APDMAPDMLineLoopLineLoopStationSeriesStationSeriesControlPointControlPointAltRefMeasure (ver 4)AltRefMeasure (ver 4)SubSystemSubSystemSubSystemRangeSubSystemRangeActivityActivityOwnerOperatorOwnerOperatorProductProductAudit Tables Audit Tables Hierarchy TablesHierarchy TablesAPDMClass (Metadata)APDMClass (Metadata)ReferenceMode (Metadata)ReferenceMode (Metadata)OnlineLocationClass (Metadata)OnlineLocationClass (Metadata)

Page 9: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

The Data Chain in PODSThe Data Chain in PODS

–– Information is stored in relational database tables.Information is stored in relational database tables.–– These tables are cataloged in the FEATURE_TABLE.These tables are cataloged in the FEATURE_TABLE.–– All elements are related through the EVENT_RANGE table All elements are related through the EVENT_RANGE table

via the EVENT_ID or EVENT_GUID.via the EVENT_ID or EVENT_GUID.–– This _ID or _GUID is used to link with the spatial element This _ID or _GUID is used to link with the spatial element

in the mapping application.in the mapping application.–– Elements in the EVENT_RANGE table have Elements in the EVENT_RANGE table have

STATION_POINT locations.STATION_POINT locations.–– STATION_POINT locations have realSTATION_POINT locations have real--world coordinates in world coordinates in

the COORDINATE table.the COORDINATE table.

–– For Centerlines, one or more Event_Ranges define a For Centerlines, one or more Event_Ranges define a SERIES. One or more Series compose a ROUTE and one SERIES. One or more Series compose a ROUTE and one or more Routes compose a LINE.or more Routes compose a LINE.

Page 10: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location
Page 11: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

PODS Event_Range – “Heart of the model”

Page 12: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

The Data Chain in APDMThe Data Chain in APDM

–– Information is stored in object classes.Information is stored in object classes.–– These classes are Abstract, Object, or ConcreteThese classes are Abstract, Object, or Concrete

•• Abstract Abstract –– root class which others inherit fromroot class which others inherit from•• Object Object –– NonNon--spatial class spatial class –– Event & ActivityEvent & Activity•• Concrete Concrete –– Spatial features Spatial features –– ESRI Objects (line, point etc)ESRI Objects (line, point etc)

–– All spatial features are associated with a All spatial features are associated with a StationSeriesStationSeries–– ControlPoint ControlPoint stores the stationed mapping coordinates for a stores the stationed mapping coordinates for a

StationSeriesStationSeries–– The measured stationing for spatial features (points, lines, etcThe measured stationing for spatial features (points, lines, etc) )

are stored in the are stored in the AltRefMeasureAltRefMeasure table (Ver 4) table (Ver 4) •• Ver 5 Ver 5 –– Measures are stored in spatial featureMeasures are stored in spatial feature

–– The StationSeries is the base for Dynamic Segmentation The StationSeries is the base for Dynamic Segmentation placement of features using measure values from placement of features using measure values from AltRefMeasure.AltRefMeasure.

–– NonNon--spatial support objects are related to spatial objects using spatial support objects are related to spatial objects using the EventID GUID. These relationships are built into the model.the EventID GUID. These relationships are built into the model.

–– For Centerlines, one or more StationSeries define a For Centerlines, one or more StationSeries define a LineLoopLineLoop. . –– StationSeries may be grouped into StationSeries may be grouped into SystemSystem and and SubSystemSubSystem..

Page 13: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location
Page 14: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

APDM Centerline Tables – “Core Elements”

Page 15: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

PODS Core Elements

Page 16: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

APDM Core Elements

Page 17: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

STATIONINGSTATIONING

•• Stationing is a means to reference distance along a linear Stationing is a means to reference distance along a linear feature from start to end.feature from start to end.

–– Continuous / Series Stationing references distances along the Continuous / Series Stationing references distances along the centerline centerline ““as the crow fliesas the crow flies””. It is the overall length in 2D. It is the overall length in 2D

–– Engineering / Measure Stationing references distances along Engineering / Measure Stationing references distances along the centerline the centerline ““as surveyedas surveyed””. It is the overall length in 3D. It is the overall length in 3D

•• Throughout the history of the pipeline, itThroughout the history of the pipeline, it’’s stationing may s stationing may change due to rechange due to re--routes, extensions, and removal. These routes, extensions, and removal. These changes are handled through the use of changes are handled through the use of ““EquationsEquations””..

•• Stationing is calibrated to the centerline using known points.Stationing is calibrated to the centerline using known points.–– In PODS, these are managed by the Station_Point/Coordinate In PODS, these are managed by the Station_Point/Coordinate

tables.tables.–– In APDM, these are managed in the ControlPoint table.In APDM, these are managed in the ControlPoint table.

Page 18: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

GUID’s and ID’s

• A GUID is a 16 byte (38 character) hexadecimal string called a Global Unique Identifier.

• GUID’s are commonly generated by the underlying database software.

• Example GUID: 38a52be4-9352-453e-af97-5c3b448652f0• There are a possible 3.4 x 1038 GUID’s. The possibility of two

being the same is extremely unlikely.

• ID’s are usually generated sequentially by applications based on prior counts, or they are user assigned.

• They are integer values • The possibility of two ID’s of the same value is high.

Page 19: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

Domains

PODS• Domains are kept in Code Lookup tables.

– CL – Code Lookup – unique for a specific feature– GCL – General Code Lookup – used by several features– SCL – Sub-Code Lookup – Multi-value containing a general

domain with sub-domains listed as well.

APDM• Domains are managed by SDE and may be edited using the

Properties tab for the database.• Domain relationships are defined when constructing the

model.• Two types:

– Code Value – The domain and description are in text– Range Value – Numeric domain where the value must be within a

specified range.

Page 20: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

QUERY PODSQUERY PODSReturn Event_ID and Line Name for all lines in Return Event_ID and Line Name for all lines in

Pipe_Segment with diameter = 24Pipe_Segment with diameter = 24””..

SELECT dbo.SELECT dbo.PIPEPIPE__SEGMENTSEGMENT.EVENT_ID AS PSEG_EventID, .EVENT_ID AS PSEG_EventID, dbo.dbo.LINELINE.DESIGNATOR AS LineName.DESIGNATOR AS LineName

FROM dbo.PIPE_SEGMENT INNER JOINFROM dbo.PIPE_SEGMENT INNER JOINdbo.dbo.STATION_POINTSTATION_POINT INNER JOININNER JOINdbo.dbo.EVENT_RANGEEVENT_RANGE ON ON

dbo.STATION_POINT.STATION_ID = dbo.STATION_POINT.STATION_ID = dbo.EVENT_RANGE.STATION_ID_END ON dbo.EVENT_RANGE.STATION_ID_END ON dbo.PIPE_SEGMENT.EVENT_ID = dbo.PIPE_SEGMENT.EVENT_ID =

dbo.EVENT_RANGE.EVENT_ID INNER JOINdbo.EVENT_RANGE.EVENT_ID INNER JOINdbo.LINE ON dbo.STATION_POINT.LINE_ID =dbo.LINE ON dbo.STATION_POINT.LINE_ID =dbo.LINE.LINE_IDdbo.LINE.LINE_ID

INTO PSEG_Event_ID_TblINTO PSEG_Event_ID_TblWHERE (dbo.EVENT_RANGE.FEATURE_ID = 'PSEG') AND WHERE (dbo.EVENT_RANGE.FEATURE_ID = 'PSEG') AND

(dbo.PIPE_SEGMENT.Nominal_Diameter_GCL = 24)(dbo.PIPE_SEGMENT.Nominal_Diameter_GCL = 24)

The PSEG_EVENT_ID_Tbl is then related to the Pipe_Segment linearThe PSEG_EVENT_ID_Tbl is then related to the Pipe_Segment linearfeature in the mapping application for display.feature in the mapping application for display.

Page 21: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

QUERY APDMQUERY APDMDisplay features in ArcMAP for Transmission lines Display features in ArcMAP for Transmission lines

with diameter = 24with diameter = 24””..

SELECT sde.SELECT sde.PipeSegmentPipeSegment.*.*FROM sde.FROM sde.PipeSegmentPipeSegmentWHERE (sde.PipeSegment.NominalDiameter = 24) AND WHERE (sde.PipeSegment.NominalDiameter = 24) AND

(sde.PipeSegment.StationSeriesEventID IN(sde.PipeSegment.StationSeriesEventID IN(SELECT Distinct EventID (SELECT Distinct EventID FROM sde.FROM sde.StationSeriesStationSeriesWHERE LineLoopEventID INWHERE LineLoopEventID IN

(SELECT EventID (SELECT EventID FROM sde.FROM sde.LineLoopLineLoopWHERE LineType = WHERE LineType = ‘‘TransmissionTransmission’’))))))

This query is run from the Properties This query is run from the Properties –– Query Definition tab on Query Definition tab on the PipeSegment Layer in ArcMAP.the PipeSegment Layer in ArcMAP.

Page 22: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

Considerations when editing

Use Versioning if possible!!

PODS• You are editing two distinct databases – the PODS database and the

spatial features in in the mapping application.• Changing the location or stationing in one will not automatically

update the other without a synchronizing application.• Care must be taken when adding or splitting features that their

Event_ID’s be managed correctly.

APDM• Editing the spatial features also changes the database. • Care must be taken when clipping or deleting features, you may

leave orphans.• Adjusting the centerline will adjust the locations of associated

dynamically placed features.

Page 23: Navigating PODS and APDM - Esri...PODS • You are editing two distinct databases – the PODS database and the spatial features in in the mapping application. • Changing the location

Questions?

Thank YouJohn Linehan, GISP

GIS ConsultantGeospatial Integration Services

[email protected]