## Template for the BinaryDataViewer ## LocationType ## ## 0 = UNKNOWN ## 1 = LINE_LOCATION ## 2 = GEO_COORDINATES ## 3 = POINT_ALONG_LINE ## 4 = POI_WITH_ACCESS_POINT ## Binary data viewer, version $bdvVersion Data id: $id Bytes ===== total number of bytes: $numberOfBytes #set ($byteList = $bytes.getBytes()) #foreach ($b in $byteList) #set ($index = $velocityCount - 1) #set ($prefix = 0) #if ($index > 9) #set ($prefix = "") #end byte: $prefix$index [$b.bitValue()] $b.hexValue() #end Header ====== Version: $header.version #if ($header.version == 3) Point flag: $header.pf [#if ($header.pf == 1)true#{else}false#end] #end Area flag: $header.arf [#if ($header.arf == 1)true#{else}false#end] Attribute flag: $header.af [#if ($header.af == 1)true#{else}false#end] Type ==== Location type: $locType [#if ($locType == 0)UNKNOWN#{elseif} ($locType == 1)LINE_LOCATION#{elseif} ($locType == 2)GEO_COORDINATE#{elseif} ($locType == 3)POINT_ALONG_LINE#{elseif} ($locType == 4)POI_WITH_ACCESS_POINT#end] #if ($locType == 2) Geo-Coordinate ============== Longitude: $geoCoord.longitudeDeg Latitude: $geoCoord.latitudeDeg #elseif ($locType == 3) First LRP ========= ID: $firstLRP.id Longitude: $firstLRP.longitudeDeg Latitude: $firstLRP.latitudeDeg Functional road class: $firstLRP.frc [$firstLRP.frc.name()] Form of way: $firstLRP.fow [$firstLRP.fow.name()] Bearing sector: $firstLRP.bear [$firstLRP.bear.lowerBound() - $firstLRP.bear.upperBound()] Lowest functional road class to next point: $firstLRP.lfrcnp [$firstLRP.lfrcnp.name()] Distance to next point interval: $firstLRP.dnp [$firstLRP.dnp.lowerBound()m - $firstLRP.dnp.upperBound()m] Last LRP ======== ID: $lastLRP.id Longitude: $lastLRP.longitudeDeg Latitude: $lastLRP.latitudeDeg Functional road class: $lastLRP.frc [$lastLRP.frc.name()] Form of way: $lastLRP.fow [$lastLRP.fow.name()] Bearing sector: $lastLRP.bear [$lastLRP.bear.lowerBound() - $lastLRP.bear.upperBound()] Positive offset flag: $lastLRP.posOff [#if ($lastLRP.posOff == 1)true#{else}false#end] Negative offset flag: $lastLRP.negOff [#if ($lastLRP.negOff == 1)true#{else}false#end] Offsets ========= #if ($header.version == 2) Positive offset: #if ($posOff)$posOff [$posOff.lowerBound()m - $posOff.upperBound()m]#{else}no offset#end Negative offset: #if ($negOff)$negOff [$negOff.lowerBound()m - $negOff.upperBound()m]#{else}no offset#end #else Positive offset: #if ($posOff)$posOff [$posOff.getRelativeOffsetLowerBound() - $posOff.getRelativeOffsetUpperBound()]#{else}no offset#end Negative offset: #if ($negOff)$negOff [$negOff.getRelativeOffsetLowerBound() - $negOff.getRelativeOffsetUpperBound()]#{else}no offset#end #end Additional information ====================== Side of road: $sideOfRoad Orientation: $orientation #elseif ($locType == 4) First LRP ========= ID: $firstLRP.id Longitude: $firstLRP.longitudeDeg Latitude: $firstLRP.latitudeDeg Functional road class: $firstLRP.frc [$firstLRP.frc.name()] Form of way: $firstLRP.fow [$firstLRP.fow.name()] Bearing sector: $firstLRP.bear [$firstLRP.bear.lowerBound() - $firstLRP.bear.upperBound()] Lowest functional road class to next point: $firstLRP.lfrcnp [$firstLRP.lfrcnp.name()] Distance to next point interval: $firstLRP.dnp [$firstLRP.dnp.lowerBound()m - $firstLRP.dnp.upperBound()m] Last LRP ======== ID: $lastLRP.id Longitude: $lastLRP.longitudeDeg Latitude: $lastLRP.latitudeDeg Functional road class: $lastLRP.frc [$lastLRP.frc.name()] Form of way: $lastLRP.fow [$lastLRP.fow.name()] Bearing sector: $lastLRP.bear [$lastLRP.bear.lowerBound() - $lastLRP.bear.upperBound()] Positive offset flag: $lastLRP.posOff [#if ($lastLRP.posOff == 1)true#{else}false#end] Negative offset flag: $lastLRP.negOff [#if ($lastLRP.negOff == 1)true#{else}false#end] Offsets ========= #if ($header.version == 2) Positive offset: #if ($posOff)$posOff [$posOff.lowerBound()m - $posOff.upperBound()m]#{else}no offset#end Negative offset: #if ($negOff)$negOff [$negOff.lowerBound()m - $negOff.upperBound()m]#{else}no offset#end #else Positive offset: #if ($posOff)$posOff [$posOff.getRelativeOffsetLowerBound() - $posOff.getRelativeOffsetUpperBound()]#{else}no offset#end Negative offset: #if ($negOff)$negOff [$negOff.getRelativeOffsetLowerBound() - $negOff.getRelativeOffsetUpperBound()]#{else}no offset#end #end Geo-Coordinate ============== Longitude: $geoCoord.longitudeDeg Latitude: $geoCoord.latitudeDeg Additional information ====================== Side of road: $sideOfRoad Orientation: $orientation #elseif ($locType == 1) First LRP ========= ID: $firstLRP.id Longitude: $firstLRP.longitudeDeg Latitude: $firstLRP.latitudeDeg Functional road class: $firstLRP.frc [$firstLRP.frc.name()] Form of way: $firstLRP.fow [$firstLRP.fow.name()] Bearing sector: $firstLRP.bear [$firstLRP.bear.lowerBound() - $firstLRP.bear.upperBound()] Lowest functional road class to next point: $firstLRP.lfrcnp [$firstLRP.lfrcnp.name()] Distance to next point interval: $firstLRP.dnp [$firstLRP.dnp.lowerBound()m - $firstLRP.dnp.upperBound()m] #if ($intermediates) Intermediate LRP ================ #foreach ($interm in $intermediates) ID: $interm.id Longitude: $interm.longitudeDeg Latitude: $interm.latitudeDeg Functional road class: $interm.frc [$interm.frc.name()] Form of way: $interm.fow [$interm.fow.name()] Bearing sector: $interm.bear [$interm.bear.lowerBound() - $interm.bear.upperBound()] Lowest functional road class to next point: $interm.lfrcnp [$interm.lfrcnp.name()] Distance to next point interval: $interm.dnp [$interm.dnp.lowerBound()m - $interm.dnp.upperBound()m] #end #end Last LRP ======== ID: $lastLRP.id Longitude: $lastLRP.longitudeDeg Latitude: $lastLRP.latitudeDeg Functional road class: $lastLRP.frc [$lastLRP.frc.name()] Form of way: $lastLRP.fow [$lastLRP.fow.name()] Bearing sector: $lastLRP.bear [$lastLRP.bear.lowerBound() - $lastLRP.bear.upperBound()] Positive offset flag: $lastLRP.posOff [#if ($lastLRP.posOff == 1)true#{else}false#end] Negative offset flag: $lastLRP.negOff [#if ($lastLRP.negOff == 1)true#{else}false#end] Offsets ========= #if ($header.version == 2) Positive offset: #if ($posOff)$posOff [$posOff.lowerBound()m - $posOff.upperBound()m]#{else}no offset#end Negative offset: #if ($negOff)$negOff [$negOff.lowerBound()m - $negOff.upperBound()m]#{else}no offset#end #else Positive offset: #if ($posOff)$posOff [$posOff.getRelativeOffsetLowerBound() - $posOff.getRelativeOffsetUpperBound()]#{else}no offset#end Negative offset: #if ($negOff)$negOff [$negOff.getRelativeOffsetLowerBound() - $negOff.getRelativeOffsetUpperBound()]#{else}no offset#end #end #end