bnsf railway · · 2018-04-01bnsf railway schematic generation from gis ... signal data roadway...
TRANSCRIPT
BNSF Railway
Schematic Generation from GIS2011 Geospatial Solutions Conference
April 12, 2011
Presented by Ben Smith, Engineer Maps & Records
Track Charts & Data
Track Charts have always been driven by data.
Alignment and grade
Rail, Ties, Ballast
Other Physical and Operational Attributes
Dynamic Nature of Data
This data has the chance to change every business day.
Construction and Expansion
Maintenance Activity
Operational Updates
The “Track Chart” Dilemma
How to provide “up to date” Track Charts with a minimal
amount of manual interaction?
When your only tool is a hammer…all your problems resemble nails.
Sources of Track Chart Data
Network Control
Signal Data
Roadway Information
System
Maintenance Data
Structures
Bridge & Culvert Data
GIS Data Integration
Potential Track Chart Data
Engineering GIS Database
Track Network, Connectivity & Reference Information
The “Schematic” Answer
Find new tools to solve the issue.
Query the network data from GIS
Automate the generation of Track Charts
Pull from existing non-spatial data sources
Extract data from CAD files
The Big Picture
Extractor
Iteration
TrackCharts
XML DocumentXML Document
XML Document
CADFilesCAD
FilesCADFiles
XML Defined
XML output to drive the process
XML (Extensible Markup Language) is a set of rules for encoding documents electronically. It is defined in the XML 1.0 Specification produced by the W3C and several other related specifications; all are fee-free open standards.
The Extracted XML
Iteration
XML DocumentXML Document
XML DocumentRoute ID (line segment)
Track NumbersPage Begin MilepostPage End Milepost
Provides the data to build queries.
The Base XML<CHART line-segment="Line Segment 7100" page="10" subdivision="Emporia Subdivision"
left-station="Wellington, KS" right-station="Kansas City, MO" revised="Revised: 10/10/2008" dgn-file="EMP010.DGN" railroad="" dgn-path="trkchrts/dgn/04-Kansas/Emporia" pdf-file="Emporia.pdf" pdf-path="trkchrts/pdf/Kansas">
<REGIONS><REGION line-segment="7100" min-mp="180" min-mp-x="26400.5" max-mp="185" max-mp-
x="0.5" right-to-left="IMPL" west-is-left="WL" tracks="12" ss-visible=""><MILES><MILE mp="180" ss="10230+58" line-x="26400.5" feet-per-mile="5280'" feet-per-mile-
visible="" /><MILE mp="181" ss="10283+38" line-x="21120.5" feet-per-mile="5280'" feet-per-mile-
visible="" /><MILE mp="182" ss="10336+18" line-x="15840.5" feet-per-mile="5280'" feet-per-mile-
visible="" /><MILE mp="183" ss="10388+98" line-x="10560.5" feet-per-mile="5280'" feet-per-mile-
visible="" /><MILE mp="184" ss="10441+78" line-x="5280.5" feet-per-mile="5280'" feet-per-mile-
visible="" /><MILE mp="185" ss="10494+58" line-x="0.5" />
</MILES></REGION>
</REGIONS></CHART>
The .XTQ file
Comprised of all the SQL queries for a specific page.
Executes typical non spatial queries
Executes spatial queries utilizing Spatial Extender
Creates a collection of global temporary tables
IBM DB2 Spatial Extender Defined
Included on current installations of DB2
DB2 Spatial Extender extends the function of DB2 with a set of advanced spatial data types that represent
geometries such as points, lines, and polygons and many functions and features that interoperate with those new
data types.
SQL with Spatial Extender
NEARS5 as (SELECT DISTINCTS.REGION_NBR,T.OBJECTID,T.LINE_SEG_NBR,T.TRACK_SDTK_NBR,T.TRACK_TYPE,T.MILE_POST_BEG,T.MILE_POST_END,T.CO_ABBR,db2gse.ST_Length(T.SHAPE, 'US FOOT') as LENGTHFROMGGADMIN.FTRACK_ENG_LIN as T,SHAPE50 as SWHERE db2gse.ST_Intersects(T.SHAPE,
db2gse.ST_Buffer(S.SHAPE,5,'US FOOT'))=1and (T.effective_ts <= current timestamp or T.effective_ts is null)and (current timestamp < T.expire_ts or T.expire_ts is null))
Spatial Extender Selecting Track
REFSHAPE as (SELECT REGION_NBR, REGION_LSEG, REGION_BEG,
REGION_END,db2gse.ST_ToMultiLine(db2gse.st_generalize(db2gse.ST_MeasureBetween(db2gse.ST_ToMultiLine(db2gse.st_generalize(db2gse.ST_GetAggrResult(Max(db2gse.ST_BuildUnionAggr(SHAPE))
),0.0)
),REGION_BEG, REGION_END),0.0
)) as SHAPE
Spatial Extender Creating Points
WITHFEET5PTS3X as (SELECTREGION_NBR,TOOBJECTID,TKOBJECTID1,db2gse.ST_PointFromText(POINT1, SRID) as POINT1,TKOBJECTID2,db2gse.ST_PointFromText(POINT2, SRID) as POINT2,TKOBJECTID3,db2gse.ST_PointFromText(POINT3, SRID) as POINT3FROM SESSION.NEARBY),
Spatial Extender with Distance
FEET5PTSN as (SELECT REGION_NBR, TOOBJECTID,POINT1 as ENTRANCE_PT, TKOBJECTID1 as NTRANCE_TKOID,POINT2 as EXITA_PT, TKOBJECTID2 as EXITA_TKOID,POINT3 as EXITB_PT, TKOBJECTID3 as EXITB_TKOID,db2gse.ST_Distance (POINT1, POINT2, 'US FOOT')+db2gse.ST_Distance (POINT1, POINT3, 'US FOOT') as DISTSUM FROM FEET5PTS3XUNION ALL
SELECT REGION_NBR, TOOBJECTID,POINT2 as ENTRANCE_PT, TKOBJECTID2 as NTRANCE_TKOID,POINT1 as EXITA_PT, TKOBJECTID1 as EXITA_TKOID,POINT3 as EXITB_PT, TKOBJECTID3 as EXITB_TKOID,db2gse.ST_Distance (POINT2, POINT1, 'US FOOT')+db2gse.ST_Distance (POINT2, POINT3, 'US FOOT') as DISTSUM FROM FEET5PTS3XUNION ALL
SELECT REGION_NBR, TOOBJECTID,POINT3 as ENTRANCE_PT, TKOBJECTID3 as NTRANCE_TKOID,POINT1 as EXITA_PT, TKOBJECTID1 as EXITA_TKOID,POINT2 as EXITB_PT, TKOBJECTID2 as EXITB_TKOID,db2gse.ST_Distance (POINT3, POINT1, 'US FOOT')+db2gse.ST_Distance (POINT3, POINT2, 'US FOOT') as DISTSUM FROM FEET5PTS3X
Spatial Extender Point Measures
FEET5LABELED as (SELECT A.REGION_NBR, A.TOOBJECTID,ENTRANCE_TKOID, EXITA_TKOID, EXITB_TKOID,db2gse.ST_M(ENTRANCE_PT) as ENTRANCE_M,db2gse.ST_M(EXITA_PT) as EXITA_M,db2gse.ST_M(EXITB_PT) as EXITB_MFROM FEET5PTSN as AJOIN (SELECT REGION_NBR, TOOBJECTID,
MAX(DISTSUM) as DISTMAXFROM FEET5PTSNGROUP BY REGION_NBR, TOOBJECTID) as M
ON A.REGION_NBR = M.REGION_NBRAND A.TOOBJECTID = M.TOOBJECTIDAND A.DISTSUM = M.DISTMAX),
SVG Defined
An open standard developed by W3C
Scalable Vector Graphics (SVG) is a family of specifications of an XML-based file format for describing two-dimensional vector graphics, both static and dynamic
(i.e. interactive or animated).
The Flexibility of SVG
SVG is XML based, simple in structure, and dedicated to graphics.
Easy to utilize in the TCAP screens or other apps.
Existing transforms for PDF, DGN, DWG, etc.
Already in use for web and mobile applications
For Additional Information
World Wide Web Consortium (W3C)http://www.w3.org/
XML - http://www.w3.org/standards/xml/
SVG - http://www.w3.org/Graphics/SVG/
Microsoft XML Notepadhttp://www.microsoft.com/downloads/en/default.aspx
IBM DB2 Spatial Extenderhttp://www-01.ibm.com/software/data/spatial/db2spatial/