Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
World countries shapefile to globe in mapping toolbox?

Subject: World countries shapefile to globe in mapping toolbox?

From: Chuck37

Date: 10 Oct, 2011 18:51:26

Message: 1 of 1

I'm looking for some hints on how to make myself a rotatable globe with countries of the world. I have found several sources of shapefiles on-line, and I can plot these in 2D, but I keep getting errors when I try to go to the globe. The issue seems to be related to reading the shapefiles with "usegeocoords" set to true. If I do that, I get an error like this, regardless of how I try to plot it (using geoshow):

"Inconsistent polygon topology: Encountered a chain of more than two connecting

But to plot to a globe, I think I need the data to be like that, as opposed to simple X,Y coordinates. I'm still struggling to understand the mapping toolbox, so any help would be great.

I have successfully made globes with the borders displayed as simple lines, but this is not as useful since there is no color difference between the inside of a country and the outside. Things are easier to see when the countries are filled in. Thanks.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us