Questions tagged [geography]

Questions on the application of Mathematica to geography, including the use of the CountryData and CityData functions. Not to be confused with geodesy.

Filter by
Sorted by
Tagged with
6 votes
2 answers
189 views

Remove islands from geographic regions

I wish to get only the continental parts of countries when using GeoGraphics, for instance in ...
user avatar
3 votes
2 answers
100 views

Solve for subset of parameters in ParametricPlot

I have a discretized region $\mathscr{R}$ and two functions $x(u,v)$ and $y(u,v)$. I wish to find (numerically of course) the values of $(u,v)$ such that $$ \begin{align} \left(x(u,v),y(u,v)\right)\in ...
user avatar
2 votes
1 answer
71 views

Define functions on Geographic regions

Let's plot a parametric function $(x_s(u,v), \:y_s(u,v))$ on some $uv$ domain as shown below with an annulus as example. ...
user avatar
2 votes
0 answers
47 views

Crop or mask geographics

I am trying to crop a map drawn with GeoGraphics. The map consists of Line and Polygon ...
user avatar
  • 393
4 votes
2 answers
110 views

Location of the point on Earth with the Sun at the zenith

This should be an easy question, but I don't know the correct syntax. I'm trying to create an animation based on NightHemisphere during a year. For each day, the instant correspond to the time of the ...
user avatar
3 votes
1 answer
72 views

How to find all coastal cities globally using the Entity framework?

It seems to be an easy task as all the related functions GeoNearest and EntityList["City"] are close at hands. However,...
user avatar
  • 4,177
-3 votes
1 answer
99 views

How to find the distances to all buildings quickly?

