I am struggling a bit with placing some construction points based on some UTM32 coordinates I pulled from a public provider.
The points are all placed correctly relative to each other, but when overlayed over a geolocation snapshot the figure looks mirrored, rotated and squashed.
The model is geolocated:
I tried to run the following code in a model geolocated near the point:
point = [6116763.558, 519305.906] utm_zone_number = 32 utm_zone_letter = "U" model = Sketchup.active_model pointutm = Geom::UTM.new utm_zone_number, utm_zone_letter, point, point point3Dutm = model::utm_to_point(pointutm) utm_from_point = model::point_to_utm(point3Dutm)
For some reason the coordinates from the source are y, x it looks like.
The UTM object:
pointutm UTM(32 U 519305.90600 6116763.55800)
but the conversion to a point3D seems to be wrong, because if I convert the point3D back into UTM the coordinates are not the same:
utm_from_point UTM(32 U 519495.01108 6116192.84162)
What gives? They are off, but not by that much.
model.get_datum gives me “WGS 84” if that has any significance.