3D Globe

From Fmepedia

This example shows how a 2D map in lat/long can be converted into a 3D globe.

Actually, my attempts to make digital 3D globes started many years ago - around 1996. At that time I was amazed by MicroStation 3D capabilities, and wanted to make something really cool. So I created a sphere, and covered the surface with an image representing the map of Saint Petersburg, Russia.

The globe was quite well received by my colleagues, and one local newspapers published an article about the globe and city planners having fun at work.

Now, 11 years later, I am in the globe making business again. This time with FME.

The main problem of making a globe with FME is lack of geocentric coordinate calculation - our Reprojector transformer does not have a geocentric projection yet. But there is an excellent web site MathWorld (http://mathworld.wolfram.com/SphericalCoordinates.html), which always can help if there is need in any help with math. The page about Spherical Coordinates (http://mathworld.wolfram.com/SphericalCoordinates.html) gave me all the formulas, so I was able to make my first globe quickly and easily:

I wonder how our geography, cartography or geodesy would look like if those who made our planet also would make the same error in trigonometry and use a cosine instead of a sine in this simple formula:

My next globe also was not quite right - countries didn't want to stick properly to Earth, what made an interesting effect:

Eventually, I resolved all the problems and got the following globe :

The workspace takes a shapefile with very generalized country shapes, chops all the countries into separate points and calculates 3D coordinates for each point separately, rebuilds polygons in 3D, and extrudes them according to the extrusion vectors also calculated within the workspace.

If you have the latest Adobe Reader (http://www.adobe.com/products/acrobat/readstep2.html) installed, you can enjoy my 3D Globe right now (or when all 4 megabytes will be downloaded to your computer).

Check also another globe example.

Attached Files
filesizedate
GlobeGenerator.fmw100.9 kB02/07/08
formula.gif1.2 kB02/13/08
globe.pdf4.3 MB02/07/08
myEarth.png42.9 kB02/06/08
myEarth2.png108.4 kB02/06/08
myEarth3.png87.9 kB02/06/08
myEarth4.png219.1 kB02/07/08
simpleWorld.zip105.8 kB02/07/08
spbgl12.gif190.2 kB02/06/08
spbglob.jpg58.6 kB02/06/08
User Comments Add a new comment