The TimeZoneMap is a map of the world that returns the Olson time zone ID for any given latitude and longitude.
More...
List of all members.
Public Member Functions |
override TimeZoneResult | FindResult (double latDeg, double lonDeg) |
| Returns a results map query result. All result classes extend ResultBase but the specific subclass returned depends on what map class is being used. Each map class has a companion result class. If no shape is found at or near the query point, null is returned.
|
override String | GetOracleName () |
| A unique identifier for this map, used in the license file and in the AskGeo Web API.
|
List< ResultType > | GetAllResults () |
| Returns a Vector of results, each result corresponding to a shape in the map. All result classes extend ResultBase but the specific subclass depends on what map class is being used. Each map class has a companion result class.
|
void | Authorize (String s) |
| Authorizes the use of the map object by providing a license String.
|
void | Authorize (Stream stream) |
| Authorizes the use of the map object by providing a license file's input stream. The stream is closed upon completion.
|
double[] | GetBbox () |
| Returns the bounding box for this map as a double array. The order of the array is: min latitude, min longitude, max latitude, max longitude.
|
DataFieldInterface | GetDataField (int index) |
| Each map contains metadata associated with each shape. The metadata is indexed by an Java-style enum that is defined within each map subclass. All of the Java-style enums implement the DataFieldInterface. Those Java-style enums are exposed through this common interface here.
|
int | GetNumDataFields () |
| Returns the number of data fields associated with this map.
|
Static Public Member Functions |
static TimeZoneMap | Create (Stream dataFileStream) |
| Static factory method used to construct an instance of this class.
|
static TimeZoneMap | Create (Stream dataFileStream, double cellsPerDeg, double snapRadiusKm) |
| Static factor method used to construct an instance of this class.
|
static String | GetOracleNameStatic () |
| A unique identifier for this map, used in the license file and in the AskGeo Web API.
|
static double[] | GetWorldBbox () |
| Returns a new bounding box encompassing the entire globe (for example, from -180 to +180 degrees longitude and from -90 to +90 degrees latitude). Values are stored in radians.
|
static double[] | GetConusBbox () |
| Returns a new bounding box roughly containing the continental US, or CONUS (i.e., from -125 to -66 degrees longitude and from 24 to 50 degrees latitude).
|
Detailed Description
The TimeZoneMap is a map of the world that returns the Olson time zone ID for any given latitude and longitude.
Member Function Documentation
static TimeZoneMap AskGeo.Dbl.TimeZoneMap.Create |
( |
Stream |
dataFileStream | ) |
|
|
static |
Static factory method used to construct an instance of this class.
- Parameters:
-
dataFileStream | a Stream of the datafield to be read to create this map. |
- Returns:
- an instance of this class with default parameters.
static TimeZoneMap AskGeo.Dbl.TimeZoneMap.Create |
( |
Stream |
dataFileStream, |
|
|
double |
cellsPerDeg, |
|
|
double |
snapRadiusKm |
|
) |
| |
|
static |
Static factor method used to construct an instance of this class.
- Parameters:
-
dataFileStream | a Stream of the data file to be read to create this map. |
cellsPerDeg | the resolution of the spatial index. Testing has show that a suitable value for this parameter is 1.0, which is the default value. |
snapRadiusKm | the maximum snap-to distance for query points not inside any shape on the map. |
- Returns:
- an instance of this class with given parameters.
override TimeZoneResult AskGeo.Dbl.TimeZoneMap.FindResult |
( |
double |
latDeg, |
|
|
double |
lonDeg |
|
) |
| |
|
virtual |
Returns a results map query result. All result classes extend ResultBase but the specific subclass returned depends on what map class is being used. Each map class has a companion result class. If no shape is found at or near the query point, null is returned.
- Parameters:
-
latDeg | the latitude of the query point, expressed in degrees. |
lonDeg | the longitude of the query point, expressed in degrees. |
- Returns:
- the result for the given latitude and longitude, or null if none is found.
Implements AskGeo.Dbl.GeneralMap< ResultType >.
override String AskGeo.Dbl.TimeZoneMap.GetOracleName |
( |
| ) |
|
|
virtual |
static String AskGeo.Dbl.TimeZoneMap.GetOracleNameStatic |
( |
| ) |
|
|
static |
A unique identifier for this map, used in the license file and in the AskGeo Web API.
- Returns:
- the unique identifier for this map.
The documentation for this class was generated from the following file:
- Source/Dbl/TimeZoneMap.cs