Working with mapa mundi linhas in practice
Most people who ask about mapa mundi linhas are trying to figure out one of two things: how to generate proper graticules (latitude/longitude grid lines) on a world map, or how to find ready-made files for a project. The concept itself is straightforward — it's just a regular grid overlaid on a projected map of the world. The actual work comes down to the projection you choose and the precision you need.
Choosing your projeção and generating mapa mundi linhas
The first mistake people make is assuming any world map projection will render grid lines the same way. They don't. A equirectangular projection gives you perfectly straight, evenly spaced parallel lines. A Mercator projection keeps them straight and parallel but stretches them exponentially toward the poles — at 80° latitude the spacing is about 2.9× larger than at the equator. Go further and the lines become unusably dense. An orthographic projection curves both meridians and parallels into ellipses. The choice depends entirely on what you're doing. If you're working in QGIS, here's the path that actually works without fighting the software: create a new layer, go to Layer > Create Layer > New PostgreSQL/PostGIS Layer, then use the built-in graticule generation tool. Alternatively, the QuickGrid plugin does this faster. Set your coordinate reference system first — EPSG:4326 (WGS84) for geographic coordinates, or a projected CRS like EPSG:3857 if you need Web Mercator. Then specify your interval. Five-degree increments work for most overview maps. One-degree gives you detail without making the file unwieldy.
For Python users, the Cartopy library handles this cleanly. Here's the minimal working code I actually use:
import cartopy.crs as ccrs
import matplotlib.pyplot as plt
fig = plt.figure(figsize=(14, 8))
ax = fig.add_subplot(1, 1, 1, projection=ccrs.Robinson())
ax.gridlines(draw_labels=True, x_inline=False, y_inline=False)
plt.show()
The Robinson projection here is my default because it's a decent compromise between shape and area distortion for general-purpose world maps. Switch to PlateCarree if you want straight lines, or Mollweide if area accuracy matters more to you.
👉 Clique no botão abaixo para saber mais sobre o assunto!
Where things break and what to do about it
I spent about three hours last year debugging a mapping script where the graticule labels were rendering on the wrong side of the map. The issue wasn't the code — it was that Cartopy's default label behavior flips based on the projection's central meridian. When I switched from the standard 0° central meridian to a 135°E-centered view, all the east-coast labels appeared inside the map boundary instead of outside it. The fix was adding gl.ylabels_right = True and gl.xlabels_top = True to the gridlines call, which feels like a bug but is actually documented behavior. Another thing nobody warns you about: exporting graticules as SVG or PNG at high zoom levels creates enormous files. A single 1° graticule overlay on a Robinson projection exported at 4K resolution came out to 18 megabytes. If you need smaller files, simplify the grid. Use 5° intervals, drop the label text, and keep only the line features. That brought the file down to under 2 megabytes with no visible quality loss at typical display sizes.
Ready-made sources when you don't want to generate your own
If you need mapa mundi linhas files and don't want to build them, the Natural Earth dataset is the most reliable free source. Their "graticules" category at naturalearthdata.com provides pre-projected grid lines in multiple formats — Shapefile, GeoJSON, SVG, and PNG. The 10m resolution version is fine for most screen work. The 110m version is sufficient for presentations. Don't bother with 10m unless you're printing at poster size. For pure SVG files, Inkscape can also generate graticules natively through Extensions > Map > Grid. It's not as flexible as Cartopy but gets you a clean vector file in under a minute without any coding.
One important caveat: the Natural Earth graticules are pre-projected. That means they come in a specific projection (usually Equirectangular for the shapefiles). If your project requires a different projection, you'll need to reproject them, which introduces slight distortion at the edges of your map extent. Always check the CRS metadata before dropping them into a new project.
A note on accuracy expectations
Graticules on world maps are illustrative by nature. No flat projection preserves distance, area, direction, and shape simultaneously. The lines themselves are geodesics on the sphere mapped onto a plane — they look "wrong" in most projections because they are geometrically distorted representations of great circles or constant-latitudes. If you need true rhumb lines or actual great-circle routes between points, that's a different calculation entirely and requires tools like the GeographicLib package rather than a simple graticule overlay. For most mapping purposes though, a well-rendered mapa mundi linhas is more than sufficient and the distortion is acceptable unless you're doing precise navigation work.