Travel Mapping

Railway Data Discussion => In-progress Railway Systems & Work => Topic started by: Mislav210 on September 08, 2024, 08:48:11 am

Title: New Railway System - Croatia
Post by: Mislav210 on September 08, 2024, 08:48:11 am
Hello, I'm new here on the forum. Can you please tell me, how can I help you update and expand the system list for the Croatian railway network?

Thank you,
Mislav
Title: New Railway System - Croatia
Post by: Mislav210 on September 10, 2024, 02:20:37 pm
Hello, I'm new here on the forum. Can you please tell me, how can I help you update and expand the system list for the Croatian railway network?

Thank you,
Mislav
Title: Re: New Railway System - Croatia
Post by: Duke87 on September 11, 2024, 02:14:19 am
For starters, consult the draft railway manual here: https://forum.travelmapping.net/index.php?topic=5635.0

With that in hand, the basic mechanics of how the site functions go something like this:
- each individual route has a waypoint file (.wpt). Here's an example of what one looks like (https://github.com/Duke87ofST/RailwayData/blob/master/data/CT/usaamtk/ct.nenor.wpt), representing the Amtrak NE Corridor in Connecticut. The file content takes the form of each line is an individual "point" along the route that will be connected by straight lines, and they're listed in order from one end to the other. Each line begins with the name of the waypoint, and ends with an OpenStreetMap URL containing the latitude an longitude of it, and these two things are separated by a space. If the waypoint label has a + before it, it's a hidden point that is used either only for shaping or, in the case of railways, it may represent a station along the line this train does not stop at (labels beginning with "+SKIP_") or a location where two lines merge/diverge (labels beginning with "+DIV_").
- if two lines intersect, it is crucial that the latitude and longitude of the intersection point be identical between both wpt files. This will create a "graph connection" allowing users to click between the two lines if they select that point.
- if two lines follow the same tracks, it is crucial that the latitude and longitude of the points on the shared section be identical between the wpt files for each. This is how the site detects concurrencies and they will fail to detect if the two point coords are off even slightly.
- each system has two csv files, a vanilla one and a _con one. These files tell the site what to do with wpt files. Here are the two for Amtrak:
https://github.com/Duke87ofST/RailwayData/blob/master/data/_systems/usaamtk.csv
https://github.com/Duke87ofST/RailwayData/blob/master/data/_systems/usaamtk_con.csv
Each line in the vanilla csv file corresponds to a wpt file. Each line in the _con csv file corresponds to a route, which may in some cases contain multiple wpt files if it crosses a jurisdictional boundary in the process.
- each system, once created, needs a line in systems.csv (https://github.com/Duke87ofST/RailwayData/blob/master/systems.csv) for it to load onto the site

There's considerably more to it, but those are the starting basics. Definitely take some time to poke around files on GitHub and familiarize yourself both with the file formats and the directory structures before you do anything else - and we'd appreciate you pointing out anything you spot that you think may be an error or an inconsistency with our drafting guidelines.

When you're ready to try your hand at making a wpt file, this tool is your friend: https://travelmapping.net/wptedit/
Double click to center the map where you want to add a waypoint, then click the "Add Waypoint" button and go from there. When you're done you'll need to copy and paste all the text in the box to somewhere else in order to save it. We use GitHub as the system of record but for starting out I would strongly suggest trying one and then pasting the contents into this thread so we can let you know if it looks right.
Title: Re: New Railway System - Croatia
Post by: Mislav210 on September 11, 2024, 08:24:35 am
Thank you!

Mislav
Title: Re: New Railway System - Croatia
Post by: Mislav210 on September 11, 2024, 11:47:32 am
Here, I reed all the instruction and put thogether this file. It's the line of the first tier. Look at how it looks, then tell me if something needs to be changed.

Mislav
Title: Re: New Railway System - Croatia
Post by: michih on September 11, 2024, 12:19:54 pm
Here, I reed all the instruction and put thogether this file. It's the line of the first tier. Look at how it looks, then tell me if something needs to be changed.

Mislav

Not bad :) Well, we have not yet agreed on common rules for the railway sub project. Thus, the following is just my 2ct:

+DIV is only required if the wp is not at a station.
+DIV_ZapKol -> ZapKol
+DIV_ZagGlKol -> ZagGlKol ?

I'd add a "+DIV_" wp at http://www.openstreetmap.org/?lat=45.804168&lon=15.964937

I think this should be skip instead:
+DIV_SavMar -> +SKIP_SavMar

I'm more curious what the route name would be :)
Title: Re: New Railway System - Croatia
Post by: michih on September 11, 2024, 12:23:06 pm
There's considerably more to it, but those are the starting basics. Definitely take some time to poke around files on GitHub and familiarize yourself both with the file formats and the directory structures before you do anything else - and we'd appreciate you pointing out anything you spot that you think may be an error or an inconsistency with our drafting guidelines.

