Barcelona

Extracts data of Barcelona from the OpenstreetMaps project for free

Main files

  • [barcelona.pbf] - for osm2pgsql, Osmium, Osmosis, imposm, mkgmap, and others. This file was last modified -18 hours ago and contains all OSM data up to April 24 2024 21:24:46. File size: 84.61MB; MD5 sum: b294757bfb7fbdf65374fa5d5b62cbd8.

Additional Files

Prepared geodata of Barcelona in the SHP format

You are getting:

  • Fresh geo data from the Openstreetmap project in ESRI Shape format
  • If necessary, we can provide data in the following formats: GeoPackage, GeoJSON, CSV, TAB
  • Ready-made project for the QGIS 3 mapping program
  • Styles for all layers
  • 150+ icons

Sample of map

 

 

Barcelona map layers

Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • religion — religion field value
  • amenity — amenity field value
  • landuse — landuse field value
  • leisure — leisure field value
  • sport — sport field value
  • type — type field value
  • way — Geometry
Amenity (areas)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • religion — religion field value
  • amenity — amenity field value
  • landuse — landuse field value
  • leisure — leisure field value
  • sport — sport field value
  • type — type field value
  • way — Geometry
Amenity (points)
Fields of layer:
  • osm_id — ID in OSM base
  • barrier — barrier field value
  • way — Geometry
Barriers (lines)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • admin_level - Grade of administrative level
  • way — Geometry
Boundary (areas)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • admin_level - Grade of administrative level
  • way — Geometry
Boundary (lines)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • building — building field value
  • b_level — building:levels field value
  • a_numb — addr:housenumber field value
  • way — Geometry
Building
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • building — building field value
  • b_level — building:levels field value
  • a_numb — addr:housenumber field value
  • way — Geometry
Buildings (points)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • natural — Natural field value
  • landuse — Landuse field value
  • wood — Wood field is not null
  • leisure — Leisure field value
  • way — Geometry
Surfaces and land use
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • leisure — leisure field value
  • way — Geometry
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • leisure — leisure field value
  • way — Geometry
Leisure (points)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • man_made — man_made field valu
  • tower_type — tower:type field value
  • way — Geometry
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • natural — natural field value
  • way — Geometry
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • AMENITY — AMENITY field value
  • way — Geometry
Parking (areas)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • AMENITY — AMENITY field value
  • way — Geometry
Parking (points)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • place — place field value
  • official_s — official_status field value
  • POPULATION — POPULATION field value
  • way — Geometry
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • place — place field value
  • official_s — official_status field value
  • POPULATION — POPULATION field value
  • is_capital — is_capital field value
  • admin_level — Administrative grade value
  • capital — capital field value
  • way — Geometry
Places (points)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • POWER — POWER field value
  • VOLTAGE — VOLTAGE field value
  • way — Geometry
Power lines
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • POWER — POWER field value
  • VOLTAGE — VOLTAGE field value
  • way — Geometry
Power line towers
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • RAILWAY — RAILWAY field value
  • way — Geometry
Railway platforms
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • RAILWAY — RAILWAY field value
  • traction — traction field value
  • service — service field value
  • BRIDGE — BRIDGE field value
  • TUNNEL — TUNNEL field value
  • way — Geometry
Railways
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • RAILWAY — RAILWAY field value
  • public_transport — public_transport field value
  • tram — tram field value
  • station — station field value
  • way — Geometry
Railways (points)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • religion — religion field value
  • way — Geometry
Religion (areas)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • religion — religion field value
  • way — Geometry
Religion (points)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • ref — ref field value
  • HIGHWAY — HIGHWAY field value
  • way — Geometry
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • ref — ref field value
  • HIGHWAY — HIGHWAY field value
  • cycle — cycle field value
  • horse — horse field value
  • foot — foot field value
  • lanes — lanes field value
  • toll — toll field value
  • width — width field value
  • way — Geometry
Roads
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • HIGHWAY — HIGHWAY field value
  • railway — railway field value
  • way — Geometry
Road infrastructure
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • shop — shop field value
  • way — Geometry
Shop (areas)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • shop — shop field value
  • way — Geometry
Shops (points)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • sport — sport field value
  • way — Geometry
Sport (areas)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • sport — sport field value
  • way — Geometry
Sport (points)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • TOURISM — TOURISM field value
  • information — information field value
  • historic — historic field value
  • way — Geometry
Tourism (areas)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • TOURISM — TOURISM field value
  • information — information field value
  • historic — historic field value
  • way — Geometry
