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

learn more… | top users | synonyms

41
votes
1answer
2k views

Google Map in Notebooks?

Using Mark McClure's GPXToGoogleMap results in a HTML and Javascript code which can be viewed by any browser. Is it possible to load this map into the notebook, which obviously means for example that ...
22
votes
3answers
1k views

How to make a 3D topographic globe?

I've made some attempt with this dataset of elevation. But I have some trouble with ListSurfacePlot3D, which can not show the globe correctly: And I've checked that the data is out of problem, ...
20
votes
1answer
847 views

xkcd: Geohashing in Mathematica

On May 21, 2008, an xkcd comic proposed a method for creating a random, local meeting place that can't be determined until the day of the meeting. This method is usually used for xkcd fan events, ...
19
votes
1answer
302 views

How to use WikiMapia as GeoServer?

I wish to use the Wikimapia map as background in GeoGraphics. According to the Wikimapia Docs, Wikimapia's URL is encoded as follows: An example Wikimapia URL ...
18
votes
3answers
1k views

How can I list all the 'countries 4000 km far from current location'?

A friend said to me on Facebook that she is 4000km away. So I want to try to guess where she is. How can I find which countries are a given distance from my current location?
18
votes
3answers
1k views

Highlighting individual countries on a world map

Consider the following list of countries which I would like to highlight on a world map: ...
18
votes
1answer
697 views

Using Texture to color countries according to their timezones

So I'm trying to make a world map, where each country is colored according to its timezone. Except, for countries with multiple timezones, the country is filled with vertical stripes of colors ...
17
votes
4answers
2k views

show density plot on US map

I have a bunch of data points in the form of {latitude, longitude}. How can I plot their density on a US map? Single points on the map do not clearly show their ...
17
votes
2answers
587 views

Can A Plot Be Overlayed With A Map?

Some brief, only slightly important background. I am doing a research project using the data from NASA's GRACE mission. I wrote a short Perl script to take two data files and find the change in ...
16
votes
1answer
363 views

GeoGraphics: problem with GeoPosition in shifted projections

Bug introduced in 10.0.0 and persisting through 10.4.1 A remark about the answer: My work around is only nice for simple cases with points. More general should include proper polygons splitting on ...
15
votes
1answer
434 views

CountryData and the areas of the world

If I add the WaterArea and the LandArea of the world, I get the same number as if I asked for the total area of the world in the first place: ...
14
votes
2answers
467 views

How to ContourPlot a function of the coordinates on the Earth's surface on a map projection

There are two similar questions (this and this), but one is too specific and the other is apparently not clear and has no answers. I'll try to make the question more complete. Suppose you have a ...
14
votes
4answers
251 views

Administrative Divisions bordering a geographic region (e.g. an ocean)

Update 3 I've worked out a solution that is bearable for a small number of subregions in the neighbour and added it as an answer. I'm going to make a post for optimisation help. Update 2 For a ...
14
votes
2answers
281 views

Extract bathymetry data from a map

Thanks everybody for edit and recommend. Here is a clearer version of my question. I have a map that shows bathymetry of a lake with legend showing depth relative to a range of color. The map ...
14
votes
1answer
312 views

GeoGraphics : path within a country

I am using GeoGraphics to visualize electricity distribution networks in certain countries. I have susbtation location data, as well as network incidence matrices ...
14
votes
1answer
359 views

How do I remove roads from Mathematica maps?

I'm using GeoGraphics and Polygon[Interpreter["USState"]["Colorado"]] to create a map of Colorado and several bordering states. ...
13
votes
3answers
1k views

Flying to Australia

I want to compare different flight routes to Australia and their lengths. So far I have written: ...
13
votes
1answer
450 views

How does Mathematica know my location?

On the AstronomicalData page in the online reference, it says for AstronomicalData["Sun", "NextRiseTime"] that it finds the ...
13
votes
1answer
942 views

Map of Specific US States? (Isolated)

My question here is fairly basic, and I'm sure I'm overlooking something basic. I know about CountryData for creating shapes of entire countries, and it works, to ...
13
votes
1answer
345 views

Geographic background containing both outlines and contours: how?

I would like to create a map which will show lakes and rivers together with elevation contours and contour labels. What is the simplest way to do this with ...
13
votes
2answers
336 views

Combine Stereographic “Entity” Plot of Arctic Sea with Contour Plot

In the announcement of Mathematica 10 there were some very cool features for every geo-related researcher. Like this one what i'm trying to do is to overlay an ContourPlot onto this beautiful arctic ...
12
votes
2answers
334 views

Zooming using GeoGraphics

Suppose I do: GeoGraphics[Entity["City", {"Eureka", "California", "UnitedStates"}]] What do folks do at this point to zoom in to various parts of the image?
10
votes
5answers
731 views

Building graph based on the cities connection?

I built a Graph based on the permutations of city's connections from : ...
10
votes
3answers
741 views

Automatically adjust Russia on the map (Mathematica 10.0)

Bug introduced in 10.0.0 and fixed in 10.1 I'm using Mathematica 10.0 on Windows 10. If I take a map of any country (even continent), it automatically adjusts the size of the map. ...
10
votes
1answer
139 views

Why some GeoProjections show just half of Chukotka region (Russian map)

