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

39
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 ...
20
votes
1answer
764 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, ...
17
votes
3answers
936 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?
17
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: ...
17
votes
2answers
443 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
657 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 ...
15
votes
1answer
397 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
378 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
1answer
225 views

Compability between Graphics coordinates and shifted projections in GeoGraphics

Bug status V. 10.0.0 - V. 10.2 I'd expect GeoGraphics to handle positions of points since they are provided with ...
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
670 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
2answers
288 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
1answer
290 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 ...
11
votes
2answers
200 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 ...
10
votes
2answers
150 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
792 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
0answers
103 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
3answers
916 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 ...
7
votes
1answer
330 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
167 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
274 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
311 views

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

When I evaluate CityData[All, "Coordinates"] Mathematica returns {Missing["NotAvailable"], Missing["NotAvailable"]} ...
6
votes
2answers
202 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
2answers
192 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. ...
5
votes
1answer
66 views

RandomPoint in geographic region from Polygon[region_]?

How do you generate a RandomPoint in a geographic region? ...
5
votes
2answers
175 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
492 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 ...
5
votes
0answers
109 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. ...
4
votes
3answers
380 views

How to correctly project heat map onto map

I'm importing the NGA ASAM piracy database into Mathematica for analysis. ...
4
votes
3answers
178 views

Maintaining map dimensions after using Colorize

I am trying to beautify a map by using Colorize as demonstrated in the Mathematica documentation. First, I import a shapefile from DIVA-GIS for France which ...
4
votes
2answers
381 views

How to get a country's official languages?

According to Wikipedia Of the 193 widely recognized countries, 178 have an official language at the national level (NB:or more than one) The only exceptions are: Cyprus, Czech Republic, ...
4
votes
1answer
72 views

upper limit with `PlotStyle` in `GeoListPlot` in v10.1

Bug introduced in 10.0 and fixed in 10.2 Let's start with the code below: ...
4
votes
1answer
85 views

Cost of Living comparison for many cities

I have an excel file with about 40 cities listed. I would like to compare the cost of living for each one. I have seen the sample "relocation calculator" given by the input: ...
4
votes
1answer
143 views

What should I do if the geographical map provided by Mathematica doesn't show some rivulets?

I have a list of geographical coordinates(maybe the coordinates are not that accurate, but the problem is not that vital): ...
4
votes
1answer
576 views

How to create an interactive map of the 50 states showing certain data in tool tips boxes for health care policy development?

To create a means of displaying information about the distribution of primary care providers, the population density and the average yearly Medicare expenditure per enrollee for each state, I would ...
4
votes
1answer
165 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. ...
3
votes
2answers
67 views

Color Polygons Using GeoListPlot works individually, but not together

I have following problem: and So far so good. But GeoListPlot[{test[[;; 2]]}, ImageSize -> 300] does nothing (produces a blank map). Similarly, the code ...
3
votes
1answer
79 views

Plotting country as a polygon

I am trying to reproduce an example from Geographics. GeoGraphics[Polygon[Italy]] It does not work. Using Ctrl+= this way: ...
3
votes
1answer
313 views

How do I convert from NAD 83 State Plane Coordinates to Latitude and Longitude?

I am trying to convert NAD 83 State Plane New York Long Island coordinates to Latitude/longitude. Below is my code - what am I doing wrong? ...
3
votes
1answer
299 views

Calculate geo location based on distance from other locations

Given a list of entities (or GeoPositions) and their distances from a particular location, how do I find that location's ...
3
votes
0answers
55 views

Exported CDF file does not include GeoGraphics [duplicate]

I'm trying to display a map on manipulate and the case is .nb files shows it but when I export it to .cdf this format not show the GeoGraphics map ...
3
votes
0answers
94 views

Problem drawing a GeoPath polygon with GeoGraphics

I want to draw some polygons bounded with various geographic coordinates. For example, here is the code to draw a triangle between New York, Cape Town and Beijing. ...
2
votes
2answers
94 views

Incompatibility of CountryData[] between v. 9.0 and 10.1

There seems to be an incompatibility between the representation in CountryData[] for versions 9.0 and 10.1. The documentation on ...
2
votes
1answer
120 views

Distances of locations in the matrix form

I want to have the distances of the cities in the matrix form.How can I have it for example for the cities like followings that also includes the distance of the city from itself which is zero: ...
2
votes
2answers
110 views

Coloring a map of GeoRegions

I know that I can plot multiple GeoGraphics results on the same map by using something like Show[Graphics@@p1, Graphics@@p2], but it doesn't really work (seems to ...
2
votes
1answer
266 views

Cluster entities by a combination of values

I can plot the population of zip codes in NY with something like ...
2
votes
2answers
391 views

City/Country Names by GeoLocation

How do I get the city and country names from the output of FindGeoLocation[] {lat, long} ?
2
votes
1answer
134 views

“ReliefMap” and “ContourMap” unable to download error

This question may be closed as "too localized". I post in the event other users have had this error and resolved it. The problem: inability to use "ReliefMap" or "ContourMap" options for ...
2
votes
1answer
70 views

How to overplot Graphics on GeoGraphics? [duplicate]

I have a parametric plot and a GeoGraphic of the same size and I want to overplot them. Show doesn't seem to like to use both at the same time though it will display either. How can I put regular ...