Tourism (points)
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • ROUTE — ROUTE field value
  • REF — REF field value
  • OPERATOR — OPERATOR field value
  • way — Geometry
Routes
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • WATERWAY — WATERWAY field value
  • way — Geometry
Streams and ditches
Fields of layer:
  • osm_id — ID in OSM base
  • name — Local name
  • name_en — Name in English
  • natural — Natural field value
  • landuse — Landuse field value
  • water — Water field is not null
  • waterway — Waterway field value
  • way — Geometry
Lakes, swamps and large rivers
Fields of layer:
  • id — Local ID
Coastline
Fields of layer:
  • id — Local ID
Land border
Fields of layer:
  • id — Local ID
Ocean border

Legend of map of Barcelona and sample project

Statistics on objects in the Barcelona

NameTypeOSM TagCount
Administrative level 4linesadmin_level = '4'7
Administrative level 6linesadmin_level = '6'174
Administrative level 8linesadmin_level = '8'1324
Administrative level 9linesadmin_level = '9'105
Administrative level 10linesadmin_level = '10'426
.$row2[6].
NameTypeOSM TagCount
Administrative level 6polygonsadmin_level = '6'7
Administrative level 8polygonsadmin_level = '8'344
Administrative level 9polygonsadmin_level = '9'42
Administrative level 10polygonsadmin_level = '10'196
Placespolygonsplace = 'city' / place = 'town' / place = 'village' / place = 'hamlet' / place = 'locality' / place = 'suburb' / place = 'island' / place = 'farm' / place = 'isolated_dwelling'660
.$row2[6].
NameTypeOSM TagCount
Citypolygonsplace = 'city'5
Townpolygonsplace = 'town'4
Villagepolygonsplace = 'village'33
Hamletpolygonsplace = 'hamlet'32
Localitypolygonsplace = 'locality'49
Suburbpolygonsplace = 'suburb'4
Islandpolygonsplace = 'island'2
Farmpolygonsplace = 'farm'59
Isolated dwellingpolygonsplace = 'isolated_dwelling'472
NameTypeOSM TagCount
Buildingpointsbuilding is not ''2541
.$row2[6].
NameTypeOSM TagCount
Buildingpolygonsbuilding is not ''288222
Dominantspolygonsbuilding = 'church' / building = 'government' / building = 'cathedral' / building = 'public' / building = 'hospital' / building = 'train_station' / building = 'chapel' / building = 'college' / building = 'university'3536
Schools and kindergartenspolygonsbuilding = 'school' / building = 'kindergarten'2106
Under constructionpolygonsbuilding = 'construction'144
.$row2[6].
NameTypeOSM TagCount
bicycle parkingpointsamenity = 'bicycle_parking'4108
policepointsamenity = 'police'101
fire stationpointsamenity = 'fire_station'4
post boxpointsamenity = 'post_box'678
post officepointsamenity = 'post_office'178
telephonepointsamenity = 'telephone'213
librarypointsamenity = 'library'146
townhallpointsamenity = 'townhall'120
courthousepointsamenity = 'courthouse'16
prisonpointsamenity = 'prison'1
embassypointsamenity = 'embassy' / office = 'diplomatic'83
community centrepointsamenity = 'community_centre'287
nursing homepointsamenity = 'nursing_home'8
arts centrepointsamenity = 'arts_centre'48
cemeterypointsamenity = 'grave_yard' / landuse = 'cemetery'3
marketplacepointsamenity = 'marketplace'27
recyclingpointsamenity = 'recycling'6948
universitypointsamenity = 'university'37
schoolpointsamenity = 'school'221
kindergartenpointsamenity = 'kindergarten'120
collegepointsamenity = 'college'54
pharmacypointsamenity = 'pharmacy'2277
hospitalpointsamenity = 'hospital'13
clinicpointsamenity = 'clinic'242
doctorspointsamenity = 'doctors'308
dentistpointsamenity = 'dentist'283
veterinarypointsamenity = 'veterinary'167
theatrepointsamenity = 'theatre'109
nightclubpointsamenity = 'nightclub'104
cinemapointsamenity = 'cinema'47
swimming poolpointsamenity = 'swimming_pool' / leisure = 'swimming_pool' / sport = 'swimming' / leisure = 'water_park'11491
restaurantpointsamenity = 'restaurant'5549
fast foodpointsamenity = 'fast_food'880
cafepointsamenity = 'cafe'1841
pubpointsamenity = 'pub'899
bar, biergartenpointsamenity = 'bar' / amenity = 'biergarten'1827
food courtpointsamenity = 'food_court'29
shelterpointsamenity = 'shelter'49
car rentalpointsamenity = 'car_rental'74
car washpointsamenity = 'car_wash'111
car sharingpointsamenity = 'car_sharing'4
bicycle rentalpointsamenity = 'bicycle_rental'554
bankpointsamenity = 'bank'980
atmpointsamenity = 'atm'277
toiletspointsamenity = 'toilets'384
benchpointsamenity = 'bench'7469
drinking waterpointsamenity = 'drinking_water'3534
fuelpointsamenity = 'fuel'517
bus stationpoints/polygonsamenity = 'bus_station'37
taxipoints/polygonsamenity = 'taxi'364
ferry terminalpoints/polygonsamenity = 'ferry_terminal'6
.$row2[6].
NameTypeOSM TagCount
Christian churchespointsamenity = 'place_of_worship' + religion = 'christian'250
Mosquepointsamenity = 'place_of_worship' + religion = 'muslim'24
Buddhist templepointsamenity = 'place_of_worship' + religion = 'buddhist'4
Hindu templepointsamenity = 'place_of_worship' + religion = 'hindu'1
Sikh templepointsamenity = 'place_of_worship' + religion = 'sikh'2
.$row2[6].
NameTypeOSM TagCount
fishingpointsleisure = 'fishing'1
playgroundpoints/polygonsleisure = 'playground'1026
sports centrepoints/polygonsleisure = 'sports_centre'147
trackpointsleisure = 'track'15
marinapointsleisure = 'marina'6
slipwaypointsleisure = 'slipway'15
dog parkpointsleisure = 'dog_park'22
golf coursepointsleisure = 'golf_course'1
.$row2[6].
NameTypeOSM TagCount
supermarket, generalpointsshop = 'supermarket' / shop = 'general'1813
bakerypointsshop = 'bakery'1180
kioskpointsshop = 'kiosk'172
mallpointsshop = 'mall'15
department storepointsshop = 'department_store'25
conveniencepointsshop = 'convenience'755
clothespointsshop = 'clothes'1202
floristpointsshop = 'florist'174
chemistpointsshop = 'chemist'144
bookspointsshop = 'books'286
butcherpointsshop = 'butcher'384
shoespointsshop = 'shoes'287
alcohol, beveragespointsshop = 'alcohol' / shop = 'beverages'87
opticianpointsshop = 'optician'248
jewelrypointsshop = 'jewelry'203
giftpointsshop = 'gift'202
sportspointsshop = 'sports'129
stationerypointsshop = 'stationery'108
outdoorpointsshop = 'outdoor'26
mobile phonepointsshop = 'mobile_phone'200
toyspointsshop = 'toys'100
newsagentpointsshop = 'newsagent'128
greengrocerpointsshop = 'greengrocer'495
beautypointsshop = 'beauty'353
videopointsshop = 'video'17
carpointsshop = 'car'206
bicyclepointsshop = 'bicycle'177
doityourself, hardwarpointsshop = 'doityourself' / shop = 'hardware'267
furniturepointsshop = 'furniture'223
computerpointsshop = 'computer'120
garden centrepointsshop = 'garden_centre'32
hairdresserpointsshop = 'hairdresser'998
car repairpointsshop = 'car_repair'405
.$row2[6].
NameTypeOSM TagCount
Bowlingpointssport = '10pin' / sport = 'bowling'1
athleticspointssport = 'athletics'2
basketballpointssport = 'basketball'34
chesspointssport = 'chess'9
cyclingpointssport = 'cycling'16
fitnesspointssport = 'fitness'61
gymnasticspointssport = 'gymnastics'17
motorpointssport = 'motor'4
shootingpointssport = 'shooting'3
skiingpointssport = 'skiing'1
soccerpointssport = 'soccer'16
swimmingpointssport = 'swimming'348
table tennispointssport = 'table_tennis'256
tennispointssport = 'tennis'11
volleyballpointssport = 'volleyball'3
.$row2[6].
NameTypeOSM TagCount
artworkpoints/polygonstourism = 'artwork'839
attractionpoints/polygonstourism = 'attraction'279
camp sitepoints/polygonstourism = 'camp_site'7
caravan sitepoints/polygonstourism = 'caravan_site'33
guest housepoints/polygonstourism = 'guest_house'114
hostelpoints/polygonstourism = 'hostel'157
hotelpointstourism = 'hotel'515
informationpoints/polygonstourism = 'information'5286
motelpoints/polygonstourism = 'motel'8
museumpoints/polygonstourism = 'museum'114
picnic sitepointstourism = 'picnic_site'203
theme parkpoints/polygonstourism = 'theme_park'1
viewpointpointstourism = 'viewpoint'683
zoopoints/polygonstourism = 'zoo'3
chaletpoints/polygonstourism = 'chalet'32
yespointstourism = 'yes'7
alpine hutpointstourism = 'alpine_hut'10
mappointsinformation = 'map'304
boardpointsinformation = 'board'959
guidepostpointsinformation = 'guidepost'2600
monumentpointshistoric = 'monument'301
memorialpointshistoric = 'memorial'512
apartmentpointstourism = 'apartment'140
camp pitchpointstourism = 'camp_pitch'1
gallerypointstourism = 'gallery'39
wilderness hutpointstourism = 'wilderness_hut'1
.$row2[6].
NameTypeOSM TagCount
Coastlineslines1
Water surfacepolygons1
Land boundariespolygons1
.$row2[6].
NameTypeOSM TagCount
Lakes and large riverspolygonsnatural = 'water' / waterway = 'riverbank'3233
Wetlandpolygonsnatural = 'wetland'103
water' and water notpolygonsnatural = 'water' + water is not 'river' + water is not 'reservoir'1148
.$row2[6].
NameTypeOSM TagCount
Canallineswaterway = 'canal'670
Drainlineswaterway = 'drain'411
Riverlineswaterway = 'river'246
Streamlineswaterway = 'stream'27759
Otherslineswaterway is not ''30575
.$row2[6].
NameTypeOSM TagCount
Fencelinesbarrier = 'fence'5683
Walllinesbarrier = 'wall'17916
.$row2[6].
NameTypeOSM TagCount
Towerpointsman_made = 'tower'348
Cell towerpointsman_made = 'tower' + tower:type = 'communication'118
Water towerpointsman_made = 'water_tower'6
Lookout towerpointsman_made = 'tower' + tower:type = 'observation'18
Lighthousepointsman_made = 'lighthouse'5
Water wellpointsman_made = 'water_well'149
Watermillpointsman_made = 'watermill'19
NameTypeOSM TagCount
Power lineslinespower is not ''1074
.$row2[6].
NameTypeOSM TagCount
Towers Power linespointspower is not ''14262
.$row2[6].
NameTypeOSM TagCount
Springpointsnatural = 'spring'1325
Peakpointsnatural = 'peak'2726
Volcanopoints/polygonsnatural = 'volcano'1
Treepointsnatural = 'tree'139927
Cave entrancepointsnatural = 'cave_entrance'823
NameTypeOSM TagCount
Citypointsplace = 'city'7
Townpointsplace = 'town'69
Villagepointsplace = 'village'334
Hamletpointsplace = 'hamlet'353
Hamletpointsplace = 'locality'8277
.$row2[6].
NameTypeOSM TagCount
Allotmentspolygonslanduse = 'allotments'1588
Basinpolygonslanduse = 'basin'98
Brownfieldpolygonslanduse = 'brownfield'342
Cemeterypolygonslanduse = 'cemetery'409
Commercialpolygonslanduse = 'commercial'179
Constructionpolygonslanduse = 'construction'212
Farm, farmlandpolygonslanduse = 'farm' / landuse = 'farmland'8771
Farmyardpolygonslanduse = 'farmyard'1875
Forestpolygonslanduse = 'forest' / landuse = 'natural'11364
Garagespolygonslanduse = 'garages'32
Grasspolygonslanduse = 'grass'5688
Greenfieldpolygonslanduse = 'greenfield'387
Industrialpolygonslanduse = 'industrial'1830
Landfillpolygonslanduse = 'landfill'24
Meadowpolygonslanduse = 'meadow'5211
Quarrypolygonslanduse = 'quarry'183
Railwaypolygonslanduse = 'railway'504
Recreation groundpolygonslanduse = 'recreation_ground'268
Reservoirpolygonslanduse = 'reservoir'662
Residentialpolygonslanduse = 'residential'4569
Retailpolygonslanduse = 'retail'84
Village greenpolygonslanduse = 'village_green'651
Vineyardpolygonslanduse = 'vineyard'4661
Plant nurserypolygonslanduse = 'plant_nursery'49
Educationpolygonslanduse = 'education'13
Parkpolygonsleisure = 'park'4248
Beachpolygonsnatural = 'beach'174
Fellpolygonsnatural = 'fell'3
Grasslandpolygonsnatural = 'grassland'2232
Heathpolygonsnatural = 'heath'599
Sandpolygonsnatural = 'sand'621
Scrubpolygonsnatural = 'scrub'6897
.$row2[6].
NameTypeOSM TagCount
Amenitypolygonsamenity is not ''14532
.$row2[6].
NameTypeOSM TagCount
Leisurepolygonsleisure is not ''31872
.$row2[6].
NameTypeOSM TagCount
Place of worshippolygonsamenity = 'place_of_worship'1440
Place of worshippolygonsamenity = 'place_of_worship'1440
.$row2[6].
NameTypeOSM TagCount
Shoppolygonsshop is not ''1125
.$row2[6].
NameTypeOSM TagCount
Sportpolygonssport is not ''6060
.$row2[6].
NameTypeOSM TagCount
Tourismpolygonstourism is not ''1340
.$row2[6].
NameTypeOSM TagCount
parkingpolygonsamenity = 'parking'5748
.$row2[6].
NameTypeOSM TagCount
bus, tram, trolleybuslinesroute = 'bus' / route = 'trolleybus' / route = 'tram' / route = 'share_taxi'2044
subwaylinesroute = 'subway'107
trainlinesroute = 'train'474
ferrylinesroute = 'ferry'21
.$row2[6].
NameTypeOSM TagCount
Platformpolygonsrailway = 'platform'430
.$row2[6].
NameTypeOSM TagCount
Abandonedlinesrailway = 'abandoned'82
Constructionlinesrailway = 'construction'18
Narrow gaugelinesrailway = 'narrow_gauge'609
Platformlinesrailway = 'platform'69
Railwaylinesrailway = 'rail' + service is null2738
Service railwaylinesrailway = 'rail' + service is not null1513
Subwaylinesrailway = 'subway'523
tramlinesrailway = 'tram'179
miniaturelinesrailway = 'miniature'105
funicularlinesrailway = 'funicular' / railway = 'rail' + traction = 'funicular'48
.$row2[6].
NameTypeOSM TagCount
Trunklineshighway = 'trunk' / highway = 'trunk_link'3720
Primarylineshighway = 'primary' / highway = 'primary_link'4832
Secondarylineshighway = 'secondary' / highway = 'secondary_link'6592
Tertiarylineshighway = 'tertiary' / highway = 'tertiary_link'18666
Unclassifiedlineshighway = 'unclassified'6622
Residentiallineshighway = 'residential'71462
Servicelineshighway = 'service'24728
Footwaylineshighway = 'footway' / highway = 'path' + foot = 'designated'76152
Constructionlineshighway = 'construction'337
Roadlineshighway = 'road'9
Cyclewaylineshighway = 'cycleway' / highway = 'path' + cycle = 'designated'5063
Living streetlineshighway = 'living_street'5983
Pedestrianlineshighway = 'pedestrian'5985
Stepslineshighway = 'steps'7832
Tracklineshighway = 'track'66295
Bridlewaylineshighway = 'bridleway' / highway = 'path' + horse = 'designated'99
Racewaylineshighway = 'raceway'145
.$row2[6].
NameTypeOSM TagCount
Crossingpointshighway = 'crossing' / railway = 'level_crossing'57319
Traffic signalspointshighway = 'traffic_signals'10188
Mini roundaboutpointshighway = 'mini_roundabout'82
Stoppointshighway = 'stop'2443
Speed camerapointshighway = 'speed_camera'298
Street lamppointshighway = 'street_lamp'32971
Bus stoppointshighway = 'bus_stop'7911
.$row2[6].
NameTypeOSM TagCount
servicespolygonshighway = 'services'26
NameTypeOSM TagCount
squarepolygonsplace = 'square'1047
.$row2[6].
NameTypeOSM TagCount
Stationpointsrailway = 'station'328
Haltpointsrailway = 'halt'37
Tram stoppointsrailway = 'tram_stop' / public_transport = 'stop_position' + tram = 'yes'121
Subway entrancepointsrailway = 'subway_entrance'410
.$row2[6].

 

 

© Copyright 2023 Data/Maps OSM Today and OpenStreetMap Contributors | Map tiles by CartoDB, under CC BY 3.0. Data by OpenStreetMap, under ODbL.