Tracing the Catalan coastline