AskGeo .NET  1.1.0
AskGeo Libraries for .NET
 All Classes Namespaces Functions Variables Enumerations Pages
Public Member Functions
AskGeo.Dbl.NaturalEarthCountryResult Class Reference

Embodies the result of a FindResult query on an instance of the CountryMap class. More...

Inheritance diagram for AskGeo.Dbl.NaturalEarthCountryResult:
AskGeo.Dbl.ResultBase

List of all members.

Public Member Functions

String GetNaturalEarthCode ()
 Internal Natural Earth entity code similar to ISO-3166-3 but without gaps
String GetNameSovereignty ()
 Name of the Country that has sovereignty over this entity (no gaps)
int GetIsNotSovereign ()
 Indicates if this entity has its own sovereignty, 0: false, 1: true (no gaps)
String GetEntityType ()
 Entity type: 'Country', 'Sovereign country', 'Dependency', 'Disputed', 'Indeterminate', or 'Lease' (no gaps)
String GetNameAdministrative ()
 Administrative name (probably the most useful name all around, no gaps)
String GetNameShort ()
 Short form name of entity, including common abbreviations, for example, 'Island' becomes 'Is.' (has gaps)
String GetAbbreviation ()
 Long form abbreviation, for example, Berm., Rep. Congo, Cz. Rep. (has gaps)
String GetAbbreviationPostal ()
 One, two, or three letter postal abbreviation (has gaps)
String GetNameFormal ()
 Formal name (has gaps)
String GetNotes ()
 Notes indicating sovereignty relationships, etc. (mostly blank)
String GetNameSortable ()
 Name suitable for sorting (no gaps)
int GetMapColorCode ()
 Color index from US State Department political world map where no neighboring country has the same color, but all territories of a sovereign country share the same color (no gaps)
double GetTotalPopulation2009Estimate ()
 Estimated total population (2009, from UN and other sources, has gaps, missing values: -99)
double GetTotalGdp2009Estimate ()
 Estimate total GDP in millions of dollars (2009, from World Bank and other sources, has gaps, missing values: -99)
String GetIso3166A2 ()
 ISO-3166-2 two-letter country code (has gaps, missing values: -99)
String GetIso3166A3 ()
 ISO-3166-3 three-letter country code (has gaps, missing values: -99)
- Public Member Functions inherited from AskGeo.Dbl.ResultBase
override String ToString ()
 The string representation of a result is a tab-separated concatenation of all the data fields.
PolygonData GetPolygonData ()
 Returns the polygon data for the shape from which this result was built
int GetAskGeoId ()
 Within each map, every shape has a unique int ID.
bool GetIsInside ()
 Query points that are not within any of the shapes in the map will snap-to the nearest shape if that shape is within a specified snap-to radius. This method returns whether the this particular query point was inside the shape from which this result was built.
double GetMinDistanceKm ()
 Query points that are not within any of the shapes in the map will snap-to the nearest shape if that shape is within a specified snap-to radius. If the query point was inside the shape, this method returns zero. If the query point was outside the shape, this method returns the smallest distance (in km) along the surface of the globe between the query point and the outer boundary of the shape.
String GetResultField (DataFieldInterface f)
 The AskGeo ID, the isInside bool, and the minDistanceKm may be accessed by the direct accessors getAskGeoId, getIsInside, and getMinDistanceKm. They may also be accessed by using this method with the ResultField enum.
String GetDataField (DataFieldInterface e)
 Each map has metadata associated with each shape. That metadata is returned with results built from that shape. This method gives access to that metadata using a DataField enum. Each map has an public inner enum called DataField. Passing
double ParseDoubleOrNan (String text)
 All data fields are stored as strings but many are more useful as numbers. This method converts a String to a double. If the conversion fails, double.NaN is returned.
int ParseIntOrElse (String text, int alt)
 All data fields are stored as strings but many are more useful as numbers. This method converts a String to an int. If the conversion fails, alt is returned.

Detailed Description

Embodies the result of a FindResult query on an instance of the CountryMap class.


Member Function Documentation

String AskGeo.Dbl.NaturalEarthCountryResult.GetAbbreviation ( )

Long form abbreviation, for example, Berm., Rep. Congo, Cz. Rep. (has gaps)

String AskGeo.Dbl.NaturalEarthCountryResult.GetAbbreviationPostal ( )

One, two, or three letter postal abbreviation (has gaps)

String AskGeo.Dbl.NaturalEarthCountryResult.GetEntityType ( )

Entity type: 'Country', 'Sovereign country', 'Dependency', 'Disputed', 'Indeterminate', or 'Lease' (no gaps)

int AskGeo.Dbl.NaturalEarthCountryResult.GetIsNotSovereign ( )

Indicates if this entity has its own sovereignty, 0: false, 1: true (no gaps)

String AskGeo.Dbl.NaturalEarthCountryResult.GetIso3166A2 ( )

ISO-3166-2 two-letter country code (has gaps, missing values: -99)

String AskGeo.Dbl.NaturalEarthCountryResult.GetIso3166A3 ( )

ISO-3166-3 three-letter country code (has gaps, missing values: -99)

int AskGeo.Dbl.NaturalEarthCountryResult.GetMapColorCode ( )

Color index from US State Department political world map where no neighboring country has the same color, but all territories of a sovereign country share the same color (no gaps)

String AskGeo.Dbl.NaturalEarthCountryResult.GetNameAdministrative ( )

Administrative name (probably the most useful name all around, no gaps)

String AskGeo.Dbl.NaturalEarthCountryResult.GetNameFormal ( )

Formal name (has gaps)

String AskGeo.Dbl.NaturalEarthCountryResult.GetNameShort ( )

Short form name of entity, including common abbreviations, for example, 'Island' becomes 'Is.' (has gaps)

String AskGeo.Dbl.NaturalEarthCountryResult.GetNameSortable ( )

Name suitable for sorting (no gaps)

String AskGeo.Dbl.NaturalEarthCountryResult.GetNameSovereignty ( )

Name of the Country that has sovereignty over this entity (no gaps)

String AskGeo.Dbl.NaturalEarthCountryResult.GetNaturalEarthCode ( )

Internal Natural Earth entity code similar to ISO-3166-3 but without gaps

String AskGeo.Dbl.NaturalEarthCountryResult.GetNotes ( )

Notes indicating sovereignty relationships, etc. (mostly blank)

double AskGeo.Dbl.NaturalEarthCountryResult.GetTotalGdp2009Estimate ( )

Estimate total GDP in millions of dollars (2009, from World Bank and other sources, has gaps, missing values: -99)

double AskGeo.Dbl.NaturalEarthCountryResult.GetTotalPopulation2009Estimate ( )

Estimated total population (2009, from UN and other sources, has gaps, missing values: -99)


The documentation for this class was generated from the following file: