Cancel
Showing results for 
Search instead for 
Did you mean: 

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

Hi,

 

I am just a beginner with Simtalk. I wanted to connect two OSM points, which have coordinates, with each other via Simtalk. So Firstly can anyone kindly help how to create a new track and then connect the two points with the help of that track?

 

Best Regards,

Nauman Khan

11 REPLIES 11

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

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

look here for an example

 

http://bangsow.eu/detail_en.php?id=651

 

track.segmentsTable is an old syntax, but it works still in version 14,2 ( I'm hoping also in 15 and later). You load the segmentsTable, write new segments (points) into the table and re-assign the segments table to the track. The source of the points in the example are anchor points of a connector.

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 a lot for the reply. I will try to perform the task as you described and will come to you again.

 

Best Regards,

Nauman Khan

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

Hi,

 

I know that this is a question which is not directly related to the topic of the discussion but wanted to get some help regarding this, how can i structure the data in the table of plant simulation , which i had in the OSM file like name of the streets, coordinates and other connecting streets?

Hope my question is clear for understanding,

 

Best Regards,

Nauman Khan

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

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

can you post the OSM file ore a part of it?

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

Hi,

 

Attached is the file in which parts of the OSM info is available like streets and their names. Hope it is enough. Thanks

 

Best Regards,

Nauman Ullah Khan

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

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

since it is XML, you can import it into a tableFile (dataTable):

- add a table to your frame

- rename your file (file extension xml)

- open the tableFile, select List - Import - Select your XML file

 

Plant Simulation will create from the XML file a nested table, so you can easily access all information

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

Highlighted

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

I have already got the table and all the data but the problem is that its in the form of sub tables like i have to click on a Variable "X" then it opens more information and so on.  Actually I wanted to create streets first from one point to another with the help of the coordinates given and wanted to know the syntax for it. Later on i have to connect the streets. 

  

Best Regards,

Nauman Ullah Khan

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

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

have a look in the head of the window of the tableFile

 

the first level you access with table[1,1] the nodes you will find in the sub table column 7 so all nodes:

table[1,1][7,1]

coordinate lat in column 8, for the first node

table[1,1][7,1][8,1]

 

 

 

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

So if i want to create a new street then i have to write the column and row number in the syntax as following:

 

NeuWeg :=.materialfluss.zweispurigerWeg.erzeugeObjekt(current, 300,300, fahrwegstruktur[2,i]); 

 

but can you actually provide me the english version of this line?