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

When i draw a polygon using the OpenLayers.Control.DrawFeature then i export that polygon to KML using OpenLayers.Format.KML. Though, when I open it in google earth there is a big difference between the areas the polygon crosses even though the vertices of that polygon are exactly the same.

WHY? How would i go about getting an accurate output to KML?

enter image description here

share|improve this question
up vote 2 down vote accepted

Could it be just an issue with projection? Are your line's 2 endpoints in the "right" place on both maps? If so, maybe you should put more intermediary points along the way to "help" the line be in the right place in any projection.

share|improve this answer
Yes, the line endpoints are in the "right" place. I guess that's what i'm going to have to do. – CaptDragon Dec 2 '11 at 14:12

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.