Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Re: Creating a street between 2 Open Street Map Points (OSM) via Simtalk

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

it is not that easy,

 

you need two coordinates: start and end; in the first step you create the object on its start coordinate (somehow you do need re-calculate the lat/lon into pixels), then you change the end position via the segmentsTable

 

in English (createObject is not supported anymore):

 

newTrack:=.MaterialFlow.TwoLaneTrack.derive(current,name)

 

 

var tab:table[integer,integer,integer]

tab.create

tab.writeRow(1,1,startXPos,startYPos,0)--start point

tab.writeRow(1,2,endXPos,endYPos,0)-end point

-- assign segments table

newTrack.segmentsTable:=tab

 

 

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: Creating a street between 2 Open Street Map Points (OSM) via Simtalk

Thanks alot for your help. I will get back as soon as possible