OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2019-06-06 13:05:37

MikelGarcia
Member
Registered: 2019-06-06
Posts: 2

Osm2World lat and long of origin of coordinates of exported .obj

Hello,

I downloaded Osm2World and exported a .osm file as a 3d .obj file. I will like to know if I can get the exact latitude and longitude of the origin of coordinates of the 3d object.

I saw that in the OSM2World.jar viewer there is a option in the "View" tab called "LatLonDebugView" but when I select it the viewer freezes and I need to close it. sad

Any idea in how could I get that position?

Kind regards.

Offline

#2 2019-06-06 17:40:27

Tordanik
Moderator
From: Germany
Registered: 2008-06-17
Posts: 2,392
Website

Re: Osm2World lat and long of origin of coordinates of exported .obj

An .obj file written by OSM2World will always contain the latitude and longitude of the origin as a plaintext comment. The comment looks somewhat like this:

# This file was created by OSM2World 0.2.0 - http://osm2world.org

# Projection information:
# Coordinate origin (0,0,0): lat 48.573213949999996, lon 13.464217200000022, ele 0
# North direction: (0.0, 0.0, -1.0)
# 1 coordinate unit corresponds to roughly 1 m in reality

I believe there's no standard way to add such information to an .obj file, unfortunately, which is why I used a comment. But maybe that is something you can work with?

Offline

#3 2019-06-07 11:11:22

MikelGarcia
Member
Registered: 2019-06-06
Posts: 2

Re: Osm2World lat and long of origin of coordinates of exported .obj

Thanks a lot! That was exactly what I was looking for big_smile

Offline

Board footer

Powered by FluxBB