Services_Weather
[ class tree: Services_Weather ] [ index: Services_Weather ] [ all elements ]

File: buildMetarDB.php

Source Location: /Services_Weather-1.4.7/buildMetarDB.php

Classes:

Page Details:

This script downloads, saves and processes the textfiles needed for the building the databases to enable searching for METAR stations.

You can download the locations, which is a database of about 12000 world- wide locations, which can be used to determine the coordinates of your city or you can download a file with 6500 airports providing the metar data. This database is used for the next-METAR-station search. Please see the apropriate documentation in the Services_Weather_Metar class.

For usage of this script, invoke with '-h'.

PHP versions 4 and 5

<LICENSE> Copyright (c) 2005-2011, Alexander Wirtz All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  • Neither the name of the software nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. </LICENSE>

Includes:

require_once("DB.php") [line 60]

Services_Weather_checkData [line 79]

bool Services_Weather_checkData( array $data, array $dataOrder)

Services_Weather_checkData

Checks the data for a certain string-length and if it either consists of a certain char-type or a string of "-" as replacement.



Parameters

array   $data   The data to be checked
array   $dataOrder   Because the data is in different locations, we provide this
[ Top ]



Services_Weather_getNextArg [line 118]

string|bool Services_Weather_getNextArg( &$c, int $c)

Services_Weather_getNextArg

Checks, if the next argument is a parameter to a predecessing option. Returns either that parameter or false, if the next argument is an option



Parameters

int   $c   Internal argument counter
   &$c  
[ Top ]



Documentation generated on Mon, 22 Oct 2012 13:30:11 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.