Analysis🏠 My home

Who sees the sea?

Sea-view potential by façade and floor from cadastral LoD1 models on the Costa del Sol

Working paper · r121 · 10 Nov 2026

PDFSupplementary materialHow to citeData and code

Open cadastral and terrain data are enough to estimate the sea-view potential of every façade, at three floors, of every residential building on the Costa del Sol. In the model, buildings take it from more than half of the homes to which the terrain alone would give it.

Highlights

Abstract

Views are among the most valued and least measured attributes of a home. We present an open-data method that estimates the sea-view potential of every free façade of every residential building at three floors (ground, middle and top; other floors take the nearest of them), from cadastral footprints with floor counts and a national terrain model. Run for 158,060 buildings of 21 municipalities on Spain's Costa del Sol in under an hour on two cores, it finds that 52 % of buildings see some sea from their top floor and 36 % have an open view (20° or more). Traced over a LiDAR surface in a pilot, scores agree with the model's inside cadastral footprints (96.7 % of viewpoints in the same class at 20°), but structures the cadastre does not record lower the sea seen from the top floor by 6.1–9.0° on average. Against the photographs of 93 homes for sale, labelled blind by AI models of two developers with ties decided by the author, the score has an AUC of 0.80 (95 % CI 0.70–0.89; 0.81 against the first-round labels); at 20° it is sensitive (0.90) but not specific (0.45). Dwelling figures depend on how dwellings are allocated to façades and floors: 42 % of dwellings are on a floor with open-view potential under the main rule, and 12–45 % across the allocation, geometry and vegetation scenarios tested. As an application, higher-income census sections tend to have more modelled view potential within municipalities, with uncertain size and fragile inference (about two effective clusters); on terrain alone the difference largely disappears. Code and façade-level data reproduce the main results.

Keywords: viewshed; sea view; window view; floor-level visibility; cadastral data; digital terrain model; LiDAR; listing photographs; blue space; open data

1. Introduction

In a block of eleven floors 300 m from the beach in Marbella, the sea-facing façade sees no sea at all from floors 1 and 6; from floor 11 the sea fills 134° of the horizon (Figure 1). Whether a home sees the sea depends on its floor, on the terrain and on the buildings in front of it, and no public dataset records it.

Views matter for prices and for health. Since Rosen's (1974) formulation of hedonic prices, studies have priced views from lot-level comparisons to large samples with detailed view classes (Benson et al., 1998; Bourassa et al., 2004); views to water attract the largest premiums (Bond et al., 2002; Conroy & Milosch, 2011; Hindsley et al., 2013), and in tall buildings the view changes from floor to floor (Yu et al., 2007; Jim & Chen, 2009; Wong et al., 2011). A window onto nature was associated with faster recovery after surgery (Ulrich, 1984), and visible blue space, rather than proximity to it, with lower psychological distress (Nutsford et al., 2016) and less depression in older adults (Dempsey et al., 2018). The European daylight standard EN 17037 includes a requirement for the view out (CEN, 2018).

Measurement is the weak link. Hedonic studies often rely on appraiser judgments, listing descriptions or a single dummy variable (Bourassa et al., 2004); GIS studies compute viewsheds on terrain models (Lake et al., 2000; Sander & Polasky, 2009) or, at best, on LiDAR surfaces and 3D city models (Hamilton & Morgan, 2010; Helbich et al., 2013; Turan et al., 2021). Recent large-scale work reads sea views from listing text with 3D simulation (Gillespie et al., 2024), renders window views from photorealistic models (Li et al., 2022) or computes view metrics for a whole building stock from a commercial digital twin (Swietek & Zumwald, 2023). Most countries have none of these inputs.

This paper describes a model that needs only data that national agencies already publish: building footprints with the number of floors, from the cadastre, and terrain models, from the national mapping agency. Its unit is the free façade at a given floor. It traces lines of sight from every free façade octant of every residential building at three floors, the ground floor, the middle floor and the top floor; the other floors take the value of the nearest traced floor. The façade-and-floor potential is the quantity the model measures and the one we test; building and dwelling figures are aggregations of it under stated rules, and dwelling figures in particular depend on how dwellings are allocated to façades and floors. We develop the model in a pilot in Marbella, test it against a LiDAR surface and against the photographs of homes for sale, and run it for 21 coastal municipalities of the Costa del Sol, a coast of tall seafront blocks and hillside houses where homes are sold and priced for their views (Castro Noblejas et al., 2023).

The contributions are four:

  1. An open-data method by façade and floor. Only a cadastre with floor counts and a national terrain model are needed; the model builds its own LoD1 blocks and processes no point clouds.
  2. Explicit aggregation. Building potential and dwelling shares are defined as aggregations of façade-and-floor scores, and every dwelling figure is reported under several allocation scenarios, as a conditional model output rather than a measured prevalence.
  3. Several references and an explicit sensitivity analysis. Angles are compared with a trace over a LiDAR surface, heights with LiDAR, the tracer with a standard viewshed algorithm, and sea views with listing photographs, relabelled blind to the model by AI models of two developers, with ties decided by the author. Numerical choices are separated from structural assumptions, which are also combined and carried to dwellings and to income.
  4. Regional scale and a geometric decomposition. The model runs for 158,060 buildings in under an hour on two cores, and a second run on terrain alone separates the sea that buildings hide from the sea that relief hides, which we apply, with inference designed for few clusters, to the relation between view potential and income.

Sections 2 to 5 review related work and present the data, the method and the computation; Section 6 gives the results and the application to income, Section 7 the validations and robustness checks, and Section 8 the uses and limitations.

2. Related work

2.1 Views in housing and health research

Hedonic models price views as attributes of a property (Rosen, 1974). Views were first coded as yes/no attributes and then graded by type, scope and quality (Benson et al., 1998; Bourassa et al., 2004), with the highest premiums for water (Bond et al., 2002). GIS made views measurable for every property (Lake et al., 2000), showed the bias of omitting them (Paterson & Boyle, 2002), and separated what is visible from what is merely nearby (Walls et al., 2015) and the scope of a viewshed (Hindsley et al., 2013). In high-rise markets the view depends on floor and orientation (Yu et al., 2007; Jim & Chen, 2009), LiDAR surfaces improve view measures (Hamilton & Morgan, 2010; Helbich et al., 2013), and segmented listing panoramas price what windows show (Peng et al., 2025). Health research has moved from distance to blue space towards its visibility (Nutsford et al., 2016; Dempsey et al., 2018; White et al., 2021), with eye-level greenery and ocean visibility modelled from surfaces (Qiang et al., 2019; Labib et al., 2021) and window-view distance related to mental health (Wei et al., 2026).

2.2 Computing views

The viewshed is the basic GIS operation for visibility (De Floriani & Magillo, 2003); its results depend on the algorithm (Fisher, 1993) and on surface errors (Fisher, 1994). Cities add sharp near occluders (Bartie et al., 2010); trees are neither opaque nor transparent (Murgoitio et al., 2014; Vukomanovic et al., 2018); long sight lines need curvature and refraction (Hirt et al., 2010); and large terrains are handled with efficient sweeps (Haverkort et al., 2009). Building science grades window views by content, access and clarity (Ko et al., 2022), and city-scale window views have been rendered from photorealistic models (Li et al., 2022, 2025). Where no 3D city model exists, LoD1 blocks can be generated from footprints and floor counts (Biljecki et al., 2015, 2016, 2017); national models exist where LiDAR and footprints meet (Peters et al., 2022), and global LoD1 heights have an error of about 4 m in Europe (Zhu et al., 2025).

2.3 The closest precedents

Four studies come closest (Table 1). Biljecki et al. (2017) showed that usable LoD1 models can be generated from footprints and floor counts without elevation data. Swietek and Zumwald (2023) computed view metrics for every building in Switzerland from a national 3D model and related them to income sorting across agglomerations. Gillespie et al. (2024) simulated the breadth and depth of sea views for more than 100,000 Irish listings and priced them. Yasumoto et al. (2011) computed viewsheds for about 5,000 homes in Kyoto and found better views in more affluent areas. This paper does not claim the first large-scale or distributional view measure. Its contribution is a combination these studies do not offer together: inputs limited to a cadastre with floor counts and a national terrain model; the façade and the floor as the unit, with explicit, tested rules for passing to buildings and dwellings; evaluation against a LiDAR surface, LiDAR heights, a standard viewshed algorithm and blinded labels of listing photographs; and a geometric decomposition applied at census-section level.

Table 1. Large-scale view measures compared with this work.
Study Area and scale How views are measured Unit Needs
Biljecki et al. (2017) Generic method LoD1 models generated from footprints and attributes, without elevation data Building Footprints with attributes
Gillespie et al. (2024) Ireland; more than 100,000 sale listings 3D GIS simulation of sea-view breadth and depth; natural language processing of listing text Listing 3D model; listing text
Swietek & Zumwald (2023) Switzerland; whole building stock Building-level view metrics related to commune incomes Building National 3D model (commercial digital twin)
Li et al. (2022, 2025) Hong Kong; districts Window views rendered from a photorealistic city model and segmented Window Photorealistic city model
Peng et al. (2025) Wuhan; 3,041 apartments Segmentation of real-estate panoramas Apartment Listing panoramas
This work Costa del Sol, Spain; 158,060 residential buildings Lines of sight over cadastral buildings and national terrain models, out to 30 km Façade and floor (building and dwelling by explicit rules) Cadastre with floor counts; national terrain model

3. Data

The model itself uses only two national open datasets: cadastral buildings and the elevation models of the national mapping agency (Table 2). Everything else is used to test it. CASAS.ES, which displays the scores, describes how it processes these and other sources in its methodology.

Table 2. Data sources.
Dataset Provider Resolution and date Licence Role
Buildings and building parts (INSPIRE BU): footprints, floors above ground per part, year built, use, condition Dirección General del Catastro Vector; datasets of 21 August 2026, downloaded 15 October 2026, for 21 municipalities of the Costa del Sol (Málaga province) Catastro licence, attribution required Model
MDT05 digital terrain model Instituto Geográfico Nacional (IGN), derived from PNOA-LiDAR 5 m grid; tiles read 15–18 October 2026 CC BY 4.0-compatible (Orden FOM/2807/2015) Model: terrain and sea up to 2 km
MDT25 digital terrain model IGN 25 m grid; 190 × 115 km around the coast as above Model: relief from 2 to 30 km
Normalised surface models of buildings and vegetation (mdsn_e025, mdsn_v025) IGN, first PNOA-LiDAR coverage 2.5 m as above LiDAR reference surface and heights (Sections 7.1 and 7.2); tree variants
Nomenclátor Geográfico Básico de España (NGBE) IGN Points; 5,387 names within the pilot region as above Names of dominant summits
Energy performance certificates with declared orientation Registro de Certificados Energéticos de Andalucía, through the CASAS.ES API 953 buildings in the pilot, 359 of them single-family Public register Orientation (supplementary material)
Homes for sale with an exact or street-level map position: type, floor, year built, advertised sea view, description and photographs thinkSPAIN (thinkspain.com), read 15 October 2026 403 listings from Manilva to Nerja Portal content; not redistributed Validation of sea views (Section 7.3)
Atlas de Distribución de Renta de los Hogares (ADRH): median income per consumption unit, by census section Instituto Nacional de Estadística (INE) Census sections of Málaga province; income year 2023 Free reuse with attribution Application to income (Section 6.4)
Census section boundaries at 1 January 2024 INE Polygons; 1,085 sections in Málaga province Free reuse with attribution Linking buildings to income
Population and Housing Census 2021: dwellings by section, main and non-main INE Census sections (provisional section results) Free reuse with attribution Second homes, as a control (Section 6.4)

All services were read through their public endpoints: the INSPIRE download service of the Catastro, and the IGN Web Coverage Services for elevation (servicios.idee.es/wcs-inspire/mdt) and surface models (wcs-mds.idee.es/mds). The listings were read from the portal's public pages with a script. Their text and photographs were kept in a private archive and used only to match each home to a building and to label its photographs (Section 7.3); no listing text or photograph is redistributed, and the released validation tables identify neither listing nor building. The LiDAR layers are those of the first PNOA-LiDAR coverage, which the IGN serves ready-made; later coverages exist only as point clouds, which the method avoids processing.

