OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#1 2018-12-10 22:54:59

This Is A Display Name Desu
Member
Registered: 2018-11-19
Posts: 51

Is it incorrect to directly connect a way across 180° line?

Offline

#2 2018-12-11 06:15:28

This Is A Display Name Desu
Member
Registered: 2018-11-19
Posts: 51

Re: Is it incorrect to directly connect a way across 180° line?

*Note, what I mean is that it seems like the way I linked it caused the line to go over most part of the earth and thus the line would exist even when one is trying to zoom into African coast at that altitude. How should it be changed to make it display correctly while making it navigationally work?

Offline

#3 2018-12-11 08:34:50

GerdP
Member
Registered: 2015-12-18
Posts: 526

Re: Is it incorrect to directly connect a way across 180° line?

I think the way for the ferry line is mapped OK, since it is split at the -180/180 longitude. The link shows the bounding box of your changeset, and that contains points on both sides of that line, thus is stretches over planet and looks like single way.
So, reg. the renderer everything should be okay. BUT reg. routing you may have problems because the ferry is connected to a man_made=pier
without a highway (both ends). I suggest to map the pier as a closed way and extend the ways with highway=unclassified to the amenity=ferry_terminal nodes.

Offline

#4 2018-12-11 09:54:14

This Is A Display Name Desu
Member
Registered: 2018-11-19
Posts: 51

Re: Is it incorrect to directly connect a way across 180° line?

GerdP wrote:

I think the way for the ferry line is mapped OK, since it is split at the -180/180 longitude. The link shows the bounding box of your changeset, and that contains points on both sides of that line, thus is stretches over planet and looks like single way.
So, reg. the renderer everything should be okay. BUT reg. routing you may have problems because the ferry is connected to a man_made=pier
without a highway (both ends). I suggest to map the pier as a closed way and extend the ways with highway=unclassified to the amenity=ferry_terminal nodes.

When I made the thread, I was using a single way to connect both ends and thus it appeared to span across the entire earth at the time. I have subsequently split the ferry route to two half in Eastern/Western hemisphere and then connect them together by using a relation and then put the pier node onto a node on the way=pier way and then connect the way=pier to the island's road.

Offline

Board footer

Powered by FluxBB