Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Select parts of a GeoGraphics object using geo feature type
ResourceFunction["GeoGraphicsCases"][gr,form] returns a GeoGraphics containing only features that match patt. | |
ResourceFunction["GeoGraphicsCases"][gr,{form1,form2,…}] returns a GeoGraphics containing only features that match any of the formi. | |
ResourceFunction["GeoGraphicsCases"][gr,Except[form]] returns a GeoGraphics removing features that match form. | |
ResourceFunction["GeoGraphicsCases"][gr] returns a list of feature types appropriate for formi present in GeoGraphics gr. |
Find the feature types present in a map of the Colosseum:
| In[1]:= |
| Out[1]= | ![]() |
| In[2]:= |
| Out[2]= | ![]() |
Show only the "landcover" elements:
| In[3]:= |
| Out[3]= | ![]() |
Show land cover and the buildings:
| In[4]:= |
| Out[4]= | ![]() |
Wrapping the pattern or list of patterns with Except, removes those features and returns all others:
| In[5]:= |
| Out[5]= | ![]() |
| In[6]:= |
| Out[6]= | ![]() |
Remove labels:
| In[7]:= |
| Out[7]= | ![]() |
Remove filled regions and labels:
| In[8]:= |
| Out[8]= | ![]() |
Some GeoGraphics also contain textured backgrounds. For example, selecting the transportation network for the UK also displays a landtype bitmap background:
| In[9]:= |
| In[10]:= |
| Out[10]= | ![]() |
The option "RemoveTextures" can be used to remove bitmap textured polygons:
| In[11]:= |
| Out[11]= | ![]() |
GeoGraphicsCases works only on GeoGraphics with vector backgrounds:
| In[12]:= | ![]() |
| Out[12]= |
Sometimes GeoGraphics elements are only visible because they are expected to have contrasting elements behind them:
| In[13]:= | ![]() |
| Out[13]= | ![]() |
You may need to replace colors to make them visible:
| In[14]:= | ![]() |
| Out[14]= | ![]() |
Create an interactive feature selector:
| In[15]:= | ![]() |
| Out[9]= | ![]() |
Decompose a map into features:
| In[16]:= | ![]() |
| Out[16]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License