circle appear oval in GE

145 views
Skip to first unread message

interestedInKML

unread,
Dec 10, 2009, 4:39:54 AM12/10/09
to KML Developer Support - Advanced Support for KML
Hi,

In my database I have a circle which based on the UK britisch national
grid in mm. Based on that coordinate system this feature really look
like a circle.

But when this features is defined as a Placemark based on a LineString
this feature does not look like a circle. This shape is oval.

Based this problem on the projection?

What can I do to generate this feature as a circle in Google Earth?


Many thanks.

Andy4834

unread,
Dec 11, 2009, 6:17:59 AM12/11/09
to KML Developer Support - Advanced Support for KML
Hi
You are correct that projections and also coordinate systems are at
the root of your problem.

Two useful resources to understand the background a little better are:
Google Earth projections - http://earth.google.com/userguide/v4/ug_importdata.html
which explains a bit about GE's use of projections - the facts are
that GE uses the WGS84 datum and lat/lon coordinates and a cylindrical
projection for its imagery base
UK Ordnance Survey grids -
http://www.ordnancesurvey.co.uk/oswebsite/gps/docs/A_Guide_to_Coordinate_Systems_in_Great_Britain.pdf
- this explains that UK OS uses the OSGB36 datum and lat/lon
coordinates and a UK specific Transverse Mercator projection and
coordinates for the familiar 1:500000 mapping. These UK specific
coordinates are the familar OS 6 figure grid references - eg SU734331.

So what looks like a circle in UK OS grid referenced coordinates will
not look like a circle in Google Earth because the projection is
different (transverse Mercator vs cylindrical) and the assumed shape
of the earth differs (WGS84 vs OSGB36 causing lat/lon values to be
different).

You have some choices. Convert your OS coordinates to WGS84 lat/lon
and your "circle" in OS coordinates will be correctly represented on
the Google Earth imagery - probably what you are doing now but it will
be distorted. Or redraw a "circle" as a Google Earth placemark with
the same centre and radius. This circle will look good on Google Earth
but it will not be the same "circle" you had in OS coordinates.

This thread
http://groups.google.com/group/google-earth-browser-plugin/browse_thread/thread/7d6c2895b590d4c5/b23abf824e3bfe36?lnk=gst&q=circle+polygon#b23abf824e3bfe36
gives some really useful informationon drawing circles in Google
Earth.

Hope all this helps
Andy

Andy Anderson

unread,
Dec 11, 2009, 7:52:41 AM12/11/09
to KML Developer Support - Advanced Support for KML
The UK grid is probably a more accurate representation of your circle,
i.e. if it's a circle in that projection, then it's close to a circle
on the ground. If that's what you want, then you need to reproject,
and it should still look like a circle when you are directly above it
in Google Earth; only from the side will it appear elongated.

The question, though, is how you are converting it to Google Earth
coordinates, which are geographic coordinates defined in a different
datum. As the other Andy indicates, you would need to convert from the
UK Grid' projected coordinates and underlying OSGB36 geographic
coordinates to WGS84 geographic coordinates. This is not usually a
simple process, it is easiest to use software designed for this
purpose, e.g. ArcMap or perhaps the free Quantum GIS:

http://qgis.org/

-- A different Andy

Andy4834

unread,
Dec 12, 2009, 3:59:29 AM12/12/09
to KML Developer Support - Advanced Support for KML
Hi
Andy Anderson is correct. A resource that I have used is
http://www.movable-type.co.uk/scripts/latlong-gridref.html - this has
a good javascript implementation of the coordinate transformations. If
you are interested I also have a c# implementation which I would be
happy to share.
Regards
Andy
> > Many thanks.- Hide quoted text -
>
> - Show quoted text -
Reply all
Reply to author
Forward
0 new messages