abs8090
abs8090

Reputation: 131

how to convert world lat and long coordinates to something ONE simulator understands?

I have the coordinates of Manhattan in a .wkt file and an example of that file content is: LINESTRING (40.619605 -73.9584046, 40.6205286 -73.9585793, 40.6206127 -73.9585952)

ONE simulator does not recognize such coordinates to display the map of Manhattan and instead needs something that looks like this: LINESTRING (4883.179 10736.259, 4924.922 10811.716)

I'm not sure what format that is nor not sure what to search for in google. I need to know how to convert from LINESTRING (40.619605 -73.9584046, ... to something like LINESTRING (4883.179 10736.259, 4924.922 10811.716)

preferred language is python, thanks.

Upvotes: 0

Views: 91

Answers (1)

Ari Keränen
Ari Keränen

Reputation: 26

The format ONE uses is subset of the standard WKT format. See details in the WKTReader class and ReadMe.

The coordinates used in the WKT input files are in reference to the simulation world coordinates. You can open your source map file with a WKT editor (e.g., OpenJUMP) and translate the coordinates so that they’re all positive and that could be enough.

Upvotes: 0

Related Questions