Learn more under: https://travelmapping.net/participate.php#hwydatamanager (last paragraph) - especially step 7: https://travelmapping.net/devel/manual/sysnew.php
It's for the highway sub project but it should be quite similar for railways.
Title: Re: New Railway System - Croatia
Post by: Mislav210 on September 11, 2024, 12:34:59 pm
Thank you for suggestions. In Croatia rotes have different category. Main (corridor) railways, regional significance railways, etc. So that is way this one is M101. For SavMar it is the station from which start one local line, but not every traint stops there. So it's difficult to decide. Beacuse in the official publication of Croatian Railways for route M101 they didn't put stations Lad and Sut.
Title: Re: New Railway System - Croatia
Post by: michih on September 11, 2024, 12:51:24 pm
Thank you for suggestions. In Croatia rotes have different category. Main (corridor) railways, regional significance railways, etc. So that is way this one is M101. For SavMar it is the station from which start one local line, but not every train stops there.

Our railway routes are drafted by services. Not by infrastructure. Thus, one route could have a station as +SKIP, another route as regular waypoint (wp).
Title: Re: New Railway System - Croatia
Post by: Mislav210 on September 11, 2024, 04:39:46 pm
Thank you for suggestions. In Croatia rotes have different category. Main (corridor) railways, regional significance railways, etc. So that is way this one is M101. For SavMar it is the station from which start one local line, but not every train stops there.

Our railway routes are drafted by services. Not by infrastructure. Thus, one route could have a station as +SKIP, another route as regular waypoint (wp).

Here It is, the updated version.
Title: Re: New Railway System - Croatia
Post by: michih on September 12, 2024, 12:32:43 pm
Here It is, the updated version.

+TreRas -> +DIV_TreRas
Title: Re: New Railway System - Croatia
Post by: Mislav210 on September 12, 2024, 12:40:36 pm
Here It is, the updated version.

+TreRas -> +DIV_TreRas

Changed
Title: Re: New Railway System - Croatia
Post by: Mislav210 on September 15, 2024, 06:58:26 am
Here It is, the updated version.

+TreRas -> +DIV_TreRas

Changed

I completed the whole network.

Fixed quote.  -Mark
Title: Re: New Railway System - Croatia
Post by: michih on September 15, 2024, 11:23:08 am
I completed the whole network.

There is no pull request though: https://github.com/TravelMapping/RailwayData/pulls
Title: Re: New Railway System - Croatia
Post by: Mislav210 on September 15, 2024, 04:23:47 pm
I completed the whole network.



There is no pull request though: https://github.com/TravelMapping/RailwayData/pulls
Sorry, but I'm not that familiar with github.

Quote tag fixed.
--Bickendan
Title: Re: New Railway System - Croatia
Post by: michih on September 23, 2024, 04:30:39 am
Do you struggle with Github itself, our with the travelmapping data organization on Github?
Title: Re: New Railway System - Croatia
Post by: Mislav210 on September 24, 2024, 02:13:36 am
Do you struggle with Github itself, our with the travelmapping data organization on Github?

Well, let's just say that both, so can you just tell me were to put the data?
Title: Re: New Railway System - Croatia
Post by: michih on September 24, 2024, 02:10:22 pm
The data organization is explained under https://travelmapping.net/devel/manual/sysnew.php It's described for highways but it's quite similar for railways.

What kind of data have you already created? wpt files and csv files? I assume that you've minimum created two wpt files and two csv files if you've put everything into one system. Please attach the two csv files for one system, and one or two out of the wpt files. I'll have a quick look into it to make sure that it's fine.
Title: Re: New Railway System - Croatia
Post by: Mislav210 on September 25, 2024, 03:32:32 pm
The data organization is explained under https://travelmapping.net/devel/manual/sysnew.php It's described for highways but it's quite similar for railways.

What kind of data have you already created? wpt files and csv files? I assume that you've minimum created two wpt files and two csv files if you've put everything into one system. Please attach the two csv files for one system, and one or two out of the wpt files. I'll have a quick look into it to make sure that it's fine.

Thanks fore the link :)
Well I created the whole network but I didn't put everything in one file, rather I split them by route name. So I'll send you the whole folder
Title: Re: New Railway System - Croatia
Post by: michih on September 26, 2024, 03:29:43 pm
Well I created the whole network but I didn't put everything in one file, rather I split them by route name. So I'll send you the whole folder

