Ports & harbours

The World Port Index in Python: 3,807 ports with their harbour size and type, depths, facilities and restrictions, ports by country, deep-water, container and LNG ports, ports closed by ice, the nearest port to a city, and the zeros and unknowns that hide in the table.

Bars of the World Port Index by harbour size: 2,109 very small ports, 1,021 small, 376 medium and 174 large. most of the world's ports are smallvery smallsmallmediumlargeWorld Port Index: 3,807 ports, 174 of them large

The World Port Index, kept by the US National Geospatial-Intelligence Agency, lists 3,807 of the world's ports for mariners: each with its position, country, harbour size and type, channel and pier depths, tides, the restrictions on entering and 73 yes-or-no questions about facilities and services. It is the standard open list of ports, from fjord harbours in Norway to oil terminals moored off West Africa.

The guides here read the index, explain what it counts and how to get it without code, map the ports by country and by sea, find the deep-water ports and the container and LNG terminals, the ports where ice restricts entry and the nearest port to any city. Two pages deal with the traps: depths and lengths stored as 0 when unknown, and yes-or-no columns whose commonest answer is Unknown.

🧭 Start with the concepts

The ideas the how-to guides below assume you already have.

⚙️ Then do the task

Step-by-step walkthroughs with code you can copy and adapt.

Show every how-to guide in this topic

🔧 When it breaks

The errors this topic produces, with the cause explained rather than just the command.

Related topics

Subjects that keep coming up alongside this one, most overlap first.

Keep browsing

Ports & harbours sits in Analysis. Every topic on the site is listed on the topics index.