| 1 | package NDFD::Weather::XML; | ||||||||||
| 2 | 1 | our $VERSION=1.00; | |||||||||
| 3 | 0 | ▶ | sub __new { | ||||||||
|
Subroutine
__new: not called CC=1 SCAR=6.9
| |||||||||||
| 4 | 0 | my $class = shift; | |||||||||
| 5 | 0 | my $self = bless {}, $class; | |||||||||
| 6 | 0 | return $self; | |||||||||
| 7 | } | ||||||||||
| 8 | 0 | ▶ | sub CornerPointsXML{ | ||||||||
|
Subroutine
CornerPointsXML: not called CC=1 SCAR=6.9
| |||||||||||
| 9 | 0 | my $refs1=shift; | |||||||||
| 10 | return | ||||||||||
| 11 | SOAP::Data->name('sector')->value($$refs1{sector}) | ||||||||||
| 12 | 0 | ->prefix('')->type(''); | |||||||||
| 13 | |||||||||||
| 14 | } | ||||||||||
| 15 | 0 | ▶ | sub LatLonListCityNamesXML{ | ||||||||
|
Subroutine
LatLonListCityNamesXML: not called CC=1 SCAR=6.9
| |||||||||||
| 16 | 0 | my $refs1=shift; | |||||||||
| 17 | return | ||||||||||
| 18 | SOAP::Data->name('displayLevel')->value($$refs1{displayLevel}) | ||||||||||
| 19 | 0 | ->prefix('')->type(''); | |||||||||
| 20 | } | ||||||||||
| 21 | 0 | ▶ | sub LatLonListZipCodeXML{ | ||||||||
|
Subroutine
LatLonListZipCodeXML: not called CC=1 SCAR=6.9
| |||||||||||
| 22 | 0 | my $refs1=shift; | |||||||||
| 23 | return | ||||||||||
| 24 | SOAP::Data->name('zipCodeList')->value($$refs1{zipCodeList}) | ||||||||||
| 25 | 0 | ->prefix('')->type(''); | |||||||||
| 26 | } | ||||||||||
| 27 | 0 | ▶ | sub NDFDgenByDayXML{ | ||||||||
|
Subroutine
NDFDgenByDayXML: not called CC=2 SCAR=17.9
| |||||||||||
| 28 | 0 | my $refs1=shift; | |||||||||
| 29 | 0 | ▶ | $$refs1{Unit}=$$refs1{Unit}?$$refs1{Unit}:""; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 30 | return | ||||||||||
| 31 | SOAP::Data->name('latitude')->value($$refs1{latitude}) | ||||||||||
| 32 | ->prefix('')->type(''), | ||||||||||
| 33 | SOAP::Data->name('longitude')->value($$refs1{longitude}) | ||||||||||
| 34 | ->prefix('')->type(''), | ||||||||||
| 35 | SOAP::Data->name('startDate')->value($$refs1{startDate}) | ||||||||||
| 36 | ->prefix('')->type(''), | ||||||||||
| 37 | SOAP::Data->name('numDays')->value($$refs1{numDays}) | ||||||||||
| 38 | ->prefix('')->type(''), | ||||||||||
| 39 | SOAP::Data->name('Unit')->value($$refs1{Unit}) | ||||||||||
| 40 | ->prefix('')->type(''), | ||||||||||
| 41 | SOAP::Data->name('format')->value($$refs1{format}) | ||||||||||
| 42 | 0 | ->prefix('')->type(''), | |||||||||
| 43 | ; | ||||||||||
| 44 | } | ||||||||||
| 45 | 0 | ▶ | sub NDFDgenByDayLatLonListXML{ | ||||||||
|
Subroutine
NDFDgenByDayLatLonListXML: not called CC=2 SCAR=17.9
| |||||||||||
| 46 | 0 | my $refs1=shift; | |||||||||
| 47 | 0 | ▶ | $$refs1{Unit}=$$refs1{Unit}?$$refs1{Unit}:""; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 48 | return | ||||||||||
| 49 | SOAP::Data->name('listLatLon')->value($$refs1{listLatLon}) | ||||||||||
| 50 | ->prefix('')->type(''), | ||||||||||
| 51 | SOAP::Data->name('startDate')->value($$refs1{startDate}) | ||||||||||
| 52 | ->prefix('')->type(''), | ||||||||||
| 53 | SOAP::Data->name('numDays')->value($$refs1{numDays}) | ||||||||||
| 54 | ->prefix('')->type(''), | ||||||||||
| 55 | SOAP::Data->name('Unit')->value($$refs1{Unit}) | ||||||||||
| 56 | ->prefix('')->type(''), | ||||||||||
| 57 | SOAP::Data->name('format')->value($$refs1{format}) | ||||||||||
| 58 | 0 | ->prefix('')->type(''), | |||||||||
| 59 | ; | ||||||||||
| 60 | } | ||||||||||
| 61 | 0 | ▶ | sub GmlLatLonListXML{ | ||||||||
|
Subroutine
GmlLatLonListXML: not called CC=1 SCAR=6.9
| |||||||||||
| 62 | 0 | my $refs1=shift; | |||||||||
| 63 | return | ||||||||||
| 64 | SOAP::Data->name('listLatLon')->value($$refs1{listLatLon}) | ||||||||||
| 65 | ->prefix('')->type(''), | ||||||||||
| 66 | SOAP::Data->name('requestedTime')->value($$refs1{requestedTime}) | ||||||||||
| 67 | ->prefix('')->type(''), | ||||||||||
| 68 | SOAP::Data->name('featureType')->value($$refs1{featureType}) | ||||||||||
| 69 | 0 | ->prefix('')->type(''); | |||||||||
| 70 | } | ||||||||||
| 71 | 0 | ▶ | sub WeatherParameters{ | ||||||||
|
Subroutine
WeatherParameters: not called CC=1 SCAR=6.9
| |||||||||||
| 72 | 0 | my $refs1=shift; | |||||||||
| 73 | my $XMl=SOAP::Data->name('weatherParameters'=> | ||||||||||
| 74 | \SOAP::Data->value( | ||||||||||
| 75 | SOAP::Data->name('maxt')->value($$refs1{'maxt'}) | ||||||||||
| 76 | ->prefix('')->type(''), | ||||||||||
| 77 | SOAP::Data->name('mint')->value($$refs1{'mint'}) | ||||||||||
| 78 | ->prefix('')->type(''), | ||||||||||
| 79 | SOAP::Data->name('temp')->value($$refs1{'temp'}) | ||||||||||
| 80 | ->prefix('')->type(''), | ||||||||||
| 81 | SOAP::Data->name('dew')->value($$refs1{'dew'}) | ||||||||||
| 82 | ->prefix('')->type(''), | ||||||||||
| 83 | |||||||||||
| 84 | SOAP::Data->name('pop12')->value($$refs1{'pop12'}) | ||||||||||
| 85 | ->prefix('')->type(''), | ||||||||||
| 86 | |||||||||||
| 87 | SOAP::Data->name('qpf')->value($$refs1{'qpf'}) | ||||||||||
| 88 | ->prefix('')->type(''), | ||||||||||
| 89 | SOAP::Data->name('sky')->value($$refs1{'sky'}) | ||||||||||
| 90 | ->prefix('')->type(''), | ||||||||||
| 91 | SOAP::Data->name('snow')->value($$refs1{'snow'}) | ||||||||||
| 92 | ->prefix('')->type(''), | ||||||||||
| 93 | SOAP::Data->name('wspd')->value($$refs1{'wspd'}) | ||||||||||
| 94 | ->prefix('')->type(''), | ||||||||||
| 95 | SOAP::Data->name('wdir')->value($$refs1{'wdir'}) | ||||||||||
| 96 | ->prefix('')->type(''), | ||||||||||
| 97 | SOAP::Data->name('wx')->value($$refs1{'wx'}) | ||||||||||
| 98 | ->prefix('')->type(''), | ||||||||||
| 99 | SOAP::Data->name('waveh')->value($$refs1{'waveh'}) | ||||||||||
| 100 | ->prefix('')->type(''), | ||||||||||
| 101 | |||||||||||
| 102 | SOAP::Data->name('icons')->value($$refs1{'icons'}) | ||||||||||
| 103 | ->prefix('')->type(''), | ||||||||||
| 104 | SOAP::Data->name('rh')->value($$refs1{'rh'}) | ||||||||||
| 105 | ->prefix('')->type(''), | ||||||||||
| 106 | SOAP::Data->name('appt')->value($$refs1{'appt'}) | ||||||||||
| 107 | ->prefix('')->type(''), | ||||||||||
| 108 | SOAP::Data->name('incw34')->value($$refs1{'incw34'}) | ||||||||||
| 109 | ->prefix('')->type(''), | ||||||||||
| 110 | |||||||||||
| 111 | SOAP::Data->name('incw50')->value($$refs1{'incw50'}) | ||||||||||
| 112 | ->prefix('')->type(''), | ||||||||||
| 113 | SOAP::Data->name('incw64')->value($$refs1{'incw64'}) | ||||||||||
| 114 | ->prefix('')->type(''), | ||||||||||
| 115 | SOAP::Data->name('cumw34')->value($$refs1{'cumw34'}) | ||||||||||
| 116 | ->prefix('')->type(''), | ||||||||||
| 117 | SOAP::Data->name('cumw50')->value($$refs1{'cumw50'}) | ||||||||||
| 118 | ->prefix('')->type(''), | ||||||||||
| 119 | |||||||||||
| 120 | SOAP::Data->name('cumw64')->value($$refs1{'cumw64'}) | ||||||||||
| 121 | ->prefix('')->type(''), | ||||||||||
| 122 | SOAP::Data->name('conhazo')->value($$refs1{'conhazo'}) | ||||||||||
| 123 | ->prefix('')->type(''), | ||||||||||
| 124 | SOAP::Data->name('ptornado')->value($$refs1{'ptornado'}) | ||||||||||
| 125 | ->prefix('')->type(''), | ||||||||||
| 126 | SOAP::Data->name('phail')->value($$refs1{'phail'}) | ||||||||||
| 127 | ->prefix('')->type(''), | ||||||||||
| 128 | |||||||||||
| 129 | SOAP::Data->name('ptstmwinds')->value($$refs1{'ptstmwinds'}) | ||||||||||
| 130 | ->prefix('')->type(''), | ||||||||||
| 131 | SOAP::Data->name('pxtornado')->value($$refs1{'pxtornado'}) | ||||||||||
| 132 | ->prefix('')->type(''), | ||||||||||
| 133 | SOAP::Data->name('pxhail')->value($$refs1{'pxhail'}) | ||||||||||
| 134 | ->prefix('')->type(''), | ||||||||||
| 135 | SOAP::Data->name('pxtstmwinds')->value($$refs1{'pxtstmwinds'}) | ||||||||||
| 136 | ->prefix('')->type(''), | ||||||||||
| 137 | |||||||||||
| 138 | SOAP::Data->name('ptotsvrtstm')->value($$refs1{'ptotsvrtstm'}) | ||||||||||
| 139 | ->prefix('')->type(''), | ||||||||||
| 140 | SOAP::Data->name('pxtotsvrtstm')->value($$refs1{'pxtotsvrtstm'}) | ||||||||||
| 141 | ->prefix('')->type(''), | ||||||||||
| 142 | SOAP::Data->name('tmpabv14d')->value($$refs1{'tmpabv14d'}) | ||||||||||
| 143 | ->prefix('')->type(''), | ||||||||||
| 144 | SOAP::Data->name('tmpblw14d')->value($$refs1{'tmpblw14d'}) | ||||||||||
| 145 | ->prefix('')->type(''), | ||||||||||
| 146 | |||||||||||
| 147 | SOAP::Data->name('tmpabv30d')->value($$refs1{'tmpabv30d'}) | ||||||||||
| 148 | ->prefix('')->type(''), | ||||||||||
| 149 | SOAP::Data->name('tmpblw30d')->value($$refs1{'tmpblw30d'}) | ||||||||||
| 150 | ->prefix('')->type(''), | ||||||||||
| 151 | SOAP::Data->name('tmpabv90d')->value($$refs1{'tmpabv90d'}) | ||||||||||
| 152 | ->prefix('')->type(''), | ||||||||||
| 153 | SOAP::Data->name('tmpblw90d')->value($$refs1{'tmpblw90d'}) | ||||||||||
| 154 | ->prefix('')->type(''), | ||||||||||
| 155 | |||||||||||
| 156 | SOAP::Data->name('prcpabv14d')->value($$refs1{'prcpabv14d'}) | ||||||||||
| 157 | ->prefix('')->type(''), | ||||||||||
| 158 | SOAP::Data->name('prcpblw14d')->value($$refs1{'prcpblw14d'}) | ||||||||||
| 159 | ->prefix('')->type(''), | ||||||||||
| 160 | SOAP::Data->name('prcpabv30d')->value($$refs1{'prcpabv30d'}) | ||||||||||
| 161 | ->prefix('')->type(''), | ||||||||||
| 162 | SOAP::Data->name('prcpblw30d')->value($$refs1{'prcpblw30d'}) | ||||||||||
| 163 | ->prefix('')->type(''), | ||||||||||
| 164 | |||||||||||
| 165 | SOAP::Data->name('prcpabv90d')->value($$refs1{'prcpabv90d'}) | ||||||||||
| 166 | ->prefix('')->type(''), | ||||||||||
| 167 | SOAP::Data->name('prcpblw90d')->value($$refs1{'prcpblw90d'}) | ||||||||||
| 168 | ->prefix('')->type(''), | ||||||||||
| 169 | SOAP::Data->name('precipa_r')->value($$refs1{'precipa_r'}) | ||||||||||
| 170 | ->prefix('')->type(''), | ||||||||||
| 171 | SOAP::Data->name('sky_r')->value($$refs1{'sky_r'}) | ||||||||||
| 172 | ->prefix('')->type(''), | ||||||||||
| 173 | |||||||||||
| 174 | SOAP::Data->name('temp_r')->value($$refs1{'temp_r'}) | ||||||||||
| 175 | ->prefix('')->type(''), | ||||||||||
| 176 | SOAP::Data->name('wdir_r')->value($$refs1{'wdir_r'}) | ||||||||||
| 177 | ->prefix('')->type(''), | ||||||||||
| 178 | SOAP::Data->name('wspd_r')->value($$refs1{'wspd_r'}) | ||||||||||
| 179 | ->prefix('')->type(''), | ||||||||||
| 180 | SOAP::Data->name('wgust')->value($$refs1{'wgust'}) | ||||||||||
| 181 | ->prefix('')->type(''), | ||||||||||
| 182 | |||||||||||
| 183 | SOAP::Data->name('critfireo')->value($$refs1{'critfireo'}) | ||||||||||
| 184 | ->prefix('')->type(''), | ||||||||||
| 185 | SOAP::Data->name('dryfireo')->value($$refs1{'dryfireo'}) | ||||||||||
| 186 | ->prefix('')->type(''), | ||||||||||
| 187 | SOAP::Data->name('wwa')->value($$refs1{'wwa'}) | ||||||||||
| 188 | ->prefix('')->type(''), | ||||||||||
| 189 | SOAP::Data->name('wgust')->value($$refs1{'wgust'}) | ||||||||||
| 190 | ->prefix('')->type(''), | ||||||||||
| 191 | 0 | SOAP::Data->name('iceaccum')->value($$refs1{'iceaccum'}) | |||||||||
| 192 | ->prefix('')->type('') | ||||||||||
| 193 | ) | ||||||||||
| 194 | ); | ||||||||||
| 195 | 0 | return $XMl->prefix('ndf'); | |||||||||
| 196 | } | ||||||||||
| 197 | 0 | ▶ | sub NDFDgenXML{ | ||||||||
|
Subroutine
NDFDgenXML: not called CC=2 SCAR=17.9
| |||||||||||
| 198 | 0 | my $ref2=shift; | |||||||||
| 199 | 0 | ▶ | $$ref2{Unit}=$$ref2{Unit}?$$ref2{Unit}:""; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 200 | return | ||||||||||
| 201 | SOAP::Data->name('latitude')->value($$ref2{latitude}) | ||||||||||
| 202 | ->prefix('')->type(''), | ||||||||||
| 203 | SOAP::Data->name('longitude')->value($$ref2{longitude}) | ||||||||||
| 204 | ->prefix('')->type(''), | ||||||||||
| 205 | SOAP::Data->name('product')->value($$ref2{product}) | ||||||||||
| 206 | ->prefix('')->type(''), | ||||||||||
| 207 | SOAP::Data->name('startTime')->value($$ref2{startTime}) | ||||||||||
| 208 | ->prefix('')->type(''), | ||||||||||
| 209 | SOAP::Data->name('endTime')->value($$ref2{endTime}) | ||||||||||
| 210 | ->prefix('')->type(''), | ||||||||||
| 211 | SOAP::Data->name('Unit')->value($$ref2{Unit}) | ||||||||||
| 212 | 0 | ->prefix('')->type(''); | |||||||||
| 213 | } | ||||||||||
| 214 | 0 | ▶ | sub GmlTimeSeriesXML{ | ||||||||
|
Subroutine
GmlTimeSeriesXML: not called CC=1 SCAR=6.9
| |||||||||||
| 215 | 0 | my $ref3=shift; | |||||||||
| 216 | return | ||||||||||
| 217 | SOAP::Data->name('listLatLon')->value($$ref3{listLatLon}) | ||||||||||
| 218 | ->prefix('')->type(''), | ||||||||||
| 219 | SOAP::Data->name('startTime')->value($$ref3{startTime}) | ||||||||||
| 220 | ->prefix('')->type(''), | ||||||||||
| 221 | SOAP::Data->name('endTime')->value($$ref3{endTime}) | ||||||||||
| 222 | ->prefix('')->type(''), | ||||||||||
| 223 | SOAP::Data->name('compType')->value($$ref3{compType}) | ||||||||||
| 224 | ->prefix('')->type(''), | ||||||||||
| 225 | SOAP::Data->name('featureType')->value($$ref3{featureType}) | ||||||||||
| 226 | ->prefix('')->type(''), | ||||||||||
| 227 | SOAP::Data->name('propertyName')->value($$ref3{propertyName}) | ||||||||||
| 228 | 0 | ->prefix('')->type(''); | |||||||||
| 229 | } | ||||||||||
| 230 | 0 | ▶ | sub LatLonListLineXML{ | ||||||||
|
Subroutine
LatLonListLineXML: not called CC=1 SCAR=6.9
| |||||||||||
| 231 | 0 | my $ref4=shift; | |||||||||
| 232 | return | ||||||||||
| 233 | SOAP::Data->name('endPoint1Lat')->value($$ref4{endPoint1Lat}) | ||||||||||
| 234 | ->prefix('')->type(''), | ||||||||||
| 235 | SOAP::Data->name('endPoint1Lon')->value($$ref4{endPoint1Lon}) | ||||||||||
| 236 | ->prefix('')->type(''), | ||||||||||
| 237 | SOAP::Data->name('endPoint2Lat')->value($$ref4{endPoint2Lat}) | ||||||||||
| 238 | ->prefix('')->type(''), | ||||||||||
| 239 | SOAP::Data->name('endPoint2Lon')->value($$ref4{endPoint2Lon}) | ||||||||||
| 240 | 0 | ->prefix('')->type(''); | |||||||||
| 241 | } | ||||||||||
| 242 | 0 | ▶ | sub LatLonListSquareXML{ | ||||||||
|
Subroutine
LatLonListSquareXML: not called CC=1 SCAR=6.9
| |||||||||||
| 243 | 0 | my $ref5=shift; | |||||||||
| 244 | return | ||||||||||
| 245 | SOAP::Data->name('centerPointLat')->value($$ref5{centerPointLat}) | ||||||||||
| 246 | ->prefix('')->type(''), | ||||||||||
| 247 | SOAP::Data->name('centerPointLon')->value($$ref5{centerPointLon}) | ||||||||||
| 248 | ->prefix('')->type(''), | ||||||||||
| 249 | SOAP::Data->name('distanceLat')->value($$ref5{distanceLat}) | ||||||||||
| 250 | ->prefix('')->type(''), | ||||||||||
| 251 | SOAP::Data->name('distanceLon')->value($$ref5{distanceLon}) | ||||||||||
| 252 | ->prefix('')->type(''), | ||||||||||
| 253 | SOAP::Data->name('resolution')->value($$ref5{resolution}) | ||||||||||
| 254 | 0 | ->prefix('')->type(''); | |||||||||
| 255 | } | ||||||||||
| 256 | 0 | ▶ | sub LatLonListSubgridXML{ | ||||||||
|
Subroutine
LatLonListSubgridXML: not called CC=1 SCAR=6.9
| |||||||||||
| 257 | 0 | my $ref6=shift; | |||||||||
| 258 | return | ||||||||||
| 259 | SOAP::Data->name('lowerLeftLatitude')->value($$ref6{lowerLeftLatitude}) | ||||||||||
| 260 | ->prefix('')->type(''), | ||||||||||
| 261 | SOAP::Data->name('lowerLeftLongitude')->value($$ref6{lowerLeftLongitude}) | ||||||||||
| 262 | ->prefix('')->type(''), | ||||||||||
| 263 | SOAP::Data->name('upperRightLatitude')->value($$ref6{upperRightLatitude}) | ||||||||||
| 264 | ->prefix('')->type(''), | ||||||||||
| 265 | SOAP::Data->name('upperRightLongitude')->value($$ref6{upperRightLongitude}) | ||||||||||
| 266 | ->prefix('')->type(''), | ||||||||||
| 267 | SOAP::Data->name('resolution')->value($$ref6{resolution}) | ||||||||||
| 268 | 0 | ->prefix('')->type(''); | |||||||||
| 269 | } | ||||||||||
| 270 | 0 | ▶ | sub NDFDgenLatLonListXML{ | ||||||||
|
Subroutine
NDFDgenLatLonListXML: not called CC=1 SCAR=6.9
| |||||||||||
| 271 | 0 | my $ref7=shift; | |||||||||
| 272 | return | ||||||||||
| 273 | SOAP::Data->name('listLatLon')->value($$ref7{listLatLon}) | ||||||||||
| 274 | ->prefix('')->type(''), | ||||||||||
| 275 | SOAP::Data->name('product')->value($$ref7{product}) | ||||||||||
| 276 | ->prefix('')->type(''), | ||||||||||
| 277 | SOAP::Data->name('startTime')->value($$ref7{startTime}) | ||||||||||
| 278 | ->prefix('')->type(''), | ||||||||||
| 279 | SOAP::Data->name('endTime')->value($$ref7{endTime}) | ||||||||||
| 280 | ->prefix('')->type(''), | ||||||||||
| 281 | SOAP::Data->name('Unit')->value($$ref7{Unit}) | ||||||||||
| 282 | 0 | ->prefix('')->type(''); | |||||||||
| 283 | } | ||||||||||
| 284 | 1 | 1; | |||||||||
| 285 | __END__ | ||||||||||