Details and Options
- In GeoWithinQ[reg,loc], reg can be specified as either an Entity object or an extended GeoGraphics primitive. The location loc can additionally be specified as a GeoPosition or related point-like location object.
- GeoWithinQ accepts lists in both arguments, effectively calling Outer on the input lists.
- With the option setting "FullyContained"->True, GeoWithinQ[reg,loc] will return True only if loc is completely contained in reg.
- GeoWithinQ[reg][loc] is equivalent to GeoWithinQ[reg,loc].
Examplesopen allclose all
Basic Examples (2)
Use GeoWithinQ as an operator form:
The option "FullyContained"->True excludes regions that extend outside the entity:
Properties & Relations (2)
Possible Issues (2)
With the default option value "FullyContained"False, GeoWithinQ checks for polygon intersection, which may lead to unexpected results:
GeoWithinQ uses by default the "PrincipalArea" geo variant of a country, which for Spain contains the Canary islands:
GeoWithinQ[entity,loc] uses the polygon available for the given entity, which may not have enough resolution to resolve certain locations correctly, most importantly near the coast:
Therefore this restricted Interpreter call fails:
Wolfram Research (2014), GeoWithinQ, Wolfram Language function, https://reference.wolfram.com/language/ref/GeoWithinQ.html (updated 2017).
Wolfram Language. 2014. "GeoWithinQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/GeoWithinQ.html.
Wolfram Language. (2014). GeoWithinQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GeoWithinQ.html