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 am very new to GIS, and my task is to overlay about 100 polygons on a map. I'm using Google Maps Javascript API v3.

I think I can define all my polygons as sets of lat/long coordinates in my database and programmatically loop through those sets of coordinates to create polygon overlays to put on the map.

Or, it looks like I can take an existing ESRI/ArcGIS shape file and convert it to KML and use that for a custom overlay. This seems more difficult to me and like it may be problematic if I need to tweak my polygon data if I don't like what's in the shape file. But I have no expertise with this, so I'm not sure.

At any rate, I don't know the advantages or disadvantages of either approach. Or if there's another approach I should consider.

Any guidance or words of wisdom are greatly appreciated. Thanks in advance.

share|improve this question
Does your polygon data have attributes? – R.K. Nov 8 '12 at 4:04
Good point, R.K. I hadn't considered anything beyond just the basic polygon boundaries, but I think you and sgrieve have convinced me to use the shape file and modify it to meet my needs, rather than reinvent the wheel by trying to recreate everything (and re-invent the wheel) in my database. – theog Nov 8 '12 at 20:41
up vote 4 down vote accepted

I recently performed a similar task, where I converted a series of 3D polygon shapefiles into KML files to view the data in Google Earth. I came across the Export to KML extension for ArcMap 9.3 or 10, which handles the export of shapefiles as KML, allowing labels, styles, temporal data and attributes to all be set and modified. I have found this extension to be much more powerful and user friendly than the standard ESRI tools for exporting KML data.

Another option I considered, but eventually rejected due to the need to use polygon styles defined in an existing mxd file, was to use FME to create a workbench to translate shapefiles into KML data. This would be an ideal solution if you will need to perform the same operations on a lot of shapefiles automatically, as the Export to KML extension cannot be scripted.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.