diff options
| author | Xinhui | 2017-01-24 12:20:59 +0100 |
|---|---|---|
| committer | Xinhui | 2017-01-24 12:20:59 +0100 |
| commit | 17e8676b5456a51697168659a10693ddec7633ce (patch) | |
| tree | 2ea10cfc9e52aefef0093051ade74af27b08833c | |
| parent | 2174668073a0cf6e03114b4fd3e0a91678009642 (diff) | |
| download | chouette-core-17e8676b5456a51697168659a10693ddec7633ce.tar.bz2 | |
Fix area_type of Quay is now based on OBJET_QUALIFIER value
Refs #2451
| -rw-r--r-- | Gemfile.lock | 6 | ||||
| -rw-r--r-- | lib/stif/reflex_synchronization.rb | 9 |
2 files changed, 10 insertions, 5 deletions
diff --git a/Gemfile.lock b/Gemfile.lock index 4e07a585a..1f05ba75b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -23,7 +23,7 @@ GIT GIT remote: git@github.com:AF83/stif-reflex-api.git - revision: 2c01010dce3a6cb39339995c373faf89ae00f3f3 + revision: 152d1b48ec0792bf086e731d099a1d8954369b85 specs: reflex (0.0.1) nokogiri (~> 1.6) @@ -316,9 +316,9 @@ GEM net-ssh-gateway (1.2.0) net-ssh (>= 2.6.5) newrelic_rpm (3.11.2.286) - nokogiri (1.6.8.1) + nokogiri (1.7.0.1) mini_portile2 (~> 2.1.0) - nokogiri (1.6.8.1-java) + nokogiri (1.7.0.1-java) notiffany (0.0.6) nenv (~> 0.1) shellany (~> 0.0) diff --git a/lib/stif/reflex_synchronization.rb b/lib/stif/reflex_synchronization.rb index b620051af..b7001bf68 100644 --- a/lib/stif/reflex_synchronization.rb +++ b/lib/stif/reflex_synchronization.rb @@ -71,8 +71,13 @@ module Stif end def stop_area_area_type entry, method - type = entry['type'] == 'Quay' ? 'zde' : entry['TypeOfPlaceRef'] - type = "#{type.to_s}#{method.last}" unless type == 'LDA' + if entry['type'] == 'Quay' + type = 'zder' if entry['OBJECT_STATUS'] == 'REFERENCE_OBJECT' + type = 'zdep' if entry['OBJECT_STATUS'] == 'LOCAL_OBJECT' + else + type = entry['TypeOfPlaceRef'] + type = "#{type.to_s}#{method.last}" unless type == 'LDA' + end type.downcase end |
