Skip to main content

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
5 votes
1 answer
321 views

GeoJSON Problems - UK Parliamentary Constituencies

I want to plot the new parliamentary boundaries for the upcoming general election. This will use an NIHR API to grab the map location of the FID=3, the 3rd parliamentary constituency in alphabetical ...
Tomi's user avatar
  • 4,558
2 votes
0 answers
64 views

Exporting bathymetry data in GeoTiff format

I have some bathymetry data in WGS84 UTM15N in {x,y,z} format. Sample: ...
Mahdi Razaz's user avatar
5 votes
1 answer
255 views

Making Adjacency Matrix from Maps

I want to make an adjacency matrix for the world/each country at a specified administrative level. This is very easy to do for countries in Mathematica, but is not straightforward for different ...
Teg Louis's user avatar
5 votes
2 answers
82 views

Finding the closest interpreted point in GeoDistance

I'd like to know how far away I am standing from the path of totality for the 2024 solar eclipse. ...
bobthechemist's user avatar
7 votes
1 answer
318 views

Length of a continental perimeter

Excluding the islands, how can the length of the perimeter of a continent be calculated? To make the question more concrete, what is the length of perimeter of the African continent, excluding the ...
Syed's user avatar
  • 56k
8 votes
2 answers
195 views

Getting Area from GeoGraphics

I want to find the area covered by the reservoir of a dam using a satellite image. This is what I have so far. ...
Navvye's user avatar
  • 171
1 vote
1 answer
74 views

Combining ReliefPlots with GeoGraphics/Converting ReliefPlots into GeoGraphics

I want to use .DEM files with GeoGraphics[]. For example, adding labels, or changing projections. In my attempt, I import the example data from Wolfram. ...
Tomi's user avatar
  • 4,558
5 votes
1 answer
269 views

Using AI to get the geographic locations of a list of banks

I have a list of banks from Bloomberg, and am looking to locate them on the world map, ...
apg's user avatar
  • 2,195
1 vote
1 answer
158 views

What's the function to find a city nearest to a given latitude?

I have recently started programming in Mathematica and I am currently struggling to find a way to locate the nearest city based on a given latitude. I have looked into ...
Ammar's user avatar
  • 33
1 vote
2 answers
308 views

How to get the centroid of a geographical region? (or: the center of mass of Croatia is in Bosnia and Herzegovina, but where exactly?) [duplicate]

How can I get Mathematica to calculate the centroid of an extended geographical region (say, a country) in a way which (i) fully respects the spherical nature of the Earth, and (ii) involves a minimal ...
Emilio Pisanty's user avatar
3 votes
1 answer
65 views

Latitude and Longitude values in GeoGraphics Image [duplicate]

I want to plot the Sicily with a lat/lon grid and respective values. This is what I've done so far: ...
Jepessen's user avatar
  • 960
2 votes
0 answers
106 views

GeoNearest[] between current location and a list of GeoPositions[]: Documented example is not producing documented output

First off I am doing this for recreational purposes only, so it's not the end of the world if I cannot figure this out. I am trying to utilize the GeoNearest[] ...
ydd's user avatar
  • 4,572
2 votes
2 answers
191 views

How to paint world map with some data?

I have a dataset which associate each country to respective number, from a list with few countries, as shown below: ...
SAC's user avatar
  • 1,335
5 votes
2 answers
170 views

List of large cities in Pakistan

Bug introduced in 12.2.0 or earlier and persisting through 13.1.0 I am using v12.2.0-Win7-x64. I have been experimenting with Geo* command syntaxes and came across ...
Syed's user avatar
  • 56k
8 votes
2 answers
203 views

Distance to the ocean

Given a GeoPosition, what is the recommended method to calculate its distance from the ocean? EDIT As an example, Atlanta is ...
Syed's user avatar
  • 56k
1 vote
0 answers
33 views

Double BarLegend for Geo* plots

I am trying to create a GeoRegionValuePlot based interface and I have a few unresolved items. This post is mostly about the use of a double ...
Syed's user avatar
  • 56k
3 votes
1 answer
308 views

How many people live in cities near the equator?

In order to answer this question, first I define a region around the equator. eq = GeoBoundsRegion[{{-3, 3}, {-180, 180}}] GeoGraphics[eq] Next, I wanted to find ...
Syed's user avatar
  • 56k
6 votes
1 answer
184 views

RegionIntersection for CountryData polygons

I am using v12.2.0-Win7-x64. ...
Syed's user avatar
  • 56k
4 votes
2 answers
129 views

Callout labels are wrong in GeoListPlot

...
yode's user avatar
  • 26.9k
7 votes
1 answer
145 views

Working with VectorLabels in GeoGraphics

Consider this example of GeoGraphics: ...
user5601's user avatar
  • 3,695
6 votes
2 answers
213 views

Remove islands from geographic regions

I wish to get only the continental parts of countries when using GeoGraphics, for instance in ...
Daniel Castro's user avatar
3 votes
2 answers
141 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 ...
Daniel Castro's user avatar
2 votes
1 answer
92 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. ...
Daniel Castro's user avatar
2 votes
0 answers
71 views

Crop or mask geographics

I am trying to crop a map drawn with GeoGraphics. The map consists of Line and Polygon ...
mikabozu's user avatar
  • 413
5 votes
2 answers
259 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 ...
Antonio Gonzalez's user avatar
3 votes
1 answer
85 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,...
sunt05's user avatar
  • 4,367
-3 votes
1 answer
110 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 ...
Peter Burbery's user avatar
1 vote
1 answer
85 views

Why does Entity Class return an empty value sometimes?

I am working on computing the 20 largest cities in California. ...
Peter Burbery's user avatar
-1 votes
2 answers
78 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 ...
Peter Burbery's user avatar
-3 votes
1 answer
85 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: ...
Peter Burbery's user avatar
4 votes
0 answers
99 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 ...
Peter Burbery's user avatar
1 vote
0 answers
92 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 ...
Peter Burbery's user avatar
3 votes
0 answers
99 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 ...
worldsmithhelper's user avatar
3 votes
1 answer
151 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 ...
Conor Cosnett's user avatar
3 votes
1 answer
126 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, ...
user42700's user avatar
  • 1,773
4 votes
1 answer
290 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 ...
Adalbert Hanßen's user avatar
3 votes
1 answer
113 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: ...
VLC's user avatar
  • 241
2 votes
1 answer
103 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: ...
ljubco Jovanov's user avatar
1 vote
1 answer
101 views

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

I used EntityValue to represent a map of a country. ...
Milk's user avatar
  • 1,738
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 ...
polfosol's user avatar
  • 952
4 votes
1 answer
108 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. ...
VLC's user avatar
  • 241
15 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 ...
sam wolfe's user avatar
  • 4,903
0 votes
1 answer
52 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, ...
sepehr78's user avatar
5 votes
1 answer
114 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. ...
Pillsy's user avatar
  • 18.6k
4 votes
1 answer
98 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 ...
Tugrul Temel's user avatar
  • 6,233
1 vote
0 answers
99 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 ...
Stuart Poss's user avatar
  • 1,893
3 votes
1 answer
84 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 ...
uselesslemma's user avatar
2 votes
0 answers
70 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 ...
Arji's user avatar
  • 1,134
14 votes
3 answers
6k 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 "...
Jagra's user avatar
  • 14.5k
0 votes
2 answers
281 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 ...
Juan Daniel Torres's user avatar

1
2 3 4 5 6