4. Method

The model traces lines of sight from every free façade of every residential building, at three floors, over a surface of terrain plus cadastral buildings, and out to 30 km over the relief. It computes visibility where the observer is, at the façade rather than the parcel centroid (Yu et al., 2007; Turan et al., 2021), keeps near occluders sharp (Bartie et al., 2010) and keeps the far horizon, where mountains and the sea line lie (Qiang et al., 2019).

4.1 Surface model

4.2 Free façades and viewpoints

  1. Walk the outer ring of each block of each residential building in use. An edge whose midpoint lies less than 0.30 m from another building or block is a party wall and is dropped.
  2. Group the free edges by the octant of their outward normal (N, NE, E, SE, S, SW, W, NW). Octants with less than 3 m of free façade are dropped.
  3. For each octant, place a viewpoint 0.75 m outside the middle of its longest edge, at floor 1, floor ⌈N/2⌉ and floor N, where N is the floor count of the tallest part of the block within 6 m of the viewpoint, so that the one-floor terraces and porches drawn along many perimeters do not stand for the block behind them. Eye height = z_T + 3.0 m × (floor − 1) + 1.6 m, with z_T the terrain of the viewpoint's cell.

Only these three floors are traced. Every other floor takes the value of the nearest traced floor of the same façade (ties to the lower one); Section 4.4 gives the alternatives, and Section 7.3 traces the exact advertised floor of the photographed flats. Floors are numbered from 1, the ground floor, as in the cadastre's count of floors above ground. Spanish listings call the ground floor 0 (bajo), so listing floor k is model floor k + 1.

4.3 Lines of sight

From each viewpoint, 86 rays leave at bearings 1°, 3°, …, 85° on either side of the façade normal. Each ray stands for the 2° sector centred on it, so together they cover the normal ± 86°, the half-plane in front of the façade of an observer at a balcony rail, and a score of s degrees means that s/2 rays reach the sea; scores run from 0° to 172°. This is much wider than the horizontal sight angles used to grade window views (CEN, 2018); Section 7.4 keeps only the rays within ± 60° and ± 45° of the normal.

At each sample at distance d, the tangent of the elevation angle is computed with Earth curvature and a refraction coefficient k = 0.13 (Hirt et al., 2010), with z, d and z_eye in metres and R = 6,371,000 m:

t(d)=z(d)−(1−k)d22R−zeyed(1)

The sea surface is placed at z = 0 exactly, not at the cell's terrain value (at most 0.2 m): a sea cell counts as visible when t(d) with z = 0 is higher than every tangent before it on the same ray, the far-field horizon included. Each ray stores the highest tangent within 300 m, within 2 km and beyond 2 km, the distance to the first visible sea and the distance of the highest far-field point. The tracer is written in Python with NumPy and SciPy and compiled with Numba (Harris et al., 2020; Virtanen et al., 2020; Lam et al., 2015).

How the model sees: horizon from the sea-facing façade of one 11-floor block at floors 1, 6 and 11 (elevation angle of the highest obstacle per bearing). Squares mark the bearings where the sea is visible. The first visible sea is 283 m away.
Figure 1. How the model sees: horizon from the sea-facing façade of one 11-floor block at floors 1, 6 and 11 (elevation angle of the highest obstacle per bearing). Squares mark the bearings where the sea is visible. The first visible sea is 283 m away.

4.4 Metrics and units

Per viewpoint, the model gives the degrees of sea (2° per ray that reaches it), their mean bearing and the distance to the nearest visible sea. A distance-weighted variant counts each sea ray as min(1, 1 km / d), with d the distance to its first visible sea: seen from a given height, the sea surface fills an angle that falls roughly as 1/d, so the beach in front counts fully and a slot of sea 10 km away as a tenth. The same rays give the openness of the near field and the dominant mountains, released but not validated (supplementary material).

Three units of measurement. The model measures façade-and-floor potential; buildings and dwellings are aggregations of it. Let a index the free-façade viewpoints of building b, with free length La, floor count Na, traced floors 1, ⌈Na/2⌉ and Na, and sa(f) degrees of sea at traced floor f.

Façade-and-floor potential is sa(f) itself, the quantity compared with the LiDAR surface (Section 7.2) and, for the floor of each photographed dwelling, with the photographs (Section 7.3).

Building potential. At level ℓ (ground, middle or top), each façade is read at its own floor for that level and the building takes the best façade:

Sbℓ=maxasa(fℓ(a)),fground(a)=1,fmiddle(a)=⌈Na/2⌉,ftop(a)=Na(2)

A building sees the sea from a level when Sbℓ≥4∘ (two rays), and has an open view when Sbℓ≥20∘. These thresholds are conventions of the paper, not validated angles. All building figures use this definition.

Dwelling potential. The cadastre gives the number of dwellings Db of a building but not their floors or façades, so dwellings need two assumptions. First, they are spread evenly over floors 1 to Nb=maxaNa. Second, at floor f the façades present are Ab(f)={a:Na≥f}, and each takes the value s^a(f) of its nearest traced floor (the main rule), of the nearest traced floor below, or a linear interpolation between traced floors. For a threshold τ, the share of the dwellings of floor f with view potential is, under the best-façade and the length-share rules,

xbbest(f)=1[maxa∈Ab(f)s^a(f)≥τ],xbshare(f)=∑a∈Ab(f)La1[s^a(f)≥τ]∑a∈Ab(f)La(3)

and the share of dwellings with view potential in a set G of buildings is

PG=∑b∈G(Db/Nb)∑f=1Nbxb(f)∑b∈GDb(4)

The best-façade rule gives each dwelling the best free façade of its floor, which is optimistic for a single dwelling; the length-share rule assumes that a floor's dwellings face its free façades in proportion to their length, which is more conservative but not a lower bound, because a dwelling with windows on two façades sees the sea from either. The rules are allocation scenarios, not a confidence interval, and every dwelling figure is a model output conditional on them and on the geometry (Section 7.4).

Joining dwellings to floors. The even spread over floors is the weakest assumption of Eq. (4), and the cadastre can replace it. Its alphanumeric records of non-protected data (CAT format) list every property of a parcel, with a 20-character reference whose first 14 characters are the parcel reference that identifies the building in the INSPIRE data, and the floor and door of each unit (records of type 14 and 15). The released façade table carries, for every viewpoint, that 14-character reference, the octant, the free length and floor count of the façade and the traced floor. Counting each building's dwellings by floor in the CAT records and using those counts in place of Db/Nb would remove the dwellings that Eq. (4) puts in ground-floor shops and weight penthouses correctly; matching doors to façades would still need floor plans. The CAT files are not part of the INSPIRE download used here, and the join is left to users of the data.

4.5 Parameters

Table 3. Model parameters.
Parameter Value
Grid of the near field 2 m
Height of a building part 3.0 m × floors + 1.0 m, above the terrain of each cell
Own block transparent along the whole ray; other blocks of the building are obstacles
Floors of a façade tallest part of the block within 6 m of the viewpoint
Traced floors 1, ⌈N/2⌉ and N; other floors from the nearest traced floor
Eye height terrain at the viewpoint cell + 3.0 m × (floor − 1) + 1.6 m
Viewpoint offset from the façade 0.75 m
Party-wall tolerance 0.30 m
Minimum free façade per octant 3 m
Rays 86, at ± 1°, ± 3°, …, ± 85° from the normal; each counts 2° (scores 0–172°)
Near field (buildings and MDT05); step 2 km; max(1 m, 0.004 d)
Far field; step 2–30 km; 25 m (MDT25)
Sea cells ≤ 0.2 m, connected to the open sea; sea surface at z = 0
Refraction coefficient 0.13

5. Study areas and computation

Pilot. The pilot covers 6 × 5.5 km of Marbella (UTM zone 30N, 328,000–334,000 E × 4,040,500–4,046,000 N), from the old town and the seafront blocks to the hillside villas of Nagüeles and Sierra Blanca, from sea level to about 400 m, under La Concha (1,215 m). Its near-field surface covers 10 × 10 km at 2 m and its far field 70 × 70 km of MDT25. It has 5,231 residential buildings (463 of six floors or more), 26,178 free façade octants and 52,971 viewpoints, traced in 71 s on two processor cores.

Whole coast. The default model (terrain and buildings, without trees) was run for every residential building in use in 21 municipalities, from Manilva to Nerja, including the city of Málaga and two inland towns, Alhaurín de la Torre and Alhaurín el Grande: 159,152 residential buildings in the cadastre, in 159 tiles of 4 km, each with a 2 km margin of neighbouring buildings and terrain. 158,060 buildings (99.3 %) received viewpoints, 1.35 million in all; the others have no block with 3 m of free façade in one octant, or no floor above ground. Ray tracing took 2,504 s and data preparation 237 s on two cores (two virtual cores of an Intel Xeon at 2.1 GHz, 8 GB of memory; Python 3.11, NumPy 2.4, Numba 0.68), or 9.6 core-hours per million buildings. The time is per tile, from assembling its buildings to the building summary; it excludes the one-off download and conversion of the inputs and the dwelling, income and validation analyses.

Counterfactual without buildings. To measure how much sea the buildings hide, the whole coast was run again with the same façades, floors and viewpoints over terrain alone, so that no building, not even another part of the same building, blocks a line of sight.

Variants. For Section 7.4, the whole coast was also run with LiDAR trees, opaque and at half their height; with the floors of a façade taken within 1.5 m; and with two combinations of conservative assumptions (1.5 m radius, own block opaque beyond 4 m and flat roofs, once with trees at half height and once with opaque trees). Narrower fields of view and the distance-weighted extent are read from the same rays. The pilot was also traced over a LiDAR surface (Section 7.2), and the 92 buildings of the photographed sample were traced again to add the advertised floor of each flat and the variants that the coast runs do not cover.

6. Results

6.1 Sea views depend on the floor and on the terrain

With buildings and terrain, 57 % of the pilot's residential buildings see some sea from the ground floor, 64 % from the middle floor and 78 % from the top floor; an open sea view (20° or more) goes from 36 % at ground level to 62 % at the top. When a building sees the sea from its top floor, the nearest visible sea is a median 1.7 km away. These are building potentials (Eq. 2): at least one free façade at that level has the view, which is generous for any single dwelling (Section 7.3).

Degrees of sea visible from the top floor of each residential building in the pilot. a: buildings and terrain. b: adding LiDAR trees as opaque obstacles (Section 6.2). Grey: no sea. Background: hillshade of MDT05, contours at 100 m and every 200 m from 200 m, and the coastline of the sea mask (blue line).
Figure 2. Degrees of sea visible from the top floor of each residential building in the pilot. a: buildings and terrain. b: adding LiDAR trees as opaque obstacles (Section 6.2). Grey: no sea. Background: hillshade of MDT05, contours at 100 m and every 200 m from 200 m, and the coastline of the sea mask (blue line).

The floor matters most in the dense town. In buildings of six floors or more (n = 463), 38 % see the sea from the ground floor, 66 % from the middle floor and 93 % from the top (Figure 3a); for an open view, 15 %, 34 % and 77 %. The block of Figure 1 sees no sea from floors 1 and 6, and 134° of sea from floor 11. This is the vertical dimension that hedonic studies of high-rise markets price (Jim & Chen, 2009; Wong et al., 2011) and that a building-level score cannot express. The terrain matters most outside the town (Table 4): the low ground 10 to 25 m above sea level, behind the seafront blocks, is where views are rarest, and above 100 m almost every building sees the sea, as Castro Noblejas et al. (2023) observed for Marbella's slopes. The same rays describe the rest of the horizon: from the top floor, 90 % of the pilot's buildings see relief beyond 2 km rising above everything nearer, most often La Concha (supplementary Section S1).

