Shanghai

Extracts data of Shanghai from the OpenstreetMaps project for free

Main files

  • [shanghai.pbf] - for osm2pgsql, Osmium, Osmosis, imposm, mkgmap, and others. This file was last modified -05 hours ago and contains all OSM data up to May 26 2024 14:40:11. File size: 16.66MB; MD5 sum: 6ece3afa5e113bb2e341d21b0c6096f6.

Additional Files

Prepared geodata of Shanghai 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

 

 

Shanghai 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 Shanghai and sample project

Statistics on objects in the Shanghai

NameTypeOSM TagCount
Countrieslinesadmin_level = '2'4
Administrative level 3linesadmin_level = '3'3
Administrative level 4linesadmin_level = '4'69
Administrative level 5linesadmin_level = '5'10
Administrative level 6linesadmin_level = '6'253
Administrative level 8linesadmin_level = '8'488
Administrative level 9linesadmin_level = '9'2
Administrative level 10linesadmin_level = '10'46
.$row2[6].
NameTypeOSM TagCount
Administrative level 5polygonsadmin_level = '5'3
Administrative level 6polygonsadmin_level = '6'15
Administrative level 8polygonsadmin_level = '8'155
Administrative level 9polygonsadmin_level = '9'1
Administrative level 10polygonsadmin_level = '10'34
Placespolygonsplace = 'city' / place = 'town' / place = 'village' / place = 'hamlet' / place = 'locality' / place = 'suburb' / place = 'island' / place = 'farm' / place = 'isolated_dwelling'38
.$row2[6].
NameTypeOSM TagCount
Villagepolygonsplace = 'village'5
Localitypolygonsplace = 'locality'1
Islandpolygonsplace = 'island'32
NameTypeOSM TagCount
Buildingpointsbuilding is not ''175
.$row2[6].
NameTypeOSM TagCount
Buildingpolygonsbuilding is not ''75005
Dominantspolygonsbuilding = 'church' / building = 'government' / building = 'cathedral' / building = 'public' / building = 'hospital' / building = 'train_station' / building = 'chapel' / building = 'college' / building = 'university'972
Schools and kindergartenspolygonsbuilding = 'school' / building = 'kindergarten'813
Under constructionpolygonsbuilding = 'construction'35
.$row2[6].
NameTypeOSM TagCount
bicycle parkingpointsamenity = 'bicycle_parking'44
policepointsamenity = 'police'62
fire stationpointsamenity = 'fire_station'14
post boxpointsamenity = 'post_box'106
post officepointsamenity = 'post_office'88
telephonepointsamenity = 'telephone'62
librarypointsamenity = 'library'20
townhallpointsamenity = 'townhall'2
courthousepointsamenity = 'courthouse'3
embassypointsamenity = 'embassy' / office = 'diplomatic'21
community centrepointsamenity = 'community_centre'29
nursing homepointsamenity = 'nursing_home'4
arts centrepointsamenity = 'arts_centre'17
cemeterypointsamenity = 'grave_yard' / landuse = 'cemetery'3
marketplacepointsamenity = 'marketplace'31
recyclingpointsamenity = 'recycling'9
universitypointsamenity = 'university'3
schoolpointsamenity = 'school'84
kindergartenpointsamenity = 'kindergarten'26
collegepointsamenity = 'college'17
pharmacypointsamenity = 'pharmacy'113
hospitalpointsamenity = 'hospital'68
clinicpointsamenity = 'clinic'32
doctorspointsamenity = 'doctors'7
dentistpointsamenity = 'dentist'20
veterinarypointsamenity = 'veterinary'5
theatrepointsamenity = 'theatre'27
nightclubpointsamenity = 'nightclub'26
cinemapointsamenity = 'cinema'50
swimming poolpointsamenity = 'swimming_pool' / leisure = 'swimming_pool' / sport = 'swimming' / leisure = 'water_park'24
restaurantpointsamenity = 'restaurant'1731
fast foodpointsamenity = 'fast_food'469
cafepointsamenity = 'cafe'922
pubpointsamenity = 'pub'57
bar, biergartenpointsamenity = 'bar' / amenity = 'biergarten'282
food courtpointsamenity = 'food_court'10
shelterpointsamenity = 'shelter'52
car rentalpointsamenity = 'car_rental'1
car washpointsamenity = 'car_wash'9
bicycle rentalpointsamenity = 'bicycle_rental'83
bankpointsamenity = 'bank'604
atmpointsamenity = 'atm'130
toiletspointsamenity = 'toilets'519
benchpointsamenity = 'bench'147
drinking waterpointsamenity = 'drinking_water'4
fuelpointsamenity = 'fuel'69
bus stationpoints/polygonsamenity = 'bus_station'36
taxipoints/polygonsamenity = 'taxi'37
ferry terminalpoints/polygonsamenity = 'ferry_terminal'62
.$row2[6].
NameTypeOSM TagCount
Christian churchespointsamenity = 'place_of_worship' + religion = 'christian'13
Synagoguepointsamenity = 'place_of_worship' + religion = 'jewish'1
Mosquepointsamenity = 'place_of_worship' + religion = 'muslim'1
Buddhist templepointsamenity = 'place_of_worship' + religion = 'buddhist'17
Taoist templepointsamenity = 'place_of_worship' + religion = 'taoist'1
.$row2[6].
NameTypeOSM TagCount
playgroundpoints/polygonsleisure = 'playground'43
sports centrepoints/polygonsleisure = 'sports_centre'31
stadiumpoints/polygonsleisure = 'stadium'3
trackpointsleisure = 'track'1
ice rinkpoints/polygonsleisure = 'ice_rink'1
marinapointsleisure = 'marina'8
slipwaypointsleisure = 'slipway'1
golf coursepointsleisure = 'golf_course'7
.$row2[6].
NameTypeOSM TagCount
supermarket, generalpointsshop = 'supermarket' / shop = 'general'362
bakerypointsshop = 'bakery'189
kioskpointsshop = 'kiosk'22
mallpointsshop = 'mall'26
department storepointsshop = 'department_store'28
conveniencepointsshop = 'convenience'724
clothespointsshop = 'clothes'318
floristpointsshop = 'florist'38
chemistpointsshop = 'chemist'15
bookspointsshop = 'books'38
butcherpointsshop = 'butcher'19
shoespointsshop = 'shoes'36
alcohol, beveragespointsshop = 'alcohol' / shop = 'beverages'52
opticianpointsshop = 'optician'22
jewelrypointsshop = 'jewelry'46
giftpointsshop = 'gift'41
sportspointsshop = 'sports'37
stationerypointsshop = 'stationery'9
outdoorpointsshop = 'outdoor'6
mobile phonepointsshop = 'mobile_phone'53
toyspointsshop = 'toys'32
newsagentpointsshop = 'newsagent'2
greengrocerpointsshop = 'greengrocer'101
beautypointsshop = 'beauty'72
videopointsshop = 'video'3
carpointsshop = 'car'28
bicyclepointsshop = 'bicycle'50
doityourself, hardwarpointsshop = 'doityourself' / shop = 'hardware'19
furniturepointsshop = 'furniture'27
computerpointsshop = 'computer'11
hairdresserpointsshop = 'hairdresser'83
car repairpointsshop = 'car_repair'11
.$row2[6].
NameTypeOSM TagCount
Bowlingpointssport = '10pin' / sport = 'bowling'2
basketballpointssport = 'basketball'22
chesspointssport = 'chess'1
fitnesspointssport = 'fitness'17
gymnasticspointssport = 'gymnastics'3
soccerpointssport = 'soccer'2
swimmingpointssport = 'swimming'12
tennispointssport = 'tennis'1
.$row2[6].
NameTypeOSM TagCount
artworkpoints/polygonstourism = 'artwork'125
attractionpoints/polygonstourism = 'attraction'167
camp sitepoints/polygonstourism = 'camp_site'1
guest housepoints/polygonstourism = 'guest_house'27
hostelpoints/polygonstourism = 'hostel'55
hotelpointstourism = 'hotel'392
informationpoints/polygonstourism = 'information'35
motelpoints/polygonstourism = 'motel'6
museumpoints/polygonstourism = 'museum'73
picnic sitepointstourism = 'picnic_site'2
theme parkpoints/polygonstourism = 'theme_park'1
viewpointpointstourism = 'viewpoint'25
chaletpoints/polygonstourism = 'chalet'5
yespointstourism = 'yes'2
mappointsinformation = 'map'2
boardpointsinformation = 'board'1
guidepostpointsinformation = 'guidepost'3
monumentpointshistoric = 'monument'20
memorialpointshistoric = 'memorial'32
apartmentpointstourism = 'apartment'40
gallerypointstourism = 'gallery'5
.$row2[6].
NameTypeOSM TagCount
Coastlineslines1
Water surfacepolygons1
Land boundariespolygons1
.$row2[6].
NameTypeOSM TagCount
Lakes and large riverspolygonsnatural = 'water' / waterway = 'riverbank'4802
Wetlandpolygonsnatural = 'wetland'96
water' and water notpolygonsnatural = 'water' + water is not 'river' + water is not 'reservoir'1398
.$row2[6].
NameTypeOSM TagCount
Canallineswaterway = 'canal'5703
Drainlineswaterway = 'drain'643
Riverlineswaterway = 'river'1888
Streamlineswaterway = 'stream'969
Otherslineswaterway is not ''10923
.$row2[6].
NameTypeOSM TagCount
Fencelinesbarrier = 'fence'284
Walllinesbarrier = 'wall'680
.$row2[6].
NameTypeOSM TagCount
Towerpointsman_made = 'tower'102
Cell towerpointsman_made = 'tower' + tower:type = 'communication'43
Water towerpointsman_made = 'water_tower'1
Lookout towerpointsman_made = 'tower' + tower:type = 'observation'2
Lighthousepointsman_made = 'lighthouse'5
NameTypeOSM TagCount
Power lineslinespower is not ''1312
.$row2[6].
NameTypeOSM TagCount
Towers Power linespointspower is not ''12915
.$row2[6].
NameTypeOSM TagCount
Peakpointsnatural = 'peak'20
Treepointsnatural = 'tree'3962
Cave entrancepointsnatural = 'cave_entrance'10
NameTypeOSM TagCount
Citypointsplace = 'city'17
Townpointsplace = 'town'210
Villagepointsplace = 'village'140
Hamletpointsplace = 'hamlet'93
Hamletpointsplace = 'locality'17
.$row2[6].
NameTypeOSM TagCount
Allotmentspolygonslanduse = 'allotments'5
Basinpolygonslanduse = 'basin'14
Brownfieldpolygonslanduse = 'brownfield'113
Cemeterypolygonslanduse = 'cemetery'521
Commercialpolygonslanduse = 'commercial'593
Constructionpolygonslanduse = 'construction'483
Farm, farmlandpolygonslanduse = 'farm' / landuse = 'farmland'1320
Farmyardpolygonslanduse = 'farmyard'63
Forestpolygonslanduse = 'forest' / landuse = 'natural'1078
Garagespolygonslanduse = 'garages'2
Grasspolygonslanduse = 'grass'1871
Greenfieldpolygonslanduse = 'greenfield'26
Industrialpolygonslanduse = 'industrial'1235
Landfillpolygonslanduse = 'landfill'5
Meadowpolygonslanduse = 'meadow'227
Quarrypolygonslanduse = 'quarry'6
Railwaypolygonslanduse = 'railway'78
Recreation groundpolygonslanduse = 'recreation_ground'131
Reservoirpolygonslanduse = 'reservoir'10
Residentialpolygonslanduse = 'residential'6231
Retailpolygonslanduse = 'retail'163
Village greenpolygonslanduse = 'village_green'49
Vineyardpolygonslanduse = 'vineyard'4
Plant nurserypolygonslanduse = 'plant_nursery'5
Educationpolygonslanduse = 'education'5
Parkpolygonsleisure = 'park'1774
Beachpolygonsnatural = 'beach'6
Grasslandpolygonsnatural = 'grassland'46
Heathpolygonsnatural = 'heath'1
Sandpolygonsnatural = 'sand'217
Scrubpolygonsnatural = 'scrub'79
.$row2[6].
NameTypeOSM TagCount
Amenitypolygonsamenity is not ''4429
.$row2[6].
NameTypeOSM TagCount
Leisurepolygonsleisure is not ''4610
.$row2[6].
NameTypeOSM TagCount
Place of worshippolygonsamenity = 'place_of_worship'123
Place of worshippolygonsamenity = 'place_of_worship'123
.$row2[6].
NameTypeOSM TagCount
Shoppolygonsshop is not ''378
.$row2[6].
NameTypeOSM TagCount
Sportpolygonssport is not ''1439
.$row2[6].
NameTypeOSM TagCount
Tourismpolygonstourism is not ''437
.$row2[6].
NameTypeOSM TagCount
parkingpolygonsamenity = 'parking'1192
.$row2[6].
NameTypeOSM TagCount
bus, tram, trolleybuslinesroute = 'bus' / route = 'trolleybus' / route = 'tram' / route = 'share_taxi'733
subwaylinesroute = 'subway'89
trainlinesroute = 'train'29
ferrylinesroute = 'ferry'54
.$row2[6].
NameTypeOSM TagCount
Platformpolygonsrailway = 'platform'127
.$row2[6].
NameTypeOSM TagCount
Abandonedlinesrailway = 'abandoned'53
Constructionlinesrailway = 'construction'45
Light raillinesrailway = 'light_rail'44
Narrow gaugelinesrailway = 'narrow_gauge'20
Platformlinesrailway = 'platform'108
Railwaylinesrailway = 'rail' + service is null989
Service railwaylinesrailway = 'rail' + service is not null2121
Subwaylinesrailway = 'subway'2068
tramlinesrailway = 'tram'258
monoraillinesrailway = 'monorail'26
funicularlinesrailway = 'funicular' / railway = 'rail' + traction = 'funicular'13
.$row2[6].
NameTypeOSM TagCount
Trunklineshighway = 'trunk' / highway = 'trunk_link'3406
Primarylineshighway = 'primary' / highway = 'primary_link'10791
Secondarylineshighway = 'secondary' / highway = 'secondary_link'9721
Tertiarylineshighway = 'tertiary' / highway = 'tertiary_link'13730
Unclassifiedlineshighway = 'unclassified'16501
Residentiallineshighway = 'residential'28111
Servicelineshighway = 'service'28731
Footwaylineshighway = 'footway' / highway = 'path' + foot = 'designated'14079
Constructionlineshighway = 'construction'434
Roadlineshighway = 'road'52
Cyclewaylineshighway = 'cycleway' / highway = 'path' + cycle = 'designated'1997
Living streetlineshighway = 'living_street'985
Pedestrianlineshighway = 'pedestrian'879
Stepslineshighway = 'steps'770
Tracklineshighway = 'track'3236
Bridlewaylineshighway = 'bridleway' / highway = 'path' + horse = 'designated'15
Racewaylineshighway = 'raceway'31
.$row2[6].
NameTypeOSM TagCount
Crossingpointshighway = 'crossing' / railway = 'level_crossing'6217
Traffic signalspointshighway = 'traffic_signals'3761
Mini roundaboutpointshighway = 'mini_roundabout'18
Stoppointshighway = 'stop'1
Street lamppointshighway = 'street_lamp'10
Bus stoppointshighway = 'bus_stop'7588
.$row2[6].
NameTypeOSM TagCount
servicespolygonshighway = 'services'3
NameTypeOSM TagCount
squarepolygonsplace = 'square'56
.$row2[6].
NameTypeOSM TagCount
Stationpointsrailway = 'station'332
Tram stoppointsrailway = 'tram_stop' / public_transport = 'stop_position' + tram = 'yes'122
Subway entrancepointsrailway = 'subway_entrance'1410
.$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.