I've moved to V.10.4 and proceed with Russian map (the aim is to geoplot regional distributions of some values). Notice most eastern Russian region - Chukotka. Chukotka, unlike other entities, ...
10
votes
2answers
174 views

How can access to curated data needed by GeoRegionValuePlot be speeded up?

Seems that GeoRegionValuePlot requests data from the internet multiple times to process its plot. As an example, let's graph smoking per capita worldwide. ...
9
votes
2answers
1k views

Using J/Link to decode Google Maps Polyline strings

I would like to use this java code inside Mathematica using J/Link. It converts Google Maps API Encoded Polylines to a list of points. I tried the Mathematica tutorial but got lost. There is the Java ...
9
votes
1answer
1k views

How to combine more locations (GPS coordinates inside one city) with Google map?

I have a list of GPS coordinates.E.g. GPSList = {{47.680800, 17.626446}, {47.681078, 17.627283}, {47.682759, 17.631810}}; I would like to crate a Google Map ...
9
votes
1answer
203 views

Odd Coloring with GeoRegionValuePlot

Bug introduced in 10.0 and persisting through 10.3 or later Bug behavior is version dependent When I'm plotting data with GeoRegionValuePlot, I'm getting some ...
9
votes
0answers
164 views

Make the map of rivers and lakes of the country

As I understand,first of all I should to get the country's map and the river's list. To get country map is simple: ...
8
votes
1answer
137 views

RandomPoint in geographic region from Polygon[region_]?

How do you generate a RandomPoint in a geographic region? ...
8
votes
3answers
1k views

plotting a {{Latitude,Longitude}} list on top of a GIS shapefile

I have a dataset composed of points specified in {Latitude,Longitude} format. Call it latlong for the purposes of this question. It displays properly with ...
8
votes
1answer
124 views

GeoGraphics Manipulation

So far this is what i have: ...
8
votes
1answer
377 views

Is it possible to construct a topological map of road network of Bangalore?

I saw this example wherein the CityData gives the map of a city. But this is available for a relatively small set of curated regions. Is it possible to extract ...
7
votes
1answer
236 views

Getting the coordinates of GeoDisk[] and similar Mathematica 10 GeoObjects

I'm a big fan of the new Mathematica 10 geographic capabilities and functions such as GeoDisk[], GeoCircle[] and others. One limitation of these functions, however, is the transformation of the actual ...
6
votes
2answers
422 views

How do I plot my country map with weather data stations?

I've tried this code, but I can't plot the coordinates in my country map. ...
6
votes
2answers
369 views

Why is CityData[All, “Coordinates”] failing?

When I evaluate CityData[All, "Coordinates"] Mathematica returns {Missing["NotAvailable"], Missing["NotAvailable"]} ...
6
votes
1answer
413 views

Geographics: Can I get a US Map silhouette without the Great Lakes?

I'd like to get a nice silhouette of the land area of the US lower 48 states using Mathematica's GeoGraphics method. I tried: ...
6
votes
2answers
273 views

How can I output the coordinates of a city in coordinates of the Mercator projection?

On Mathematica version 8, I would like to use CountryData and CityData to mark Paris on a polygon map of France in the Mercator ...
6
votes
1answer
60 views

How to get information from map using mouseover?

Assume I have the following zip code data: ...
6
votes
2answers
243 views

Building bounded polygon around heatmap (or points)

I have a set of data for world marine piracy. I'd like to build polygons encircling areas of active piracy. So to start with I get piracy data and make a heatmap from it. ...
6
votes
0answers
74 views

How can I define geographic regions and new entities?

There are three functions (GeoListPlot, GeoGraphics and Entity) related to working with geographic regions but it is not clear from the documentation how to create new Entities or custom geographic ...
6
votes
0answers
150 views

Trouble understanding TrackedSymbols

While developing a relatively complex demonstration for Manipulate I encountered the problem that my output was unintentionally self-updating in an endless loop. ...
6
votes
0answers
255 views

CountryData fails for some tags and properties

The problem has gone, presumably resolved by WRI. See kirma's comment. I'm using Mathematica 10.0.2 for Mac, and for the first time just tried CountryData. ...
5
votes
3answers
417 views

Drawing CountryData groups

I'm sure I'm overlooking something obvious, but I can't draw groups of countries. Here are two countries and two country groups: ...
5
votes
1answer
290 views

GeoGraphics - mapping the Moon

The link here shows a nice way to depict the map of the Moon in Mathematica. But is there a way, to center the Mollweide projection onto the far side of the Moon?
5
votes
1answer
132 views

Wolfram population density demonstration does not appear to work

I tried to do the Wolfram population density demonstration and it returned an error: ...
5
votes
1answer
34 views

How to control style of GeoScaleBar?

I'm plotting the GeoScaleBar over satellite image and wish it to be white but cannot find an option which controls its styling: ...
5
votes
2answers
207 views

How to make a world map with a coloured ocean and transparent land surface?

I'd like to make a world map with a blue coloured ocean and transparent land surface (to be used later as an overlay). With: ...
5
votes
1answer
624 views

Geocoding addresses to geographic coordinates

I am writing a research proposal for a project on voter turnout as related to proximity to mass transit. The first part of my project would require geocoding hundreds of thousands of addresses, but ...