I would like to create an association by mapping the function GeoDistance[Here,#]& over all buildings without missing locations in a reasonable amount of time less than 30 minutes. I have the ...
user avatar
1 vote
1 answer
77 views

Why does Entity Class return an empty value sometimes?

I am working on computing the 20 largest cities in California. ...
user avatar
-1 votes
2 answers
58 views

How to extract entities from TravelDirectionsData?

I am wondering how to extract entities such as states and cities from TravelDistanceData. For example, given the following example from the documentation, how could I extract the states the route goes ...
user avatar
-3 votes
1 answer
53 views

How to disable legends in GeoListPlot and other geographic functions? [closed]

How can I hide or disable the automatic legend feature of GeoListPlot? I have the following code and results: ...
user avatar
4 votes
0 answers
62 views

Accelerate the retrieval time for Entity data

I like to use Mathematica to answer questions related to cities such as how many cities in the United States have a population greater than 100,000 and what the distribution of them would look like on ...
user avatar
1 vote
0 answers
57 views

How to find N most populous cities in each state with TakeLargest and Entity Functions without waiting forever using Caching?

I am interested in using Entity Functions such as EntityValue, FilteredEntityClass, EntityFunction, EntityClass, EntityList, and GeoEntities to help me find N most populous cities in each state. I ...
user avatar
3 votes
0 answers
82 views

Calculate the nth percentile height above sea level of a country or US State

Mathematica has access to geographic height data for different territories. This can be used to plot sea level rise maps. However I am interested in what percentage of the area of a country or state ...
user avatar
3 votes
1 answer
72 views

How to use `Quantity` to convert Degrees of Latitude into Kilometers?

I want to convert 0.018 Degrees of Latitude into kilometers using the Quantity function in Mathematica. Unfortunately I do not know what Degrees of Latitude are ...
user avatar
3 votes
1 answer
114 views

How Color the PathGraph Showing Multiple Shortest Paths on the US Counties Map

Below is code for mapping the connectivity of US counties. It comes from the Mathematica reference on "Connectivity of US Counties". I've highlighted 3 shortest paths shown in red. However, ...
user avatar
  • 1,039
4 votes
1 answer
157 views

Plot a Map of German Bundesländer with specified colors assigned to them

I would like to draw a map of the German states ("Bundesländer") with Mathematica 12. I found examples how to outline countries. But I need the next smaller levels. I have not found anything ...
user avatar
3 votes
1 answer
108 views

Is it possible to get a graph for Taiwan water area

I tried to get a graph for water area in Taiwan, but somehow it doesn't seem to work: ...
user avatar
  • 241
2 votes
1 answer
87 views

Can a ListPointPlot3D be overlayed with map

I am trying to make a graph of earthquakes (position and depth) shown on map of the country. The map is drawn with Graphics3D option with the code: ...
user avatar
1 vote
1 answer
92 views

How to output Polygon with latitude and longitude set in EntityValue function?

I used EntityValue to represent a map of a country. ...
user avatar
  • 1,091
12 votes
4 answers
2k views

How can we find the longitude that cuts all the land on Earth in half?

Mathematica has already a specific function, RegionCentroid, that can be utilized to calculate the geographic center of any region. As it has been discussed in here ...
user avatar
  • 789
4 votes
1 answer
94 views

How to show net income geographically of a company in a certain city

Let's say that I have a company, and I already extracted it's net profit with time series. ...
user avatar
  • 241
14 votes
1 answer
1k views

Are Mathematica's maps copyright-free?

Are the maps available in Mathematica copyright-free? For instance, if I generate the image ...
user avatar
  • 4,228
0 votes
1 answer
44 views

How to prevent small locations from being plotted as points when using GeoListPlot?

When a location is too small, GeoListPlot marks that location using a point on the map. For example, ...
user avatar
5 votes
1 answer
92 views

Improving performace of `GeoDistance` and `NearestNeighborGraph`

I am trying to construct a NearestNeighborGraph of the 3143 US counties, using their latitude and longitude positions. ...
user avatar
  • 17.9k
4 votes
1 answer
78 views

mapping a digraph across sectors of countries

Given a (9,9) matrix representing three countries (for example, the US, China, Russia), each one of which has three sectors (vertices/sectors {1, 2, 3) for the US; {4, 5, 6} for China; and {7,8,9} for ...
user avatar
  • 4,391
1 vote
0 answers
90 views

OceanData not deep enough or just too deep for me?

It's exciting to see Mathematica/Wolfram Alpha addressing the marine realm in Version 12.2. Evidently, I was unaware that such data existed since Version 12.0 introduced in 2019. However, I have two ...
user avatar
  • 1,496
3 votes
1 answer
72 views

How to determine population from a list of arbitrary jurisdictions (cities, states, counties, et al.)?

I am an aspiring data scientist who's working on a passion project, namely to assign danger-level scores to police departments in the United States. One specific metric I'm developing results from ...
user avatar
2 votes
0 answers
67 views

Where can you get by walking half a mile?

I recently saw that Mathematica 10 introduced really nice tools for geography. I would like to use GeoGraphics to visualize all possible paths with a length of half ...
user avatar
  • 1,114
14 votes
3 answers
4k views

Oak Island, extending the "Alignment", possible Great Circle?

During these days of COVID, I indulged in the guilty pleasure of watching The Curse of Oak Island - Season 8, Episode 4 Alignment, which viewed last night (1 Dec 2020). During the episode, some "...
user avatar
  • 13.7k
0 votes
2 answers
180 views

Get coordinates of the boundary of a continent

I'm trying to obtain the coordinates of the border of the continents. I need this information to be ordered such that when I do, for example, ListLinePlot[data] It ...
user avatar
2 votes
0 answers
30 views

Difficulty with getting local GeoPosition correctly

I am using the wolfram cloud on a Chromebook and when I type the function Here it returns a faulty ...
user avatar
  • 1,063
0 votes
0 answers
41 views

Shifting GeoRange depending on Projection Problem

It's been rather smooth progress lately using GeoGraphics as I attempt to render different polygons over the greater metropolitan Vancouver area. I found this ...
user avatar
  • 1,024
4 votes
1 answer
104 views

Heatmap, visualizing on negative/positive values with Cartography

I want to create a heatmap in relation with a CityMap. A example of my dataset is: ...
user avatar
2 votes
1 answer
179 views

3D Plot of mountain elevation on a map

I am trying to plot mountains' elevation on a map. Right now, I have a 2D image generated using the code as shown below. I hope to create a 3D plot, on which, at z=0 is the map, and at each coordinate ...
user avatar
0 votes
1 answer
51 views

GeoGraph based on (x,y)-coordinates

To create a Geograph we use a longitude and latitude to visualize the exact positions. I work with a database without the lon/lat. Instead of that, my database has a X and Y coordinate. I know, there ...
user avatar
1 vote
1 answer
34 views

GeoRegionValuePlot Leaving Out Metropolitan Census Tracts

Preamble Run this code in the preamble for a working example of what I'm dealing with. Census Tract Entity Store ...
user avatar
  • 299
3 votes
1 answer
54 views

States surrounding/adjacent to a given state

I want a function that gives a list of all states adjacent to a given state. How can I do this in Mathematica?
user avatar
1 vote
2 answers
284 views

How to compute a list of cities within a given radius of another city?

I have hitherto found a solution to this problem. Designate a city in the continental USA as cityCenter. Make a table with all large cities in the USA. I could ...
user avatar
2 votes
1 answer
82 views

Is there any way to speed up many instance of TravelDistance

The goal of this code is to identify and graph a "circle of cities" about a center city. ...
user avatar
0 votes
1 answer
65 views

How do I write a tooltip for this list of cities?

...
user avatar
2 votes
1 answer
193 views

How to draw line parallel to the coast on a world map?

The task is to draw a line parallel to the coast 150 nautical miles to the sea, highlighting the ocean between the coast and the line drawn. An expected result is an image (most aesthetically pleasing)...
user avatar
3 votes
2 answers
126 views

Using Geo commands, how do I get a list of cities that all meet the following criteria

I am looking to list with Geo commands all the cities such that Point is 333 miles from Houston Point is 755 miles from San Antonio Point is 460 miles from El Paso. How do I write up the code that ...
user avatar
3 votes
1 answer
65 views

EntityClass Downloading Speedup

Running this command. Trying to get all cities more than 1 million people in US. ...
user avatar
  • 590
4 votes
2 answers
104 views

How to plot countries with accurate area?

Are there any projections that use the true size of countries, like this?
user avatar
  • 30.4k
1 vote
0 answers
43 views

Use Wolfram Cloud to Create Site Visitor Database

Question: Is there a way to use Wolfram Cloud to create a web API function that, when pinged, does the following: Gets the geographical location of the user (as an Wolfram entity, like ...
user avatar
  • 2,975
4 votes
1 answer
138 views

Distance between two cities

I need help calculating the distance between 2 cities in Wolfram MAthematica. I would need to create two drop-down lists of European capitals. After selecting any two cities from the lists, I would ...
user avatar
  • 41
2 votes
0 answers
131 views

How to smoothly zoom into GeoGraphics without label flicker?

I would like to animate zooming into maps in a smooth fashion while showing labels - but without them flickering or jumping: ...
user avatar
  • 30.4k
0 votes
0 answers
78 views

Simpler closed form for spherical coordinates of points on great circle?

Short version: how to simplify this expression given these conditions? Note that expr[[3]] is equal to 1, although Mathematica won't simplify it as such. ...
user avatar
5 votes
0 answers
195 views

How to get 3D building data in map functions?

Most modern mapping APIs have 3D model data for city buildings built-in. For example: Is there some way to get this functionality in the Geography related functions? I believe ...
user avatar
  • 30.4k
4 votes
0 answers
67 views

Cloud Deploy dynamic country selection from a map

This is a follow-up question based on the answer I got from Lukas Lang. The original question is here. How can I alter the code to deploy it on the cloud? Or in case this method is only for desktop: ...
user avatar
  • 527

1
2 3 4 5 6