Unable to get the location bound of Sketchup model using Sketchup Ruby API
<p>I have a Sketchup 3d model that is geo-located. I can get the geo-location of the model as follows :-</p>

<pre><code>latitude = Sketchup.active_model.attribute_dictionaries["GeoReference"]["Latitude"]

longitude = Sketchup.active_model.attribute_dictionaries["GeoReference"]["Longitude"]
</code></pre>

<p>Now i want to render this model on a 3D globe. So i need the location bounds of the 3d model. </p>

<p>Basically i need bounding box of the model on 2d map.</p>

<p>Right now i am extracting the same from the corners of a model(8 corner).</p>

<pre><code>// This will return left-front-bottom corner.
lowerCorner = Sketchup.active_model.bounds.corner(0)
// This will return right-back-top corner.
upperCorner = Skectup.active_model.bounds.corner(6)
</code></pre>

<p>But it returns simple geometrical points in meters, inches depending upon the model.</p>

<p>For example i uploaded <a href="https://3dwarehouse.sketchup.com/model.html?id=8bd19f4a119ec1b9c96a646c5f2af8d0" rel="nofollow"><strong>this</strong></a> model in sketchup.  Following are the values of <strong>geo-location</strong>, <strong>lowerCorner</strong> and <strong>upperCorner</strong> respectively that i'm getting by using the above code for the above model.</p>

<pre><code>geoLocation : 25.141407985864, 55.18563969191 //lat,long
lowerCorner : (-9483.01089", -6412.376053", -162.609524") // In inches
upperCorner : (-9483.01089", 6479.387909", 12882.651999") // In inches
</code></pre>

<p>So my first question is what i'm doing is correct or not ?
Second question is If <em>yes</em> for the first how can i get the values of lowerCorner and upperCorner in lat long format.</p>