Automated Coding of Stream-Order or: SQL Magic in GIS By Gido - - PowerPoint PPT Presentation

automated coding of stream order or sql magic in gis
SMART_READER_LITE
LIVE PREVIEW

Automated Coding of Stream-Order or: SQL Magic in GIS By Gido - - PowerPoint PPT Presentation

Automated Coding of Stream-Order or: SQL Magic in GIS By Gido Langen The sample network - Strahler order coding - Why a new method 1 st order 2 nd order 3 rd order 4 th order Network representation - Geometric network - Implicit network


slide-1
SLIDE 1

Automated Coding of Stream-Order

  • r: SQL Magic in GIS

By Gido Langen

slide-2
SLIDE 2

The sample network

  • Strahler order coding
  • Why a new method

1st order 2nd order 3rd order 4th order

slide-3
SLIDE 3

Network representation

  • Geometric network
  • Implicit network

data structure

  • No explicit network

data structure/model

slide-4
SLIDE 4

Explicit network data model

  • Network topology
  • Connectivity
  • From-to-node notation
slide-5
SLIDE 5

Create network data structure

Create nodes

Start & end nodes

Spatial join

Confluence or braiding

Node removal

Remove duplicate nodes

  • From geometric data structure
  • To topological network data model
slide-6
SLIDE 6

Topological network data model

  • Segment table
  • Node table
slide-7
SLIDE 7

Strahler order coding rules

  • Iterative elimination of upper-most branches
  • Special cases: bridges, braided streams
slide-8
SLIDE 8

Strahler order coding rules

  • SQL implementation
  • Segments whose From-nodes

have no corresponding To-nodes

  • Find bridge segments
  • Find nodes that are From-nodes
  • f more than one segment
  • Confluences of braided streams

keep highest Strahler order code

slide-9
SLIDE 9

Uppermost segments

  • From-nodes without corresponding To-nodes
  • Summarize To-nodes
  • Relate From-nodes to To-nodes
  • “Unrelated” From-nodes are

part of uppermost segments

  • Code segments

create view end_node_frequency as select node, count(node) as frequency from end_nodes group by node

slide-10
SLIDE 10

Bridge segments

  • From-nodes with a single To-node

create view bridge_nodes as select * from end_node_frequency inner join segments on end_node_frequency.node = segments.to_node where end_node_frequency.frequency = 1 and segments.code = segments.curr_ord

slide-11
SLIDE 11

Braided streams

  • Start at To-nodes with multiple From-nodes
  • Code bridge segments
  • Keep highest order at downstream confluences
slide-12
SLIDE 12

Resulting Network

slide-13
SLIDE 13

Magic of Attribute

  • Quality control & efficiencies
  • Find gaps easily
  • Nightly updates of database because of attribute changes
  • Good database design/database normalization
  • Faster more reliable updates
slide-14
SLIDE 14