Table 4. Share of buildings that see the sea, by the elevation of the ground they stand on (pilot).
Ground elevation (m) Buildings Ground floor Top floor Median sea from top floor (°)
0–10 162 72 % 86 % 55
10–25 1,015 26 % 46 % 2
25–50 1,410 41 % 70 % 16
50–100 1,760 67 % 90 % 44
100–200 787 94 % > 99 % 98
200–600 97 100 % 100 % 128
a: share of buildings of six floors or more that see the sea, by floor, with and without LiDAR trees. b: share of the 726 sampled buildings with a sea view from the top floor, by distance to the nearest beach, for a rule-of-thumb heuristic and the model with and without trees (supplementary Section S3).
Figure 3. a: share of buildings of six floors or more that see the sea, by floor, with and without LiDAR trees. b: share of the 726 sampled buildings with a sea view from the top floor, by distance to the nearest beach, for a rule-of-thumb heuristic and the model with and without trees (supplementary Section S3).

6.2 Trees matter more for houses than for flats

Trees are the largest structural uncertainty. With LiDAR vegetation as opaque obstacles, the share of the pilot's buildings that see the sea falls from 57 % to 12 % at ground level and from 78 % to 55 % at the top floor; with trees at half their height, to 35 % and 74 %. Tall buildings keep their top-floor views (93 % against 92 %) but lose them lower down (Figure 3a). The default model leaves trees out, because they are partly transparent (Murgoitio et al., 2014), gardens are pruned to keep views and the vegetation layer is about a decade old, yet trees do hide views in low-density settings (Vukomanovic et al., 2018). The tree variants are reported beside the default throughout (Sections 7.3 and 7.4); against the photographs, trees at half height rank the homes slightly better than the default (Section 7.3).

6.3 The whole Costa del Sol

Across the coast, 38 % of residential buildings see some sea from the ground floor and 52 % from the top floor; 24 % and 36 % have an open view (Figure 4). Weighted by their dwellings, 59 % of the 810,334 dwellings are in buildings with open-view potential at the top floor. The share of dwellings on a floor with open-view potential, which needs the allocation of Eqs. (3) and (4), is 42 % under the main rule and 21 % under the length-share rule (Section 6.4). From the top floor, the nearest visible sea is a median 1.6 km away for buildings with an open view and 4.4 km for those that see less than 20°.

Degrees of sea visible from the top floor of each of the 158,060 residential buildings of 21 municipalities of the Costa del Sol (best façade; terrain and buildings, no trees). Grey: no sea. Contours every 400 m from 200 m.
Figure 4. Degrees of sea visible from the top floor of each of the 158,060 residential buildings of 21 municipalities of the Costa del Sol (best façade; terrain and buildings, no trees). Grey: no sea. Contours every 400 m from 200 m.

The coast is far from uniform (Table 5). In Benahavís, Benalmádena, Rincón de la Victoria and Manilva, where hills rise from the shore, three buildings in five or more have an open view from the top floor; in Málaga, where most buildings stand in the flat city behind the port, 18 % do, and in Fuengirola, a dense town on a narrow plain, 22 %. Distance to the sea explains less than one might expect: buildings within 500 m of the sea have an open top-floor view in 52 % of cases, and those 2 to 5 km away in 35 %, mostly on slopes facing the sea. In the 1,760 buildings of ten floors or more, 14 % have an open view from the ground floor and 73 % from the top.

Table 5. Share of residential buildings that see the sea, by municipality, from west to east. The last column is the counterfactual of Section 6.5, with terrain only. Each municipality links to its page at casas.es.
Municipality Buildings Dwellings Any sea, ground floor Any sea, top floor Open view (≥ 20°), top floor Open view (≥ 20°), top floor, without buildings
Casares 2,249 7,523 31 % 40 % 28 % 40 %
Manilva 2,981 17,911 57 % 76 % 60 % 92 %
Estepona 8,390 52,044 47 % 63 % 47 % 94 %
Benahavís 2,388 9,877 79 % 82 % 72 % 79 %
Istán 904 1,254 23 % 24 % 19 % 20 %
Marbella 16,765 100,176 59 % 75 % 57 % 95 %
Ojén 1,146 3,524 32 % 54 % 28 % 44 %
Alhaurín el Grande 9,104 12,698 3 % 4 % 0 % 0 %
Mijas 16,743 63,934 54 % 64 % 48 % 81 %
Fuengirola 5,713 50,935 23 % 34 % 22 % 96 %
Alhaurín de la Torre 8,443 16,129 22 % 36 % 9 % 35 %
Benalmádena 6,670 49,512 66 % 79 % 63 % 97 %
Torremolinos 3,710 44,640 46 % 68 % 49 % 99 %
Málaga 40,147 259,678 17 % 32 % 18 % 67 %
Totalán 324 344 20 % 31 % 1 % 1 %
Rincón de la Victoria 5,094 27,468 68 % 81 % 63 % 96 %
Vélez-Málaga 12,677 48,478 42 % 55 % 40 % 75 %
Algarrobo 1,545 5,539 41 % 53 % 40 % 62 %
Torrox 4,225 19,199 48 % 66 % 47 % 77 %
Frigiliana 2,264 2,959 62 % 72 % 56 % 75 %
Nerja 6,578 16,512 54 % 74 % 57 % 94 %
Costa del Sol 158,060 810,334 38 % 52 % 36 % 73 %

6.4 An application: view potential and income

This section is an application of the model, not its validation. Each residential building was assigned to the census section that contains it, and each section to its median income per consumption unit in 2023 (Table 2); 155,366 buildings with 810,168 dwellings in 871 sections have both a view and an income.

In the poorest fifth of dwellings, ranked by the income of their section, 32 % are on a floor with open-view potential under the main allocation; in the richest fifth, 48 % (Figure 5). The poorest fifth does not live further from the sea (median distance 966 m against 1,025 m), and the two fifths have similar shares of single-family houses (16 % and 15 %) and heights (6.0 and 5.8 floors). The gap is largest 1 to 3 km from the sea (16 % against 51 %); within 1 km it is 48 % against 54 %.

Share of dwellings with open sea-view potential (20° or more) on their floor, under the main allocation (best façade, nearest traced floor; Eqs. 3 and 4), by fifth of dwellings ranked by the median income per consumption unit of their census section (INE income atlas for 2023), for all dwellings and by distance to the sea. Costa del Sol, 810,168 dwellings in 871 sections.
Figure 5. Share of dwellings with open sea-view potential (20° or more) on their floor, under the main allocation (best façade, nearest traced floor; Eqs. 3 and 4), by fifth of dwellings ranked by the median income per consumption unit of their census section (INE income atlas for 2023), for all dwellings and by distance to the sea. Costa del Sol, 810,168 dwellings in 871 sections.

Allocation scenarios. Similar shares of flats and heights do not guarantee that the best-façade rule overstates rich and poor areas alike, so Table 6 repeats the analysis under each allocation scenario. Sharing each floor's dwellings among its façades lowers the share with open-view potential from 42 % to 21 %, from 32 % to 18 % in the poorest fifth and from 48 % to 24 % in the richest: the gap narrows from 16 to 6 points but does not close.

Table 6. Share of dwellings with open-view potential (20° or more) under each allocation scenario (Eqs. 3 and 4), for all dwellings and for the poorest and richest fifths by section income, and the section-level income coefficient with municipality fixed effects (model M2 of Table A1; percentage points per unit of log income), with buildings and on terrain alone. In brackets, the 95 % interval from the restricted wild cluster bootstrap-t (WCR; 9,999 replications, Webb weights, clustered by municipality, interval by test inversion).
Allocation: façade / floor All Poorest fifth Richest fifth Income coefficient [WCR] Terrain only: all Terrain only: income coefficient [WCR]
Best / nearest (main) 42.4 % 32.4 % 48.0 % 52.5 [14.4, 92.9] 87.2 % 3.2 [−18.6, 34.9]
Best / floor below 39.9 % 29.5 % 45.1 % 54.3 [9.0, 97.9] 86.8 % 3.9 [−17.6, 35.0]
Best / interpolated 44.0 % 33.9 % 49.4 % 52.6 [18.8, 90.6] 87.6 % 2.6 [−18.4, 32.6]
Length share / nearest 21.2 % 18.3 % 23.8 % 23.2 [8.6, 38.2] 59.4 % 0.3 [−3.2, 16.4]
Length share / floor below 19.4 % 16.1 % 21.8 % 24.1 [5.3, 41.0] 58.8 % 1.0 [−10.4, 17.2]
Length share / interpolated 22.2 % 19.3 % 24.8 % 23.7 [8.9, 38.9] 60.0 % −0.3 [−4.0, 14.6]
Best / nearest, no dwellings on the ground floor of buildings of 3+ floors 44.9 % 34.5 % 50.7 % 54.0 [18.8, 91.8] — —

Regressions. One row per census section with at least 20 dwellings (860 sections in 21 municipalities), weighted by dwellings, explains the share of dwellings with open-view potential, in percent, by the log of section income and the log of the mean distance of its dwellings to the sea (Appendix A). The models answer different questions. M1 gives the association across the coast; M2 adds municipality fixed effects, which absorb planning regimes and the shape of each coast; M5 adds building age, type, height and ground elevation, which are partly the channels through which income and views go together rather than confounders. M2 and M5 are different conditional associations, not bounds on one quantity.

Inference with few, unequal clusters. Málaga holds 51 % of the sections, and its partial leverage for the income coefficient of M2 is 0.66, so the effective number of clusters (Carter et al., 2017) is about 2.2 out of 21 (supplementary Table S6). With so few effective clusters no cluster-robust method is reliable, and the usual ones fail in known directions (MacKinnon et al., 2023a, 2023b): the restricted wild cluster bootstrap-t, WCR (MacKinnon & Webb, 2017), tends to be conservative when one cluster dominates, its unrestricted version, WCU, anti-conservative, and leave-one-cluster-out errors, CV3, reflect how far the estimate moves when each municipality is dropped. We use WCR for every central comparison (Tables 6 and A3, and the scenarios of Section 7.4), report CV3 for the models of Table A1, add spatial errors that do not depend on municipal boundaries, and make no firm significance claim where defensible methods disagree.

Outcomes and functional form. With the best façade, the association excludes zero under WCR for any sea (4°: 62.5, WCR 45.3 to 92.5) and for open views, but not for wide views of 45° or more (37.1, WCR −4.6 to 76.2) or for the mean degrees of sea (39.4, WCR −2.8 to 82.8); under the length-share rule it excludes zero for every outcome (Table A3). The outcome is a share, bounded at 0 and 100 %; a fractional logit (Papke & Wooldridge, 1996) with municipality fixed effects gives an average marginal effect of 58.7 points per unit of log income (CV3 24.4 to 92.9), against 52.5 in the linear model.

Representation. The size of the association depends on the allocation rule, trees, geometry and the weight given to distant sea (Section 7.4). With the best façade at 20° its point estimate goes from 28.0 to 52.5 across the coast-wide geometric and vegetation scenarios, and with the length-share rule from 9.7 to 23.2; its WCR interval excludes zero in every scenario except the distance-weighted extent, under both rules.

What the association means. The supported conclusion is narrow: higher-income census sections tend to have more modelled sea-view potential, within municipalities and at equal distance from the sea, with substantial uncertainty about its size and a clear dependence on representation. It is an association between areas, not households (Banzhaf et al., 2019), consistent with amenity-based theories of location (Brueckner et al., 1999). Resident income is not the income of all owners of the stock: second homes count as dwellings but their owners' incomes are not in the atlas, and residents who file taxes abroad, common among the coast's foreign residents, are missing from it. Income refers to 2023 and buildings to the cadastre of 2026, although only 1.3 % of dwellings are in buildings completed in 2024 or later.

6.5 The sea that buildings hide

