MapServer + PostGIS + Google Maps

MapServer + PostGIS + Google Maps

Because to many people, Google Earth is not suitable for all 95% of the computer population out there, Google Maps (and other competing dynamic map platform) is still the way to go to display geographical data.

However, what if the data that you want to display is simply too heavy for the client side to display? For instance, you want to overlay polygons representing electoral districts (each 308 of them in Canada). But loading all of these in Google Maps is not practical for the average computer in 2009.

You might want to explore a server-side method to serving the data. This could be with MapServer, which in a nutshell serves image "tiles" (we make them to be 256x256 PNGs for Google Maps) to the client. For instance, the following image may be such a tile:

mapserver tile

Behind the scenes, MapServer goes to the data source and outputs by CGI the right image. The data source can be a Shapefile or other, but can also be a database, namely a PostgreSQL DB with Postgis. Read the MapServer FAQ to see how awesome it can be.

Categories

Leave a comment


Type the characters you see in the picture above.

About this Entry

This page contains a single entry by Cedric published on August 30, 2009 2:42 AM.

Sumo Ramen, 1007 Boul. St-Laurent was the previous entry in this blog.

MapServer (with TileCache) + PostGIS + Google Maps: a demo is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.