SpatialPointSelect

SpatialPointSelect[spdata,crit]

selects a subset of the SpatialPointData spdata according to crit.

Details

  • SpatialPointSelect is typically used to get a smaller SpatialPointData with some parts selected.
  • Conceptually, SpatialPointSelect acts as a Select on points and annotations of the form {{point1,ann1},{point2,ann2},} to select a subpart.
  • The criterion function crit is typically a Boolean expression with conditions on points and annotations, such as (Norm[#Point]<1&& #species"Birch")& if species was one of the annotation keys.
  • The following arguments can be used in crit:
  • #Pointconditions on point
    #keyconditions on values associated with the annotation "key"

Examples

open allclose all

Basic Examples  (2)

Select points in a subregion:

Plot points in the observation region:

Select points in a smaller rectangle:

Plot points in the subset:

Select points based on latitude condition:

Select points on or above the equator:

Plot both datasets:

Scope  (7)

By Point Condition  (5)

Select points that are within a given region:

Create a subset:

Pick out points with norm less than 1/2:

Define the selection criterion:

Select points:

Plot the original data with the selected subset:

Pick all points with first coordinate greater than 1/3:

Define the selection condition:

Select points:

Plot the original data with the selected subset:

Select points based on geo location:

Select locations within 2000 kilometers of Chicago:

Extract a subset of the data close to a region:

Visualize the selection:

By Annotation  (2)

Keep selected points based on annotation value:

Show annotations of the data:

Select points for which "color" annotation value is close to Red:

Show annotations of the remaining points:

Select points based on selected annotation value:

Show data annotations:

Show annotations of the subset:

Wolfram Research (2020), SpatialPointSelect, Wolfram Language function, https://reference.wolfram.com/language/ref/SpatialPointSelect.html.

Text

Wolfram Research (2020), SpatialPointSelect, Wolfram Language function, https://reference.wolfram.com/language/ref/SpatialPointSelect.html.

BibTeX

@misc{reference.wolfram_2020_spatialpointselect, author="Wolfram Research", title="{SpatialPointSelect}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/SpatialPointSelect.html}", note=[Accessed: 18-April-2021 ]}

BibLaTeX

@online{reference.wolfram_2020_spatialpointselect, organization={Wolfram Research}, title={SpatialPointSelect}, year={2020}, url={https://reference.wolfram.com/language/ref/SpatialPointSelect.html}, note=[Accessed: 18-April-2021 ]}

CMS

Wolfram Language. 2020. "SpatialPointSelect." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SpatialPointSelect.html.

APA

Wolfram Language. (2020). SpatialPointSelect. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SpatialPointSelect.html