On this coast, buildings hide more sea than the terrain does. In the counterfactual of Section 5, with the same viewpoints and no building in the way, 73 % of residential buildings would have open-view potential at their top floor, against 36 % with the buildings (Table 5), and 67 % at the ground floor, against 24 %. Under the main allocation, 87 % of dwellings would be on a floor with open-view potential and 42 % are: the buildings remove it for about 362,000 dwellings, more than half of those to which the terrain alone would give it (59 % and 21 % under the length-share rule; between 306,000 and 380,000 dwellings across the scenarios of Table 6). As a check on the two runs, no building sees more sea from its top floor with the buildings than without them.

The sea that buildings hide. Each of the 158,060 residential buildings of the Costa del Sol, from its top floor: open sea view (20° or more) with the buildings (blue); open view only on terrain alone, so hidden by buildings (orange); no open view even on terrain alone (grey). a: the whole coast; b: Málaga and Torremolinos; c: Marbella. Terrain and buildings, no trees.
Figure 6. The sea that buildings hide. Each of the 158,060 residential buildings of the Costa del Sol, from its top floor: open sea view (20° or more) with the buildings (blue); open view only on terrain alone, so hidden by buildings (orange); no open view even on terrain alone (grey). a: the whole coast; b: Málaga and Torremolinos; c: Marbella. Terrain and buildings, no trees.

The loss is largest where the sea is near and the town is dense (Figure 6). Within 500 m of the shore, 97 % of buildings would have open-view potential at their top floor on terrain alone, and 52 % have it. Málaga holds 46 % of the dwellings that lose it: 67 % of its buildings would have open-view potential at the top floor and 18 % have it. In buildings of ten floors or more, 99 % would have it at the top floor and 73 % do, while at the ground floor 91 % would and 14 % do.

Without the buildings, most of the modelled income gradient disappears. On terrain alone, the poorest fifth of dwellings would have open-view potential about as often as the richest (86 % against 89 %), also between 1 and 3 km from the shore (89 % against 90 %), where the modelled gap is widest. At section level (M2), the coefficient on log income falls from 52.5 to 3.2 (WCR −18.6 to 34.9), and their difference, estimated directly as the coefficient of the section-level difference between the two outcomes, is 49.2 (WCR 32.2 to 71.3). With 87 % of dwellings open on terrain alone the linear outcome is close to saturation, so two checks matter: the fractional logit, which models the bound, gives an average marginal effect of 1.6 on terrain alone against 58.7 with buildings; and the mean degrees of sea, which do not saturate, give a terrain-only coefficient of 12.8 against 39.4, about a third of it, with a difference of 26.6 degrees (WCR 23.6 to 49.0). Beyond 3 km the terrain itself favours the richer sections (39 % against 69 % on terrain alone), where houses stand on the slopes.

This is a geometric decomposition, not a causal estimate. It holds viewpoints and heights fixed, and both are themselves products of development; it removes every building, including the other blocks of each building; and it measures what the built fabric takes as a whole, not what any neighbour, planning decision or social process takes. What it shows is that, near the sea, most of the modelled difference in view potential between richer and poorer sections lies in what stands in front of them rather than in the shape of the coast, for this model, these allocation scenarios and these outcomes.

7. Validation

The model is tested against four references, each for a different part of it: building heights against LiDAR (7.1); the façade-and-floor angles against a trace over a LiDAR surface (7.2); the sea seen from photographed dwellings against their photographs (7.3); and the tracer against a standard viewshed algorithm, with numerical and structural choices varied (7.4). None of them is an observation of the angle of sea that a resident sees, which this paper does not have.

7.1 Building heights against LiDAR

Heights from the rule of 3.0 m per floor plus 1.0 m show little median bias against airborne LiDAR, but individual parts differ by about a metre, and some by much more (Figure 7). The LiDAR height of a cadastral part is the 75th percentile of the normalised building surface inside it, shrunk by 1 m; for the 9,844 parts built in 2005 or earlier that the LiDAR detects (at least 2 m), the median difference from the rule is 0.0 m, the median absolute difference 1.0 m, and 85 % fall within 3 m. One-floor parts are taller in reality (median 5 m against 4 m), because of pitched roofs. Replacing the rule with LiDAR heights wherever a part built by 2014 is detected changes the class of 2.9–4.1 % of the pilot's buildings at every level and both thresholds. The LiDAR is dated: in each year of construction from 2010 to 2015, 53–69 % of parts are detected, against 2–23 % from 2016 on.

LiDAR height of cadastral building parts by number of floors (boxes: quartiles; whiskers: 1.5 × IQR) against the rule used, 3.0 m × floors + 1.0 m. Parts built in 2005 or earlier.
Figure 7. LiDAR height of cadastral building parts by number of floors (boxes: quartiles; whiskers: 1.5 × IQR) against the rule used, 3.0 m × floors + 1.0 m. Parts built in 2005 or earlier.

7.2 Façade-and-floor angles against a LiDAR surface

Heights are only one of the ways in which LoD1 blocks simplify the city. To measure the angular error of the scores themselves, the pilot's 52,971 viewpoints were traced again, with the same rays, over a surface in which the cadastral blocks are replaced by the normalised building surface of the LiDAR: real roof shapes, and every structure the LiDAR classifies as a building, whether or not the cadastre records it. Inside the cadastral parts that the LiDAR does not detect, mostly built after the flight, the LoD1 block is kept. The viewpoint's own block and a 2 m ring around it stay transparent, so that registration errors do not block a façade. This surface is a reference with its own errors, a decade old and with classification noise, not an observation of the view; differences from it show how much the scores depend on how buildings are represented (Table 7).

Table 7. Façade-and-floor scores of the model (LoD1 blocks) against the same viewpoints and rays traced over LiDAR surfaces: the pilot's 52,971 viewpoints and, at the best façade of the top floor, its 5,231 buildings. Differences are model minus reference, in degrees of sea; agreement and Cohen's κ for the class at 20°. The last row adds LiDAR trees to both, as opaque obstacles.
Surface traced instead of the LoD1 blocks Mean sea per viewpoint, model / reference (°) Mean difference (°) 90th percentile of absolute difference (°) Same class at 20° (κ) Top floor: mean difference (°) Buildings with open view from the top floor: model / reference
LiDAR roofs, inside the cadastral parts only 16.5 / 16.3 0.2 8 96.7 % (0.92) 0.8 62.0 % / 62.7 %
LiDAR buildings, without patches under 50 m² outside the parts 16.5 / 13.6 2.9 12 94.0 % (0.84) 6.1 62.0 % / 56.7 %
LiDAR buildings, all 16.5 / 11.9 4.6 16 91.7 % (0.77) 9.0 62.0 % / 53.9 %
LiDAR buildings and trees, against the model with opaque trees 4.7 / 4.8 −0.1 6 96.2 % (0.75) 0.0 36.1 % / 36.6 %

