GeoEntities

GeoEntities[reg,enttype]

gives a list of the geographic entities of type enttype contained in the extended region reg.

Details and Options

  • In GeoEntities[reg,enttype], reg can be specified as either an Entity object or an extended GeoGraphics primitive.
  • In GeoEntities[reg,enttype], enttype can be specified as an Entity object, such as Entity["Country"], or as a string, such as "City".
  • Valid forms of enttype include:
  • "AdministrativeDivision"administrative division of any level
    "AdministrativeDivision1"first-level administrative division
    "AdministrativeDivision2"second-level administrative division
    "AdministrativeDivision3"third-level administrative division
    "Airport"airports
    "Bridge"bridges
    "Building"buildings
    "City"city
    "Country"country, territory, etc.
    "Mountain"mountains
    "Ocean"oceans
    "USCounty"US counties
    "USState"US states
    "Volcano"volcanoes
    "ZIPCode"US ZIP codes
    Except[ent,enttype]entities other than ent of type enttype
    GeoVariant[enttype,variant]entities using variant regions
    EntityClass["type","class"]individual members of class
    enttype1|enttype2|any of the enttypei
    Allany possible type

Examples

open allclose all

Basic Examples  (3)

The mountains in Israel:

Famous buildings in the city of Dallas, Texas:

Cities in a particular coordinate rectangle:

Scope  (7)

All entities in ZIP code 61801:

Find mountains and bridges in Vermont:

Administrative divisions other than Manhattan that intersect New York City:

Bridges in several cities:

Find the countries a given polygon partially overlaps:

Draw a map showing the polygon and countries:

The United States extends into a part of the Pacific Ocean:

But its principal land mass does not:

The portion of the United States in question is Hawaii:

Determine the G7 countries inside the specified latitude/longitude region:

Options  (1)

"FullyContained"  (1)

By default, an entity is considered to be inside the region if the two intersect:

The option "FullyContained"->True excludes entities that cover only a portion of the location:

Properties & Relations  (3)

GeoEntities always returns a list:

The list may be empty:

For extended locations loc, GeoEntities[loc,enttype] is essentially equivalent to GeoIdentify[enttype,loc]:

GeoEntities only includes entities that overlap the region:

GeoNearest includes all entities, if any, at zero distance from an extended region:

Introduced in 2014
 (10.0)