Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a single polygon in a local projection system. I would like to convert that polygon into an image that can be used as an overlay on google maps. I understand that it may be better to use existing projects such as Mapnik, but I am still interested in the process of turning coordinates into pixels.

My scripts current flow is as follows:

  • Convert polygons to Google Spherical Mercator Projection.
  • Divide the coordinates by the map resolution (metres per pixel) for the zoom level in question.
  • Transform the coordinates of the polygon to be relative to the origin of the image.
  • Render the coordinates to an image file.

Will such a process result in a cartographically correct rendering of the data? Am I leaving anything out?

share|improve this question
This might be useful - – Mapperz Jul 12 '11 at 14:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.