Inside the cadastral footprints, the LoD1 blocks and the LiDAR roofs give nearly the same angles: with the LiDAR surface restricted to the cadastral parts, the mean difference is 0.2° per viewpoint and 0.8° at the best façade of the top floor, and 96.7 % of viewpoints fall in the same class at 20° (Cohen's κ 0.92). The difference comes from what lies outside the footprints: a third (33 %) of the LiDAR's building cells are more than 2 m from any cadastral building. They are walls, sheds, pergolas, unrecorded or demolished structures and classification noise, in patches with a median area of 8 m². With all of them, the model overstates the sea by 4.6° per viewpoint on average (median difference 0°; 90th percentile of the absolute difference 16°) and by 9.0° at the best façade of the top floor, and the share of buildings with an open view from the top floor falls from 62.0 % to 53.9 %; keeping only the patches of 50 m² or more outside the footprints, by 6.1° and to 56.7 %. At 20°, 91.7 % of viewpoints agree (κ 0.77), and when the model disagrees it is mostly by finding sea that the LiDAR surface hides (0.91 specificity, 0.96 sensitivity against it). With LiDAR trees on both sides, the means match (21.5° and 21.5° at the top floor), because the trees hide much of the same sea. The angular errors of LoD1 are thus small where the cadastre maps the buildings and positive where it does not, a likely contributor to the false positives of Section 7.3.

7.3 Sea views against listing photographs

Frame and matching. Property portals usually show a home's position only as an approximate area, so the frame of this validation is the homes for sale on thinkSPAIN, a property portal, between Manilva and Nerja whose position is exact or at street level: 403 listings on 15 October 2026, 379 dwellings after removing garages, plots, premises and duplicates. Each listing was matched to a cadastral building without looking at the model: the nearest residential building within 80 m of an exact position, or 120 m of a street-level one, whose year of construction is within one year of the advertised one and whose floors fit (for a house, its floors; for a flat, at least two dwellings and enough floors for the advertised one). Where an exact position had no building with a matching year, usually a new building not yet in the cadastre, the nearest residential building within 25 m was accepted (24 cases); listings without a fitting building were dropped. Crossing a street can change a view completely, so the tolerances matter; in the main sample the median distance from the listing's position to its building is 14 m (90th percentile 56 m), and the robustness checks below restrict the sample to the most reliable matches.

Labels. The photographs of each listing were inspected as contact sheets and labelled before any model output was joined to them: sea visible from the dwelling; partial (a sliver or a distant sea); no sea, although the photographs show the outside; or undetermined. In this first labelling, three AI models (Claude, Anthropic; Gemini, Google; ChatGPT, OpenAI) and the author labelled the photographs, and each listing took the majority label, with ties decided by the author, who built the model. Only the final label of each listing was recorded, so agreement between those four labellers cannot be computed. The first-round labels define the sample, as in earlier versions, and are otherwise used only for comparison; the reference labels come from the blinded relabelling below. Thirty-four listings were undetermined, most of them new builds shown only in renderings, and four duplicated another dwelling, leaving 115: 53 with sea, 12 partial and 50 without. Twenty-two flats that do not state their floor are left out of the main analysis (scored from the top floor, they give an AUC of 0.76 with the rest). The main sample has 93 dwellings in 92 buildings and 12 municipalities: 46 flats and 47 houses. Three houses that only the relabelling decides are not added (with them, the AUC is 0.79 on 96 dwellings).

Blinded relabelling. To document the labels and test their dependence on the first labellers, the listings were labelled again under a written protocol (supplementary Section S5): the 115 labelled in the first round and 33 of the 34 it left undetermined. Five AI models of two developers did so, each run separately with the same instructions: Claude Opus 5.5, Claude Sonnet 5 and Claude Haiku 4.5 (Anthropic), and Gemini 3.1 Pro and Gemini 3.8 Flash (Google). Each saw only the listing's photographs (contact sheets and enlargements at 640 × 480 for the Anthropic models, every photograph inline for the Gemini models), under an anonymous code in random order: no listing text, position, model output or earlier label. Besides the label, each recorded the photographs that show the sea and whether the sea is seen only from a communal area. The reference label gives each developer one vote, the majority of the three Anthropic models and Gemini 3.1 Pro; Gemini 3.8 Flash is a sensitivity check. When the two votes agree, or only one of them decides, that is the label. They disagreed on 15 listings, all of the same kind, a sliver of sea that Gemini sees and the Anthropic models do not; the author decided these ties from the anonymous contact sheets, without the model's scores, and labelled 6 of them partial and 9 without sea. The four labellers that vote agree on the label of 68 % of the 148 listings (Fleiss' κ 0.76 for the four categories) and, among the 110 listings that all four decide, on 81 % for sea, partial included, against no sea (κ 0.78); Gemini 3.1 Pro and the Anthropic majority agree on 87 % of the 115 listings both decide (Cohen's κ 0.71). These are not independent human judgements, and models of two developers need not err independently, but the labels, prompts and model versions are released. The reference agrees with the first labelling on 92 % of the 115 listings both call determinate (Cohen's κ 0.84); the 9 differences are first-round negatives that the reference calls partial. In the main sample it gives 60 dwellings with sea, partial views included (35 clear, 25 partial), and 33 without, and it is the label used in the rest of this section. Against it the model's AUC is 0.80; against each labeller alone it ranges from 0.76 (Gemini 3.1 Pro, which labels more slivers as partial) to 0.84 (Gemini 3.8 Flash), against the first-round labels it is 0.81, and without the ties decided by the author, 0.81 (84 dwellings; Table 9).

What the sample represents. The 93 dwellings resemble the frame they come from: 50 % are flats against 58 %; 73 % tick the sea-view box against 63 %; their median size is 152 m² against 143 m², and their median distance to the sea 1.4 km against 1.5 km. Homes for sale with a precise position on this coast are mostly homes with views: 82 % of the frame's dwellings are in a building with open-view potential from the top floor, close to the sample's 86 % and far above the 36 % of the coast's buildings. AUC does not depend on the proportion of positives as long as the scores within each class are distributed as in the target population, but selecting other kinds of homes can change those distributions (Leeflang et al., 2013), so the AUC of this sample need not transport to the housing stock. Reweighting the 93 dwellings to the composition of the coast's dwellings by type and distance to the sea gives an AUC of 0.81 (95 % CI 0.68–0.91; effective sample 60), a sensitivity analysis on those two observed dimensions, not a regional validation.

Label errors. Labels made from marketing photographs can be wrong: a view may be missing from the photographs, a photographed view may come from a communal terrace, or a listing may be matched to the wrong building. Random label errors bias AUC towards 0.5: flipping 5 % or 10 % of the labels at random lowers it from 0.80 to 0.77 and 0.74 on average. Errors correlated with the score are more worrying, above all views from communal terraces or roofs, which would favour a score read at the building's best façade. The four labellers that vote flagged the sea as seen only from a communal area, or possibly so, in 5 dwellings of the main sample; leaving them out gives an AUC of 0.80.

Scores. For a flat advertised on floor k, every free façade of its building is read at its traced floor nearest to k + 1, and the score is the best of them; for a house, it is Sbtop of Eq. (2). Façades of lower wings that do not reach floor k + 1 are read at their own top floor. With the first-round labels, restricting the score to the façades that reach k + 1, as Eq. (3) does for dwellings, gives an AUC of 0.815 against 0.814 (paired 95 % CI −0.01 to +0.02), and tracing the advertised floor exactly instead of the nearest traced floor, 0.819 (−0.01 to +0.02).

Yes/no answers at fixed thresholds. The primary result is how often the model is right at the thresholds used throughout the paper (Table 8). 4° and 20° have been the paper's thresholds since its first version, not values chosen for this table, but they were not registered before the photographs were seen; 45° and 60° are exploratory. At 20°, sensitivity is 0.90 and specificity 0.45, a balanced accuracy of 0.68; in this sample, where 65 % of dwellings see the sea, 0.75 of the dwellings the model calls positive are photo-positive. These are screening results, not an inventory: the model scores the building's best façade at the dwelling's floor, not the dwelling's own windows, so a flat at the back of a sea-facing block is scored with the front, and the unmapped structures of Section 7.2 likely add further false positives. The photographs show whether the sea is visible, not how many degrees of it, so they validate no threshold as an angle.

Table 8. The model and the sellers' checkbox as yes/no answers against the photographs (93 dwellings; 60 with sea, 33 without; reference labels). The model answers 'sea' when the dwelling's score reaches the threshold; 4° and 20° are the thresholds used throughout the paper, 45° and 60° are exploratory. Counts are true positives / false negatives / false positives / true negatives. Wilson 95 % intervals; for balanced accuracy, 4,000 bootstrap resamples. Predictive values depend on the sample's prevalence (65 %) and do not transport to the housing stock.
Score Counts Sensitivity Specificity Balanced accuracy Positive predictive value Negative predictive value
Model, 4° or more 59 / 1 / 28 / 5 0.98 (0.91–1.00) 0.15 (0.07–0.31) 0.57 (0.51–0.64) 0.68 (0.57–0.77) 0.83 (0.44–0.97)
Model, 20° or more 54 / 6 / 18 / 15 0.90 (0.80–0.95) 0.45 (0.30–0.62) 0.68 (0.59–0.77) 0.75 (0.64–0.84) 0.71 (0.50–0.86)
Model, 45° or more 43 / 17 / 5 / 28 0.72 (0.59–0.81) 0.85 (0.69–0.93) 0.78 (0.69–0.86) 0.90 (0.78–0.95) 0.62 (0.48–0.75)
Model, 60° or more 39 / 21 / 4 / 29 0.65 (0.52–0.76) 0.88 (0.73–0.95) 0.76 (0.68–0.84) 0.91 (0.78–0.96) 0.58 (0.44–0.71)
Sellers' checkbox 57 / 3 / 11 / 22 0.95 (0.86–0.98) 0.67 (0.50–0.80) 0.81 (0.72–0.89) 0.84 (0.73–0.91) 0.88 (0.70–0.96)
ROC curves against the listing photographs (reference labels) for the default model and two ablations, all dwellings (93) and flats (46). Circles: the model's operating points at 4°, 20°, 45° and 60° of sea; diamond: the sellers' checkbox, a single yes/no answer.
Figure 8. ROC curves against the listing photographs (reference labels) for the default model and two ablations, all dwellings (93) and flats (46). Circles: the model's operating points at 4°, 20°, 45° and 60° of sea; diamond: the sellers' checkbox, a single yes/no answer.

The sellers' checkbox. The checkbox is a single yes/no answer, so its AUC is its balanced accuracy and the like-for-like comparison is at fixed operating points. At the checkbox's rate of false positives (11 of 33), the model's sensitivity is 0.78 against the checkbox's 0.95; at the checkbox's sensitivity, its specificity is 0.39 against 0.67. As a yes/no answer the checkbox is better, although it comes from the same seller as the photographs. The model needs no seller and covers dwellings that are not for sale.

Ranking. As a ranking, the model separates homes with and without a sea view better than distance to the sea, ground elevation or a rule-of-thumb heuristic (Table 9, Figure 9). Removing the buildings, so that only the terrain blocks the view, lowers the AUC from 0.80 to 0.73, and looking from the top floor of every building instead of the advertised floor lowers it to 0.79; among flats, it is 0.80 with the floor and 0.80 without. With the reference labels neither paired interval excludes zero, so on these photographs the buildings and the floor raise the ranking only within sampling error. LiDAR trees at half height raise the AUC to 0.83, and that paired interval does exclude zero; opaque trees leave it at 0.80.

Table 9. Agreement with the listing photographs as a ranking: area under the ROC curve (93 dwellings; 60 with sea, 33 without; reference labels), with 95 % intervals and the paired difference from the model, from 4,000 bootstrap resamples of listings. The last rows score the default model against the labels of each blinded labeller, the Anthropic majority, the reference without the ties decided by the author and the first round (Section 7.3), on the dwellings each set of labels decides. The checkbox is a single yes/no answer, so its AUC is its balanced accuracy (Table 8).
Score Dwellings AUC (95 % CI) Model minus this score (95 % CI)
Model: terrain + buildings + floor (default) 93 0.80 (0.70–0.89) —
Model + LiDAR trees at half height 93 0.83 (0.73–0.91) −0.057 to −0.005
Model + LiDAR trees, opaque 93 0.80 (0.70–0.88) −0.058 to 0.076
Without the floor (top floor for every dwelling) 93 0.79 (0.68–0.88) −0.034 to 0.075
Without buildings (terrain only) 93 0.73 (0.61–0.84) −0.025 to 0.182
Distance to the sea 93 0.61 (0.49–0.73) 0.062 to 0.323
Ground elevation 93 0.51 (0.39–0.64) 0.128 to 0.443
Rule-of-thumb heuristic (supplementary Section S3) 85 0.55 (0.47–0.63) 0.156 to 0.388
Sellers' 'sea view' checkbox 93 0.81 (0.72–0.89) −0.131 to 0.113
Model, against the labels of Claude Opus 5.5 (blinded) 93 0.81 (0.72–0.90) —
Model, against the labels of Claude Sonnet 5 (blinded) 89 0.81 (0.70–0.90) —
Model, against the labels of Claude Haiku 4.5 (blinded) 87 0.81 (0.71–0.90) —
Model, against the labels of Gemini 3.1 Pro (blinded) 93 0.76 (0.64–0.87) —
Model, against the labels of Gemini 3.8 Flash (blinded) 93 0.84 (0.75–0.92) —
Model, against the majority of the three Anthropic models 90 0.82 (0.72–0.90) —
Model, against the reference without the ties decided by the author 84 0.81 (0.70–0.91) —
Model, against the first-round labels 93 0.81 (0.72–0.90) —
Agreement with the listing photographs (reference labels): AUC (dot) and 95 % bootstrap interval (line) for the model, its tree variants, two ablations, three simple proxies, among them a rule-of-thumb heuristic, and the sellers' checkbox. 93 dwellings on the Costa del Sol; the heuristic has 85.
Figure 9. Agreement with the listing photographs (reference labels): AUC (dot) and 95 % bootstrap interval (line) for the model, its tree variants, two ablations, three simple proxies, among them a rule-of-thumb heuristic, and the sellers' checkbox. 93 dwellings on the Costa del Sol; the heuristic has 85.

Partial views. Dwellings labelled partial score a median 50° (interquartile range 22–86°), those without sea 26° (8–36°) and those with a clear sea view 104° (80–148°). Partial views spread widely between the other two, while photo-negative dwellings spread from 0° (15 % of them) to well above the threshold (55 % reach 20°), the pattern expected from scoring the best façade. The main analysis counts partial views as sea; counting them as no sea gives an AUC of 0.84, and leaving them out 0.88; as an ordered outcome, the score's Kendall τ-b with the three labels is 0.49.

Robustness. The AUC is 0.82 in Marbella (23 dwellings) and 0.80 elsewhere (70), 0.80 for flats and 0.82 for houses. Restricted to the most reliable matches, it is 0.79 for exact positions (62 dwellings), 0.80 for exact positions with a matching year (54) and 0.81 when the building is also within 30 m (37). If the 11 dwellings whose checkbox claims sea but whose photographs show none did see it, the AUC would be 0.77.

7.4 Robustness of the geometry

Each modelling choice was changed in turn for the pilot's buildings and carried to buildings, dwellings, the pilot's income gradient and, where re-traced, the photographs (supplementary Tables S3 and S4); the consequential ones were run for the whole coast (Table 10).

Numerical choices. Rays every 1° instead of 2°, a near-field step half as long and a sea mask without its 16 m edge strip change the class of at most 1.7 % of buildings and the pilot's share of dwellings with open-view potential by at most 0.5 points under either allocation rule. Four tiles (28,720 buildings) traced with buildings blocking up to 4 km instead of 2 km change class for 0.1–0.7 % of buildings. For 60 random viewpoints of the pilot, the radial sweep of GRASS r.viewshed (Haverkort et al., 2009), as implemented in xarray-spatial 0.5.3, run on the same 2 m surface agrees with the model on whether any sea within 2 km is visible on 99.8 % of 5,160 rays (Cohen's κ 0.96); this verifies the line-of-sight implementation, not the surface.

Structural assumptions. These change what the surface represents, not how precisely it is computed, and they matter more.

Against the first-round labels of the photographs, the variants give AUCs from 0.78 to 0.83, against 0.81 for the default (supplementary Table S4); the photographs cannot choose among most of them (with the reference labels, trees at half height rank slightly better; Section 7.3), and the defaults were not chosen for fit.

Combinations, for the whole coast. Table 10 crosses the geometric and vegetation scenarios run for the whole coast with the two allocation rules, for the two headline results. The share of dwellings with open-view potential ranges from 26.9 % to 42.4 % with the best façade and from 12.4 % to 21.2 % with the length share; the combination of conservative geometry and opaque trees, with the length share, gives 12.4 %. These are scenarios, not a confidence interval: they change what the model represents. Table A4 adds any sea and the mean degrees of sea.

Table 10. The two headline results under each geometric and vegetation scenario run for the whole coast, crossed with the two allocation rules (nearest traced floor, 20° or more): share of the coast's dwellings on a floor with open-view potential, and income coefficient with municipality fixed effects (M2; points per unit of log income) with its WCR 95 % interval in brackets. Scenarios change what the model represents; their range is not a confidence interval. The last rows give other statistical intervals for the default with the best façade, and the terrain-only decomposition.
Scenario Dwellings, best façade Income coefficient, best façade [WCR] Dwellings, length share Income coefficient, length share [WCR]
Default (Table 3) 42.4 % 52.5 [14.4, 92.9] 21.2 % 23.2 [8.6, 38.2]
Floors of a façade within 1.5 m 39.1 % 50.6 [11.0, 91.6] 19.3 % 21.8 [9.9, 34.5]
LiDAR trees at half height 38.7 % 46.1 [11.0, 86.3] 18.5 % 18.1 [7.6, 29.6]
LiDAR trees, opaque 31.4 % 33.5 [9.9, 68.8] 14.1 % 10.7 [4.5, 16.7]
Field of view ± 60° 39.1 % 49.3 [6.7, 94.3] 15.4 % 16.2 [4.1, 28.0]
Field of view ± 45° 36.7 % 47.7 [3.5, 93.7] 12.5 % 13.2 [4.1, 22.9]
Sea extent weighted by distance (relative to 1 km) 26.9 % 28.0 [−8.1, 64.8] 12.5 % 10.5 [−0.2, 22.0]
Combined: 1.5 m radius, own block opaque beyond 4 m, flat roofs, trees at half height 36.5 % 44.9 [4.4, 88.4] 16.5 % 16.4 [8.3, 26.0]
The same combination with opaque trees 29.6 % 32.9 [3.7, 72.0] 12.4 % 9.7 [3.2, 15.5]
Default, best façade: CV3 with t(20) — 9.1 to 95.8 — —
Default, best façade: Conley standard errors at 2, 5 and 10 km — 7.5, 9.3, 8.7 — —
Default, best façade: 5 km spatial blocks, four grid origins — 35.2 to 82.5 (widest) — —
Terrain only (a decomposition, not an uncertainty) 87.2 % 3.2 [−18.6, 34.9] 59.4 % 0.3 [−3.2, 16.4]

8. Discussion

8.1 What the model measures, and how well

The model measures the sea-view potential of a façade at a floor. That quantity is well supported where the cadastre maps the buildings: LoD1 heights show no median bias against LiDAR, angles traced over LiDAR roofs inside the footprints agree closely with the model's, and the tracer agrees with a standard viewshed algorithm. It is biased upwards where structures the cadastre does not record stand in the way, by 6.1–9.0° of sea at the top floor of the pilot's buildings on average, and trees, left out of the default, are the largest single uncertainty.

Against photographs, the model ranks homes with and without a sea view well (AUC 0.80 against labels from AI models of two developers, with ties decided by the author, and 0.81 against the first-round labels), much better than distance to the sea or ground elevation; the buildings and the floor raise the ranking, though with these labels within sampling error. As a yes/no answer at 20° it is a sensitive screen with poor specificity (balanced accuracy 0.68), less specific than the sellers' checkbox, because the best façade of a building at a floor is not the view of every dwelling on it. The photographs validate neither the 20° threshold nor the share of dwellings that see the sea.

Building and dwelling figures are aggregations. The building figures say whether some dwelling at a level could see the sea; the dwelling figures depend on how dwellings are allocated to façades and floors, and range from 12 % to 45 % of the coast's dwellings under the scenarios tested (Tables 6 and 10). They are model outputs for comparison between areas and scenarios, not an inventory of who sees the sea.

As an application, higher-income census sections have more modelled view potential within municipalities, and on terrain alone that difference largely disappears. With an effective number of about two clusters, the size and precision of the association are uncertain, and they depend on representation: it is a descriptive, conditional association, and the decomposition is geometric, not an account of how planning or construction produced it.

8.2 Uses

The output is a set of attributes per building, façade and floor (sea extent, bearing and distance; mountain extent and dominant summit; openness; view façade), joinable to any dataset with a cadastral reference. Hedonic studies can include floor-level view variables for every transaction instead of sellers' declarations (Benson et al., 1998; Bourassa et al., 2004), and separate what is visible from what is near (Walls et al., 2015); because the scores rank better than they classify, they suit such continuous or ranked uses better than yes/no flags. Health studies can move from proximity to visibility of blue space at the home for whole cohorts (Nutsford et al., 2016; White et al., 2021). Planning can screen the façades where the view out matters most and measure the views a proposed building would take from those behind it by running the model with and without it; this is not a test of EN 17037 (CEN, 2018). If disclosed information changes prices (Pope, 2008), comparable view data for every dwelling, not only those advertised, is a public-interest product.

8.3 Limitations

8.4 Applying the method elsewhere

The Spanish cadastre records floors for every building part in the territory it covers, all of Spain except the Basque Country and Navarre, whose own cadastres publish equivalent data, and the IGN terrain models cover the whole country. At 9.6 core-hours per million buildings, a stock of ten million buildings would take about 100 core-hours in independent tiles. That the model runs is not that it is equally accurate: it has been tested on one coast of tall blocks and hillside houses, and dense historic centres, flat coasts and other building types need their own checks. Elsewhere, the method applies where footprints come with floor counts, which is the case in some national cadastres and in parts of harmonised collections such as EUBUCCO (Milojevic-Dupont et al., 2023), and not everywhere; where floors are missing, global LoD1 heights, with an error of about 4 m in Europe (Zhu et al., 2025), could stand in for them, untested here.

9. Conclusions

Sea-view potential by façade and floor can be computed for a whole region from two open datasets: cadastral footprints with floor counts and a national terrain model. Where the cadastre maps the buildings, its angles agree closely with a trace over LiDAR roofs; where it does not, and wherever trees stand, it overstates the sea. Against listing photographs labelled by AI models of two developers, with ties decided by the author, it ranks homes with and without a sea view with an AUC of 0.80, but as a yes/no answer it is a sensitive screen with poor specificity. Dwelling figures are scenarios, from 12 % to 45 % of the coast's dwellings with open-view potential, not measurements. As an application, higher-income census sections tend to have more modelled view potential within municipalities, with uncertain size and fragile inference, and on terrain alone the difference largely disappears. Linking dwellings to their floors with the cadastre's property records, a recent vegetation layer and an independent validation sample with verified floors and viewing directions are the next steps. Released by façade and floor, with their assumptions stated, these scores can become a reusable variable for research on housing, health and the built environment.

Data and code availability

The reviewer archive submitted with this paper (who-sees-the-sea-reviewer-archive.zip; SHA-256 in the submission letter) contains the whole release, and its README gives one command for each check. Code: the model; the scripts that reproduce every table and figure from the public inputs; a test area, shipped as plain GeoJSON, with its expected output; and the computational environment, with pinned versions and a lock file, under the MIT licence. Data: under CC BY 4.0, the view attributes of the 158,060 residential buildings per building and level; the degrees of sea of each of the 1,349,970 façade viewpoints and traced floors, with buildings, on terrain alone and with trees, with the 14-character cadastral reference, octant, free length and floor count of each façade (Section 4.4); the dwelling shares under every allocation scenario; the section-level table behind Tables 6 and 10 and Appendix A; and the LiDAR comparison of Section 7.2. Validation: for each of the 148 relabelled listings, under an anonymous code, the municipality, dwelling type, advertised floor, position precision, matching rule and distance, the first label, the five blinded labels (four of them with communal-view flags), the author's decision on ties, the reference label, and the model scores, which reproduce Tables 8 and 9 except the sellers' checkbox; the labelling protocol and prompt. The table carries no listing or building identifier, but its scores could be joined to the façade table to recover the buildings, so it is in the reviewer archive and is shared with editors and reviewers only, as are the listing identifiers, building matches and checkbox values, for audit; the public deposit carries the aggregated validation results. No listing photograph or text is redistributed. The inputs are open data of the Dirección General del Catastro, the Instituto Geográfico Nacional and the Instituto Nacional de Estadística, downloadable with the scripts; the archive lists the version, download date and SHA-256 checksum of every input file. A script reproduces the dwelling shares and the regressions M1 and M2 with their WCR intervals from the released tables alone, and the AUCs from the reviewer archive, in minutes on a laptop. The public release is deposited in Zenodo (https://doi.org/10.5281/zenodo.24106387) and linked from https://casas.es/en/research/who-sees-the-sea. The streets of the coast, each linked to its page at casas.es, are listed on the CASAS.ES open-data site.

Also available at

Competing interests

The author runs CASAS.ES, a free website with data on every building in Spain, which displays view scores derived from this model. No external funding was received.

Acknowledgements

The model uses data from the Dirección General del Catastro and the Instituto Geográfico Nacional (© IGN, licence compatible with CC BY 4.0); the analyses use the census sections and household income atlas of the Instituto Nacional de Estadística, and energy certificates from the Registro de Certificados Energéticos de Andalucía. Listing data were consulted on thinkSPAIN (thinkspain.com).

Declaration of generative AI use

The code, the analyses and the drafts of this paper were prepared with an AI assistant (Claude, Anthropic), and several AI models, among them Gemini (Google) and ChatGPT (OpenAI), were used to review the text and the code. Claude, Gemini and ChatGPT labelled the listing photographs of Section 7.3 in the first round, together with the author, who decided ties; Claude Opus 5.5, Claude Sonnet 5, Claude Haiku 4.5, Gemini 3.1 Pro and Gemini 3.8 Flash labelled them again under the blinded protocol of supplementary Section S5, and the author decided the 15 listings on which the Anthropic models and Gemini 3.1 Pro disagreed. All labels were made before any model output was joined to them. The author directed the work and is responsible for the content.

Appendix A. Complete regression results

Table A1 reports the estimates and inference of every model of Section 6.4 for the main outcome, Table A2 their other coefficients, samples and fit, Table A3 model M2 for other outcomes with and without buildings and their paired difference, and Table A4 the scenarios of Table 10 for any sea and the mean degrees of sea. Each section is assigned to the municipality that holds most of its dwellings. Bootstrap intervals can be asymmetric around the coefficient. With so few effective clusters, the WCR p-value need not be monotone in the hypothesised value: in one cell (terrain only, any sea, best façade; marked † in Tables A3 and A4), zero is rejected but values on both sides of it are not, so the set of values not rejected is not a single interval. M1 gives the association across the whole coast; M2 to M4 and M7 to M8 within municipalities, with different adjustments; M5 and M6 the association that remains once building age, type, height and ground elevation, partly channels, are held fixed. They are not bounds on one another.

Table A1. Section-level regressions of the share of dwellings with open-view potential (best façade, nearest traced floor, 20°; percent) on log section income: estimates and inference. Weighted least squares, one row per census section with at least 20 dwellings, weights = dwellings; FE: municipality fixed effects. Standard errors: HC1, clustered by municipality (CV1), leave-one-municipality-out (CV3) and Conley (Bartlett kernel, 5 km). 95 % intervals: restricted wild cluster bootstrap-t (WCR; 9,999 replications, Webb weights, interval by test inversion) with its p-value; unrestricted (WCU); CV3 with t(G − 1); and, for M2, square spatial blocks (499 draws, of which those where a fixed effect cannot be estimated are skipped; grid at the origin). G*: effective number of clusters (Carter et al., 2017); partial leverage: share of the leverage for log income held by Málaga. Specifications and fit in Table A2.
M1 M2 M3 M4 M5 M6 M7 M8
Specification Base FE FE + distance bands FE + non-main FE + controls FE + controls + non-main FE, without Málaga FE, 1–3 km only
Log income 30.2 52.5 53.9 47.6 16.5 17.4 73.5 53.1
SE, HC1 5.2 4.4 4.4 4.2 4.6 4.4 9.2 7.3
SE, clustered (CV1) 10.4 7.4 7.0 6.6 4.6 4.5 9.7 15.1
SE, CV3 33.7 20.8 14.9 17.6 4.5 10.6 10.2 60.0
SE, Conley (5 km) 10.6 9.3 — — 5.1 — — —
95 % CI, WCR −1.8 to 85.4 14.4 to 92.9 19.4 to 86.6 14.7 to 87.7 −6.2 to 37.0 −6.7 to 42.8 55.0 to 106.4 −140.6 to 147.4
p-value, WCR 0.054 0.026 0.021 0.027 0.098 0.073 0.002 0.172
95 % CI, WCU 8.8 to 51.7 26.4 to 78.5 — — 10.1 to 23.0 — — —
95 % CI, CV3 with t(G − 1) −40.0 to 100.5 9.1 to 95.8 22.7 to 85.0 10.8 to 84.4 7.1 to 26.0 −4.7 to 39.6 52.0 to 94.9 −77.5 to 183.8
95 % CI, 2.5 km spatial blocks — 37.3 to 67.7 — — — — — —
95 % CI, 5 km spatial blocks — 37.1 to 70.4 — — — — — —
95 % CI, 10 km spatial blocks — 40.3 to 91.2 — — — — — —
Effective clusters G* 2.6 2.2 2.3 2.2 2.3 2.2 7.0 1.6
Partial leverage of Málaga 0.60 0.66 — — 0.65 — — —
Moran's I of residuals (sections within 2 km) 0.85 0.27 — — 0.18 — — —
Table A2. The regressions of Table A1: other coefficients, samples and fit. Controls: mean year of construction (per year), share of dwellings in single-family houses (percent), mean floors, mean ground elevation (per 100 m); non-main dwellings: percent of dwellings that are not main residences in the 2021 census. Distance bands: < 250 m (reference), 250–500 m, 0.5–1 km, 1–2 km, 2–3 km, 3–5 km, > 5 km.
M1 M2 M3 M4 M5 M6 M7 M8
Specification Base FE FE + distance bands FE + non-main FE + controls FE + controls + non-main FE, without Málaga FE, 1–3 km only
Log distance to the sea −11.6 −6.3 bands −1.6 −17.7 −11.3 −7.8 15.3
Year built (per year) 0.98 0.88
% dwellings in houses 0.07 0.01
Mean floors 0.46 0.86
Mean ground elevation (per 100 m) 22.62 20.45
% non-main dwellings 0.62 0.56
Municipality fixed effects no yes yes yes yes yes yes yes
Sections 860 860 860 839 860 839 425 354
Municipalities 21 21 21 21 21 21 20 13
R² 0.18 0.53 0.53 0.62 0.64 0.71 0.41 0.62
Within-municipality R² — 0.21 0.22 0.38 0.39 0.52 0.18 0.21
Table A3. The income coefficient for other outcomes, with buildings and on terrain alone, and their paired difference (model M2). Points per unit of log income, or degrees for the mean sea extent. In brackets, WCR 95 % intervals (9,999 replications); the difference is the coefficient of the section-level difference between the two outcomes, with the same inference. †: the WCR p-value is not monotone in the hypothesised value here: zero is rejected (p = 0.017) but values from −8.7 to about −1.3 are not, so the set of values not rejected is two intervals (supplementary S6).
Outcome (nearest traced floor) Mean, model Coefficient, model [WCR] Mean, terrain only Coefficient, terrain only [WCR] Model minus terrain only [WCR]
Any sea (4° or more), best façade 58.3 % 62.5 [45.3, 92.5] 92.7 % 4.2 [−8.7, 20.3]† 58.3 [47.2, 73.0]
Open view (20° or more), best façade 42.4 % 52.5 [14.4, 92.9] 87.2 % 3.2 [−18.6, 34.9] 49.2 [32.2, 71.3]
Wide view (45° or more), best façade 29.3 % 37.1 [−4.6, 76.2] 77.2 % 12.2 [−13.2, 45.9] 24.8 [7.3, 44.8]
Mean degrees of sea, best façade 34.4° 39.4 [−2.8, 82.8] 94.9° 12.8 [−14.9, 43.0] 26.6 [23.6, 49.0]
Any sea (4° or more), length share 34.0 % 34.3 [20.3, 51.4] 69.6 % 0.6 [−6.3, 9.3] 33.7 [20.9, 47.2]
Open view (20° or more), length share 21.2 % 23.2 [8.6, 38.2] 59.4 % 0.3 [−3.2, 16.4] 22.9 [13.9, 31.8]
Wide view (45° or more), length share 11.8 % 12.4 [2.4, 22.5] 46.4 % 4.3 [−1.9, 13.6] 8.1 [4.3, 13.5]
Mean degrees of sea, length share 14.1° 13.9 [5.8, 23.0] 48.6° 0.4 [−7.0, 6.4] 13.4 [12.0, 24.6]
Table A4. The scenarios of Table 10 for any sea (4° or more) and for the mean degrees of sea: share of dwellings (or mean degrees) and M2 income coefficient with its WCR 95 % interval, under the two allocation rules. †: the WCR p-value is not monotone in the hypothesised value here: zero is rejected (p = 0.017) but values from −8.7 to about −1.3 are not, so the set of values not rejected is two intervals (supplementary S6).
Scenario Any sea, best façade Coef. [WCR] Any sea, length share Coef. [WCR] Mean degrees, best façade Coef. [WCR] Mean degrees, length share Coef. [WCR]
Default (Table 3) 58.3 % 62.5 [45.3, 92.5] 34.0 % 34.3 [20.3, 51.4] 34.4° 39.4 [−2.8, 82.8] 14.1° 13.9 [5.8, 23.0]
Floors of a façade within 1.5 m 54.9 % 61.4 [40.1, 93.5] 31.8 % 33.7 [19.5, 49.9] 30.5° 35.0 [−0.3, 73.4] 12.7° 12.6 [6.7, 19.1]
LiDAR trees at half height 53.8 % 54.1 [32.1, 90.7] 29.7 % 26.0 [16.0, 39.2] 30.4° 33.0 [−2.3, 71.7] 12.2° 10.6 [5.2, 17.2]
LiDAR trees, opaque 46.0 % 42.9 [23.4, 78.5] 23.4 % 16.3 [6.5, 24.9] 23.5° 22.7 [3.8, 51.9] 9.2° 6.1 [1.5, 8.9]
Field of view ± 60° 53.4 % 60.3 [35.7, 97.6] 24.9 % 24.8 [10.2, 40.9] 27.9° 33.6 [−4.4, 72.1] 9.5° 9.3 [3.2, 16.2]
Field of view ± 45° 51.3 % 59.1 [32.9, 97.9] 20.8 % 20.9 [8.7, 33.9] 23.0° 28.4 [−2.7, 60.3] 7.1° 7.0 [2.7, 12.0]
Sea extent weighted by distance (relative to 1 km) 46.2 % 54.9 [16.6, 93.8] 24.9 % 25.7 [9.2, 43.3] 21.7° 18.6 [0.9, 41.2] 8.9° 6.5 [−0.3, 12.3]
Combined: 1.5 m radius, own block opaque beyond 4 m, flat roofs, trees at half height 50.6 % 54.1 [22.8, 92.7] 26.6 % 23.6 [13.9, 34.5] 28.0° 32.3 [−7.1, 73.4] 10.8° 9.9 [5.1, 15.4]
The same combination with opaque trees 43.1 % 43.1 [15.4, 82.9] 20.8 % 14.7 [4.5, 22.0] 21.6° 22.2 [−2.2, 54.6] 8.0° 5.5 [0.1, 8.9]
Terrain only (decomposition) 92.7 % 4.2 [−8.7, 20.3]† 69.6 % 0.6 [−6.3, 9.3] 94.9° 12.8 [−14.9, 43.0] 48.6° 0.4 [−7.0, 6.4]

References

  1. Banzhaf, S., Ma, L., & Timmins, C. (2019). Environmental Justice: The Economics of Race, Place, and Pollution. Journal of Economic Perspectives, 33(1), 185–208. https://doi.org/10.1257/jep.33.1.185
  2. Bartie, P., Reitsma, F., Kingham, S., & Mills, S. (2010). Advancing visibility modelling algorithms for urban environments. Computers, Environment and Urban Systems, 34(6), 518–531. https://doi.org/10.1016/j.compenvurbsys.2010.06.002
  3. Benson, E. D., Hansen, J. L., Schwartz, A. L., & Smersh, G. T. (1998). Pricing Residential Amenities: The Value of a View. The Journal of Real Estate Finance and Economics, 16(1), 55–73. https://doi.org/10.1023/a:1007785315925
  4. Biljecki, F., Ledoux, H., & Stoter, J. (2016). An improved LOD specification for 3D building models. Computers, Environment and Urban Systems, 59, 25–37. https://doi.org/10.1016/j.compenvurbsys.2016.04.005
  5. Biljecki, F., Ledoux, H., & Stoter, J. (2017). Generating 3D city models without elevation data. Computers, Environment and Urban Systems, 64, 1–18. https://doi.org/10.1016/j.compenvurbsys.2017.01.001
  6. Biljecki, F., Stoter, J., Ledoux, H., Zlatanova, S., & Çöltekin, A. (2015). Applications of 3D City Models: State of the Art Review. ISPRS International Journal of Geo-Information, 4(4), 2842–2889. https://doi.org/10.3390/ijgi4042842
  7. Bond, M., Seiler, V., & Seiler, M. (2002). Residential Real Estate Prices: A Room with a View. Journal of Real Estate Research, 23(1-2), 129–138. https://doi.org/10.1080/10835547.2002.12091077
  8. Bourassa, S. C., Hoesli, M., & Sun, J. (2004). What's in a View? Environment and Planning A: Economy and Space, 36(8), 1427–1450. https://doi.org/10.1068/a36103
  9. Brueckner, J. K., Thisse, J.-F., & Zenou, Y. (1999). Why is central Paris rich and downtown Detroit poor? An amenity-based theory. European Economic Review, 43(1), 91–107. https://doi.org/10.1016/s0014-2921(98)00019-1
  10. Carter, A. V., Schnepel, K. T., & Steigerwald, D. G. (2017). Asymptotic Behavior of a t-Test Robust to Cluster Heterogeneity. The Review of Economics and Statistics, 99(4), 698–709. https://doi.org/10.1162/rest_a_00639
  11. Castro Noblejas, H., De Paola, P., & Vías Martínez, J. (2023). Landscape Value in the Spanish Costa del Sol's Real Estate Market: The Case of Marbella. Land, 12(5), 987. https://doi.org/10.3390/land12050987
  12. CEN (2018). EN 17037:2018 Daylight in buildings. European Committee for Standardization, Brussels.
  13. Conley, T. G. (1999). GMM estimation with cross sectional dependence. Journal of Econometrics, 92(1), 1–45. https://doi.org/10.1016/s0304-4076(98)00084-0
  14. Conroy, S. J., & Milosch, J. L. (2011). An Estimation of the Coastal Premium for Residential Housing Prices in San Diego County. The Journal of Real Estate Finance and Economics, 42(2), 211–228. https://doi.org/10.1007/s11146-009-9195-x
  15. De Floriani, L., & Magillo, P. (2003). Algorithms for Visibility Computation on Terrains: A Survey. Environment and Planning B: Planning and Design, 30(5), 709–728. https://doi.org/10.1068/b12979
  16. Dempsey, S., Devine, M. T., Gillespie, T., Lyons, S., & Nolan, A. (2018). Coastal blue space and depression in older adults. Health & Place, 54, 110–117. https://doi.org/10.1016/j.healthplace.2018.09.002
  17. Fisher, P. F. (1993). Algorithm and implementation uncertainty in viewshed analysis. International Journal of Geographical Information Systems, 7(4), 331–347. https://doi.org/10.1080/02693799308901965
  18. Fisher, P. F. (1994). Probable and fuzzy models of the viewshed operation. In Innovations in GIS, 161–175. https://doi.org/10.1201/9781003572800-15
  19. Gillespie, T., Lyons, R. C., & Hynes, S. (2024). The Value of a Sea View: Hedonic Estimates Using 3D Simulation and Natural Language Processing. Land Economics, 100(2), 278–295. https://doi.org/10.3368/le.100.2.071522-0056r
  20. Hamilton, S. E., & Morgan, A. (2010). Integrating lidar, GIS and hedonic price modeling to measure amenity values in urban beach residential property markets. Computers, Environment and Urban Systems, 34(2), 133–141. https://doi.org/10.1016/j.compenvurbsys.2009.10.007
  21. Harris, C. R., Millman, K. J., van der Walt, S. J., et al. (2020). Array programming with NumPy. Nature, 585(7825), 357–362. https://doi.org/10.1038/s41586-020-2649-2
  22. Haverkort, H., Toma, L., & Zhuang, Y. (2009). Computing visibility on terrains in external memory. ACM Journal of Experimental Algorithmics, 13. https://doi.org/10.1145/1412228.1412233
  23. Helbich, M., Jochem, A., Mücke, W., & Höfle, B. (2013). Boosting the predictive accuracy of urban hedonic house price models through airborne laser scanning. Computers, Environment and Urban Systems, 39, 81–92. https://doi.org/10.1016/j.compenvurbsys.2013.01.001
  24. Hindsley, P., Hamilton, S. E., & Morgan, O. A. (2013). Gulf Views: Toward a Better Understanding of Viewshed Scope in Hedonic Property Models. The Journal of Real Estate Finance and Economics, 47(3), 489–505. https://doi.org/10.1007/s11146-012-9365-0
  25. Hirt, C., Guillaume, S., Wisbar, A., Bürki, B., & Sternberg, H. (2010). Monitoring of the refraction coefficient in the lower atmosphere using a controlled setup of simultaneous reciprocal vertical angle measurements. Journal of Geophysical Research: Atmospheres, 115(D21). https://doi.org/10.1029/2010jd014067
  26. Jim, C. Y., & Chen, W. Y. (2009). Value of scenic views: Hedonic assessment of private housing in Hong Kong. Landscape and Urban Planning, 91(4), 226–234. https://doi.org/10.1016/j.landurbplan.2009.01.009
  27. Ko, W. H., Kent, M. G., Schiavon, S., Levitt, B., & Betti, G. (2022). A Window View Quality Assessment Framework. LEUKOS, 18(3), 268–293. https://doi.org/10.1080/15502724.2021.1965889
  28. Labib, S. M., Huck, J. J., & Lindley, S. (2021). Modelling and mapping eye-level greenness visibility exposure using multi-source data at high spatial resolutions. Science of The Total Environment, 755, 143050. https://doi.org/10.1016/j.scitotenv.2020.143050
  29. Lake, I. R., Lovett, A. A., Bateman, I. J., & Day, B. (2000). Using GIS and large-scale digital data to implement hedonic pricing studies. International Journal of Geographical Information Science, 14(6), 521–541. https://doi.org/10.1080/136588100415729
  30. Lam, S. K., Pitrou, A., & Seibert, S. (2015). Numba: a LLVM-based Python JIT compiler. Proceedings of the Second Workshop on the LLVM Compiler Infrastructure in HPC, 1–6. https://doi.org/10.1145/2833157.2833162
  31. Leeflang, M. M. G., Rutjes, A. W. S., Reitsma, J. B., Hooft, L., & Bossuyt, P. M. M. (2013). Variation of a test's sensitivity and specificity with disease prevalence. Canadian Medical Association Journal, 185(11), E537–E544. https://doi.org/10.1503/cmaj.121286
  32. Li, M., Xue, F., & Yeh, A. G. O. (2025). Efficient and accurate assessment of window view distance using City Information Models and 3D Computer Vision. Landscape and Urban Planning, 260, 105389. https://doi.org/10.1016/j.landurbplan.2025.105389
  33. Li, M., Xue, F., Wu, Y., & Yeh, A. G. O. (2022). A room with a view: Automatic assessment of window views for high-rise high-density areas using City Information Models and deep transfer learning. Landscape and Urban Planning, 226, 104505. https://doi.org/10.1016/j.landurbplan.2022.104505
  34. MacKinnon, J. G., & Webb, M. D. (2017). Wild bootstrap inference for wildly different cluster sizes. Journal of Applied Econometrics, 32(2), 233–254. https://doi.org/10.1002/jae.2508
  35. MacKinnon, J. G., Nielsen, M. Ø., & Webb, M. D. (2023a). Cluster-robust inference: A guide to empirical practice. Journal of Econometrics, 232(2), 272–299. https://doi.org/10.1016/j.jeconom.2022.04.001
  36. MacKinnon, J. G., Nielsen, M. Ø., & Webb, M. D. (2023b). Leverage, influence, and the jackknife in clustered regression models: Reliable inference using summclust. The Stata Journal, 23(4), 942–982. https://doi.org/10.1177/1536867x231212433
  37. Milojevic-Dupont, N., Wagner, F., Nachtigall, F., Hu, J., Brüser, G. B., Zumwald, M., Biljecki, F., Heeren, N., Kaack, L. H., Pichler, P.-P., & Creutzig, F. (2023). EUBUCCO v0.1: European building stock characteristics in a common and open database for 200+ million individual buildings. Scientific Data, 10(1), 147. https://doi.org/10.1038/s41597-023-02040-2
  38. Murgoitio, J., Shrestha, R., Glenn, N., & Spaete, L. (2014). Airborne LiDAR and Terrestrial Laser Scanning Derived Vegetation Obstruction Factors for Visibility Models. Transactions in GIS, 18(1), 147–160. https://doi.org/10.1111/tgis.12022
  39. Nutsford, D., Pearson, A. L., Kingham, S., & Reitsma, F. (2016). Residential exposure to visible blue space (but not green space) associated with lower psychological distress in a capital city. Health & Place, 39, 70–78. https://doi.org/10.1016/j.healthplace.2016.03.002
  40. Papke, L. E., & Wooldridge, J. M. (1996). Econometric methods for fractional response variables with an application to 401(k) plan participation rates. Journal of Applied Econometrics, 11(6), 619–632. https://doi.org/10.1002/(sici)1099-1255(199611)11:6%3C619::aid-jae418%3E3.0.co;2-1
  41. Paterson, R. W., & Boyle, K. J. (2002). Out of Sight, Out of Mind? Using GIS to Incorporate Visibility in Hedonic Property Value Models. Land Economics, 78(3), 417–425. https://doi.org/10.2307/3146899
  42. Peng, C., Xiang, Y., Huang, W., Feng, Y., Tang, Y., Biljecki, F., & Zhou, Z. (2025). Measuring the value of window views using real estate big data and computer vision: A case study in Wuhan, China. Cities, 156, 105536. https://doi.org/10.1016/j.cities.2024.105536
  43. Peters, R., Dukai, B., Vitalis, S., van Liempt, J., & Stoter, J. (2022). Automated 3D Reconstruction of LoD2 and LoD1 Models for All 10 Million Buildings of the Netherlands. Photogrammetric Engineering & Remote Sensing, 88(3), 165–170. https://doi.org/10.14358/pers.21-00032r2
  44. Pope, J. C. (2008). Buyer information and the hedonic: The impact of a seller disclosure on the implicit price for airport noise. Journal of Urban Economics, 63(2), 498–516. https://doi.org/10.1016/j.jue.2007.03.003
  45. Qiang, Y., Shen, S., & Chen, Q. (2019). Visibility analysis of oceanic blue space using digital elevation models. Landscape and Urban Planning, 181, 92–102. https://doi.org/10.1016/j.landurbplan.2018.09.019
  46. Rosen, S. (1974). Hedonic Prices and Implicit Markets: Product Differentiation in Pure Competition. Journal of Political Economy, 82(1), 34–55. https://doi.org/10.1086/260169
  47. Sander, H. A., & Polasky, S. (2009). The value of views and open space: Estimates from a hedonic pricing model for Ramsey County, Minnesota, USA. Land Use Policy, 26(3), 837–845. https://doi.org/10.1016/j.landusepol.2008.10.009
  48. Swietek, A. R., & Zumwald, M. (2023). Visual Capital: Evaluating building-level visual landscape quality at scale. Landscape and Urban Planning, 240, 104880. https://doi.org/10.1016/j.landurbplan.2023.104880
  49. Turan, I., Chegut, A., Fink, D., & Reinhart, C. (2021). Development of view potential metrics and the financial impact of views on office rents. Landscape and Urban Planning, 215, 104193. https://doi.org/10.1016/j.landurbplan.2021.104193
  50. Ulrich, R. S. (1984). View Through a Window May Influence Recovery from Surgery. Science, 224(4647), 420–421. https://doi.org/10.1126/science.6143402
  51. Virtanen, P., Gommers, R., Oliphant, T. E., et al. (2020). SciPy 1.0: fundamental algorithms for scientific computing in Python. Nature Methods, 17(3), 261–272. https://doi.org/10.1038/s41592-019-0686-2
  52. Vukomanovic, J., Singh, K. K., Petrasova, A., & Vogler, J. B. (2018). Not seeing the forest for the trees: Modeling exurban viewscapes with LiDAR. Landscape and Urban Planning, 170, 169–176. https://doi.org/10.1016/j.landurbplan.2017.10.010
  53. Walls, M., Kousky, C., & Chu, Z. (2015). Is What You See What You Get? The Value of Natural Landscape Views. Land Economics, 91(1), 1–19. https://doi.org/10.3368/le.91.1.1
  54. Wei, D., Li, M., Lu, Y., Niu, J., Ho, H. C., Lan, F., & Ren, C. (2026). Assessing the effect of window-view distance on mental health and personal well-being in high-density urban environments using city information models and deep learning algorithms. Sustainable Cities and Society, 149, 107801. https://doi.org/10.1016/j.scs.2026.107801
  55. White, M. P., Elliott, L. R., Grellier, J., Economou, T., Bell, S., Bratman, G. N., Cirach, M., Gascon, M., Lima, M. L., Lõhmus, M., Nieuwenhuijsen, M., Ojala, A., Roiko, A., Schultz, P. W., van den Bosch, M., & Fleming, L. E. (2021). Associations between green/blue spaces and mental health across 18 countries. Scientific Reports, 11(1), 8903. https://doi.org/10.1038/s41598-021-87675-0
  56. Wong, S. K., Chau, K. W., Yau, Y., & Cheung, A. K. C. (2011). Property price gradients: the vertical dimension. Journal of Housing and the Built Environment, 26(1), 33–45. https://doi.org/10.1007/s10901-010-9203-8
  57. Yasumoto, S., Jones, A. P., Nakaya, T., & Yano, K. (2011). The use of a virtual city model for assessing equity in access to views. Computers, Environment and Urban Systems, 35(6), 464–473. https://doi.org/10.1016/j.compenvurbsys.2011.07.002
  58. Yu, S.-M., Han, S.-S., & Chai, C.-H. (2007). Modeling the Value of View in High-Rise Apartments: A 3D GIS Approach. Environment and Planning B: Planning and Design, 34(1), 139–153. https://doi.org/10.1068/b32116
  59. Zhu, X. X., Chen, S., Zhang, F., Shi, Y., & Wang, Y. (2025). GlobalBuildingAtlas: an open global and complete dataset of building polygons, heights and LoD1 3D models. Earth System Science Data, 17(12), 6647–6668. https://doi.org/10.5194/essd-17-6647-2025

How to cite

CASAS.ES (2026). Who sees the sea? Sea-view potential by façade and floor from cadastral LoD1 models on the Costa del Sol. CASAS.ES Research working paper r121, version of 10 November 2026. https://casas.es/en/research/who-sees-the-sea

@techreport{casases2026whoseesthesea,
  author      = {{CASAS.ES}},
  title       = {{Who sees the sea? Sea-view potential by façade and floor from cadastral LoD1 models on the Costa del Sol}},
  institution = {CASAS.ES},
  type        = {CASAS.ES Research working paper},
  number      = {r121},
  year        = {2026},
  month       = {nov},
  url         = {https://casas.es/en/research/who-sees-the-sea},
  note        = {Version of 10 November 2026}
}

© 2026 CASAS.ES. Text and figures under CC BY 4.0. Contains data from the Dirección General del Catastro, © Instituto Geográfico Nacional and the Instituto Nacional de Estadística.