GeoEntities
GeoEntities[reg,enttype]
gives a list of the geographic entities of type enttype contained in the extended region reg.
GeoEntities[reg]
gives a list of the geographic regions of any type contained in reg.
Details and Options
- In GeoEntities[reg,enttype], reg can be any extended geo region, including geo entities of domains such as "City", "Country" or "HistoricalCountry"; Dated[…] objects; GeoVariant[…] expressions or extended GeoGraphics primitives.
- 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. "HistoricalCountry" historical countries, regions, empires, etc. "MilitaryConflict" military conflicts "Mountain" mountains "Ocean" oceans "USCounty" US counties "USState" US states "Volcano" volcanoes "ZIPCode" US ZIP codes Dated[enttype,date] entities of type enttype restricted by date Except[ent,enttype] entities other than ent of type enttype GeoVariant[enttype,variant] entities using variant regions EntityClass["type","class"] individual members of class enttype1enttype2… any of the enttypei All any possible type
Examples
open allclose allBasic Examples (3)
Scope (12)
Geographic Data (7)
All entities in ZIP code 61801:
Find mountains and bridges in Vermont:
Administrative divisions other than Manhattan that intersect New York City:
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:
Historical Data (5)
Find the military conflicts that happened in the Roman Republic at any time in its history:
Use Dated to restrict the historical entity to a specific date or interval:
Using Dated with the entity type will return results specifying the date of spatial overlap:
Using a non-historical entity with a historical entity type will compute overlaps, ignoring date information:
Restrict the search to a given date range using Dated with the entity type:
Use Dated[enttype,All] to return the periods of overlap for all historical entities:
Find the military conflicts that occurred between years 100 and 600 in the given geo rectangle:
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:
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:
Text
Wolfram Research (2014), GeoEntities, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoEntities.html (updated 2024).
CMS
Wolfram Language. 2014. "GeoEntities." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2024. https://reference.wolfram.com/language/ref/GeoEntities.html.
APA
Wolfram Language. (2014). GeoEntities. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoEntities.html