Comments (3)
I couldn’t find driving side option when execute conversion using OSM2World.
https://wiki.openstreetmap.org/wiki/OSM2World/Configuration_file
unfortunately, this requires changing the source code at the moment.
Specifically, this constant needs to be set to false instead of true:
https://github.com/tordanik/OSM2World/blob/master/src/main/java/org/osm2world/core/world/modules/RoadModule.java#L62
I had changed and execute conversion but couldn't get expected result.
I changed only true
to false
like below:
public static final boolean RIGHT_HAND_TRAFFIC_BY_DEFAULT = false;
Input osm (Abbreviate some elements.)
The road has 3 lanes and is left-hand traffic.
<bounds minlat="35.5981328" minlon="139.6096246" maxlat="35.5991328" maxlon="139.6106246"/>
...
<way id="885553305" visible="true" version="2" changeset="96203679" timestamp="2020-12-21T15:07:45Z" user="ffff23" uid="10888797">
<tag k="highway" v="primary"/>
<tag k="lanes" v="3"/>
<tag k="lanes:backward" v="1"/>
<tag k="lanes:forward" v="2"/>
<tag k="name:en" v="Tsurumi Mizonokuchi Line"/>
<tag k="name:ja" v="鶴見溝ノ口線"/>
<tag k="oneway" v="no"/>
<tag k="ref" v="14"/>
<tag k="route" v="road"/>
<tag k="turn:lanes:forward" v="left;through|right"/>
</way>
...
</osm>
I expect:
- Leftmost lane have left-turn and straight-through arrow.
- Middle lane (right of forward lane) have righ-turn arrow.
- Rightmost lane have no sign.
But I got:
- Leftmost lane had right-turn arrow.
- Middle lane (right of forward lane) had left-turn and straight-through arrow.
- Rightmost lane had no sign. (It's expected)
By the way, convert with right-hand traffic is true:
- Leftmost lane had no sign.
- Middle lane had left-turn and straight-through arrow.
- Rightmost lane had right-turn arrow.
Please use this as a reference.
from osm2world.
Thank you for looking into this more closely, this is a very useful report. With your example, I was able to easily reproduce the issue. It appears that the logic for parsing keys with a :lane
suffix does not correctly take driving directions into account. (I believe the result of getPerLaneTags
needs to be reversed for left-hand traffic.) I'll make sure to fix this soon.
from osm2world.
c2faa23 fixes incorrect lane arrangement for left-hand traffic.
34a2337 additionally offers a config option drivingSide=left
that changes the default so that changes to the code itself should no longer be necessary.
I hope these commits resolve the issue, please let me know if there are still problems!
from osm2world.
Related Issues (20)
- Is LGPL license applying also to all resorces/textures/models etc? HOT 2
- Other games besides SuperTuxKart? HOT 2
- Barriers as building parts HOT 2
- visual error when modeling half-hipped roof with ridges and edges HOT 1
- window:frame:colour HOT 2
- door materials HOT 3
- two nodes with same position -> crash HOT 1
- steps connecting different levels
- wrong interpretation of step_count HOT 1
- support for building:material=timber_framing HOT 1
- some roof shapes not rendered with exact heights
- building:part=yes not rendered if only roof is visible HOT 3
- domed roof not respecting min_height HOT 1
- XML-parser chokes on some usernames HOT 7
- Using gui and windows batch to convert *.osm to *.obj produce non-identical results HOT 1
- GLException: Unable to determine GraphicsConfiguration HOT 2
- Road junctions problem HOT 1
- Add support for roof:shape=side_hipped
- Elevations in feet are ignored HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osm2world.