Categories: How Do I...? : MAC :

Precise Polygon

Showing 1-6 of 6 messages
Precise Polygon zeetzerboy 6/18/12 5:20 PM
Is there some way to make a polygon without actually doing the clicking?  I know how to do a standard polygon but I'd like to know if there's some way to input multiple coordinates (latitude, longitude) and let Google Earth draw the exact polygon when the points are entered.  Is there something in the actual program that I'm missing, is there some sort of download/add on that I can get, or is something like this only possible in Google Earth Pro?
Re: Precise Polygon jasonM1 (GE TC) 6/20/12 10:28 AM
You can simply paste the coordinates together insert a KML snippet then open it in Google Earth.

Just need to follow the KML format and make sure the first and last point are the same.

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Placemark>
<name>Test Polygon</name>
<Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates> -122.365662,37.826988,0 -122.365202,37.826302,0 -122.364581,37.82655,0 -122.365038,37.827237,0 -122.365662,37.826988,0 </coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
</Placemark>
</kml>

https://developers.google.com/kml/documentation/kmlreference#polygon
Re: Precise Polygon zeetzerboy 6/28/12 11:39 AM
Okay, so obviously I tried out that format you put down there exactly and it worked.  But when I put in my own coordinates with that format, the polygon's shape was signficantly off, sometimes it would have this weird warped shape around the globe.  So now what am I doing wrong?
Re: Precise Polygon zeetzerboy 6/28/12 11:50 AM
In fact, the last couple times I tried it, it doesn't even zoom in on a location, it takes me to this random general view of the northeast part of South America, with no polygon.
Re: Precise Polygon Noisette 6/30/12 2:36 PM
Perhaps you could attach your example?  In particular, make sure there is no space between the coordinates, only a comma.

Re: Precise Polygon jasonM1 (GE TC) 7/10/12 6:01 AM
If the shape wraps around the globe then either 1) you're placing latitude value before longitude, or 2) the shape spans the international date line (-180/+180 longitude) -- that may cause such a problem.

Verify all your coordinates are in the form (longitude,latitude,altitude).


 <Polygon>
<outerBoundaryIs>
<LinearRing>
<coordinates> -122.365662,37.826988,0 -122.365202,37.826302,0 -122.364581,37.82655,0 -122.365038,37.827237,0 -122.365662,37.826988,0 </coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>

https://developers.google.com/kml/documentation/kmlreference#polygon

As Noisette mentions attaching a KML example would quickly show what's going on.