Well, I only asked for one or two examples ;) But great work :)
First, you need to change the file extensions from txt to wpt (https://travelmapping.net/devel/manual/sysnew.php#developwpt).
Second, you need to define a system code, system name, tier index and color code (https://travelmapping.net/devel/manual/sysnew.php#researchforum). Please suggest it here. I wonder if L, M and R refers to different systems? Please explain what's the meaning of the numbers, i.e. L101, L102 etc.
Title: Re: New Railway System - Croatia
Post by: Mislav210 on September 27, 2024, 03:12:57 am
Well I created the whole network but I didn't put everything in one file, rather I split them by route name. So I'll send you the whole folder

Well, I only asked for one or two examples ;) But great work :)
First, you need to change the file extensions from txt to wpt (https://travelmapping.net/devel/manual/sysnew.php#developwpt).
Second, you need to define a system code, system name, tier index and color code (https://travelmapping.net/devel/manual/sysnew.php#researchforum). Please suggest it here. I wonder if L, M and R refers to different systems? Please explain what's the meaning of the numbers, i.e. L101, L102 etc.

Thank you!
Yes, so I was thinking smoethil like this:

HRVM101 (TMblue)
HRVR101 (TMred)
HRVL101 (TMyellow)

Yes, you are right M means Main (corridor) railways, R means Railways of regional significance and L means Railways of local significance.
Title: Re: New Railway System - Croatia
Post by: Mislav210 on September 27, 2024, 05:07:40 am
Well I created the whole network but I didn't put everything in one file, rather I split them by route name. So I'll send you the whole folder

Well, I only asked for one or two examples ;) But great work :)
First, you need to change the file extensions from txt to wpt (https://travelmapping.net/devel/manual/sysnew.php#developwpt).
Second, you need to define a system code, system name, tier index and color code (https://travelmapping.net/devel/manual/sysnew.php#researchforum). Please suggest it here. I wonder if L, M and R refers to different systems? Please explain what's the meaning of the numbers, i.e. L101, L102 etc.

Thank you!
Yes, so I was thinking smoethil like this:

HRVM101 (TMblue)
HRVR101 (TMred)
HRVL101 (TMyellow)

Yes, you are right M means Main (corridor) railways, R means Railways of regional significance and L means Railways of local significance.

Here it is in .wpt format
Title: Re: New Railway System - Croatia
Post by: michih on September 27, 2024, 02:04:43 pm
Yes, so I was thinking smoethil like this:

HRVM101 (TMblue)
HRVR101 (TMred)
HRVL101 (TMyellow)

Yes, you are right M means Main (corridor) railways, R means Railways of regional significance and L means Railways of local significance.


Do you mean like this?

Code: [Select]
hrvm;HRV;Croatia Main Corridors;TMBlue;1;preview
hrvr;HRV;Croatia Regional Tracks;TMRed;2;preview
hrvl;HRV;Croatia Local Tracks;TMYellow;3;preview

I wonder what si404 or Duke87 think about it.

However, I'm looking forward to check  the csv files: hrvm.csv, hrvr.csv and hrvl.csv
I mean, first, I'd like to understand how you want to name the routes i.e. services. The *_con.csv files don't matter right now.
Title: Re: New Railway System - Croatia
Post by: si404 on September 27, 2024, 06:07:15 pm
colours are those of lower tiers and L is tier 2 (which is arguably too broad, and needs a second colour like cyan for 3 and lightsalmon for 4) as not metro.

ignoring that local names are used elsewhere

hrvm;HRV;Croatia Main Corridors;TMPurple;1;preview
hrvr;HRV;Croatia Regional Tracks;TMGreen;2;preview
hrvl;HRV;Croatia Local Tracks;TMGreen;2;preview
Title: Re: New Railway System - Croatia
Post by: Mislav210 on September 28, 2024, 08:12:21 am
Yes, so I was thinking smoethil like this:

HRVM101 (TMblue)
HRVR101 (TMred)
HRVL101 (TMyellow)

Yes, you are right M means Main (corridor) railways, R means Railways of regional significance and L means Railways of local significance.


Do you mean like this?

Code: [Select]
hrvm;HRV;Croatia Main Corridors;TMBlue;1;preview
hrvr;HRV;Croatia Regional Tracks;TMRed;2;preview
hrvl;HRV;Croatia Local Tracks;TMYellow;3;preview

I wonder what si404 or Duke87 think about it.

However, I'm looking forward to check  the csv files: hrvm.csv, hrvr.csv and hrvl.csv
I mean, first, I'd like to understand how you want to name the routes i.e. services. The *_con.csv files don't matter right now.

So, your idea to name the group of routes: Croatia Main Corridors, Regional Tracks and Local Tracks is great. Afterwards each individual route sould be named exp.: M101 etc. For the question of tiers, I think that Main Corridors tier 1, Regional Tracks tier 2 and Local Tracks tier 4.
Title: Re: New Railway System - Croatia
Post by: michih on September 28, 2024, 09:29:41 am
Ok, so please make the csv files. I think you can take this as an example: https://github.com/TravelMapping/RailwayData/blob/master/data/_systems/argbs.csv
I guess it should be read like this:
Code: [Select]
systemName;region;route;banner;abbrev;city;root;altRouteNames
hrvm;HRV;CatLoz;;;González Catán - Lozano;hrv.m101;
hrvm;HRV;JofMer;;;Tomás Jofré - Mercedes;hrv.m102;
Not sure how you want to deal with the "route" and "city" columns. My example is just a copy from the Argentinian system. That's what I want to learn to understand your approach.

btw, I didn't fully check the wpt file names. They should be read "hrv.m101.wpt" etc. ie you need to add the "hrv." prefix for the region. Just like the "root" column entry in the csv file.
Title: Re: New Railway System - Croatia
Post by: michih on October 12, 2024, 12:46:41 pm
I've renamed the file to hrv.*.wpt and uploaded them to Github: https://github.com/TravelMapping/RailwayData/pull/220 Once the PR will be merged, they will be under: https://github.com/TravelMapping/RailwayData/tree/master/data/HRV
The routes won't be shown on the site as long as there are no csv files.