      right|thumb|ticket vending machines ferrocarrils de la generalitat de catalunya (, "catalan government railways"), or fgc, is a railway company which operates several unconnected lines in catalonia. the lines operated include metro and commuter lines in and around the city of barcelona, tourist operated mountain railways, and rural railway lines. they include  of  gauge route,  of  route,  of standard gauge route, and  of broad gauge route, making the fgc one of the few railway companies to operate on four different gauges. whilst most lines are conventional adhesion railways, the fgc also operates two rack railways and four funicular railways. == history == fgc was founded on september 5, 1979 to manage lines whose ownership was transferred from the state-owned feve to the generalitat of catalonia in 1978 as part of the process of regional devolution under the spanish constitution of 1978. its oldest line, the standard gauge lÃ­nia barcelona-vallÃ¨s however dates back to 1863 which was built and operated by companyia del ferrocarril de barcelona a sarriÃ  from 1863 until 1874, and ferrocarril de sarriÃ  a barcelona (fsb) (with ferrocarrils de catalunya (fcc)) from 1874 until financial difficulties forced fsb and fcc to be acquired by feve in 1977, which operated it until fgc took over the line in 1979. the second oldest line the lÃ­nia llobregat-anoia was opened in 1892 as an interurban tram using metre gauge tracks, which was taken over by the companyia general dels ferrocarrils catalans (cgfc) in 1912 and transformed it into a train line; cgfc being later taken over by fsb and fcc, followed by the broad gauge lleida â la pobla de segur line in 1951 and operated by renfe until it was transferred to fgc
1979_establishments_in_Spain Companies_based_in_Barcelona Ferrocarrils_de_la_Generalitat_de_Catalunya Iberian_gauge_railways Metre_gauge_railways_in_Spain Rail_transport_in_Catalonia Railway_companies_of_Spain Standard_gauge_railways_in_Spain Transport_operators_in_Barcelona