Bab Jdid gateway and external fortified walls at the Kasbah of Mehdya

Mehdya’s digital survey connects fortress walls to their condition

At the Kasbah of Mehdya on Morocco’s Atlantic coast, researchers have combined drone surveys, mobile laser mapping and photographs to build a record of the fortress and its damaged buildings. The useful result is more than a convincing three-dimensional view: it connects the shape of a wall with information about its materials, history and condition.

The work also exposes a problem with ready-made digital landscapes. A generalised urban model may look plausible while leaving out building volumes or assigning unreliable heights. For conservation decisions at Mehdya, the research team found that those baselines needed checking against measurements taken at the site.

A fortress at a river mouth

Mehdya, also spelled Mahdiyya, stands near Kenitra, where the Sebou River meets the Atlantic. A kasbah is a fortified complex. Here, its position links a coastal stronghold to the river route into the Gharb plain and Morocco’s interior, rather than separating the monument from its landscape.

The Museum With No Frontiers’ historical account describes an Almohad shipyard in the twelfth century, Spanish occupation beginning in 1614 and Moulay Ismail’s recovery of the site in 1681. Much of the surviving enclosure reflects the Spanish fortress, subsequently modified under the Alaouite dynasty. The governor’s palace, mosque and monumental Bab Jdid gateway belong to that layered history. The Qantara heritage inventory likewise presents the complex as buildings adapted after capture, not an unchanged structure from one period.

That history makes recording the site a demanding task. Irregular walls, different construction phases and changes of use do not fit neatly into a model designed around uniform modern buildings. A smooth digital surface can conceal precisely the differences a conservation team needs to understand.

Different instruments answer different questions

A peer-reviewed paper published on 12 February 2026 describes field campaigns in 2024 and 2025 led by researchers from Italy’s National Research Council Institute of Heritage Science and the International University of Rabat. The institute’s KASVAL project record, published in November 2024, identifies those institutions as project leaders. Its conservation and management objectives should not be confused with a record of completed repairs.

The survey used complementary methods. Drone photographs supplied broad coverage of the terrain and principal structures. The 2025 aerial campaign also used LiDAR, a method that measures distances with laser pulses, to improve coverage in vegetated areas. At building scale, mobile laser mapping recorded selected spaces rather than one uninterrupted route through the whole complex.

That choice responded to the site itself. Uneven ground, disconnected buildings and restricted access made continuous mapping difficult. The team positioned these smaller surveys within the larger aerial reference framework. High-resolution photographs and spherical panoramas added visual information about surfaces and masonry that the laser data alone did not adequately show.

Two panoramic photographic views of Mehdya's mosque interior and governor's palace courtyard
Photographic panoramas of the mosque, above, and governor’s palace, below, recorded in May 2025. The curved appearance comes from the spherical photographs’ flat projection, not the buildings’ actual geometry. Figure 8 in Gigliarelli and colleagues. © Authors 2026, CC BY 4.0. Extracted JPEG, unchanged composition. Archive survey views, not evidence of today’s condition or access.

From measured points to a condition record

A point cloud is a set of measured positions describing a surface. Turning it into a useful conservation model requires decisions about what those positions represent: a wall, an arch, a construction phase or an area of damage. Heritage Building Information Modelling, usually shortened to HBIM, gives those elements a structured information record. A geographic information system, or GIS, relates them to their wider setting.

At Mehdya, the pipeline was first applied to the mosque and then extended to the governor’s palace. The study describes a technical inspection and preliminary damage mapping, including cracking associated with settlement, detached plaster, weakened binders and partially collapsed vaults. These are the team’s dated observations, not a new safety assessment by Sada Journal.

The connection between geometry and condition is the central contribution. A picture can show a crack. A structured record can place the observation on a particular element, relate it to material and construction information, and provide a basis for comparison during later inspections. That does not make the cause or progression of every defect automatically known.

Why an attractive model is not enough

The researchers compared generalised urban data with their survey-derived geometry and identified incomplete volumes and unreliable height information at architectural scale. They used the measured data to refine that baseline. The lesson is specific: data adequate for a broad landscape view may be inadequate for deciding what to do to an individual historic building.

The paper calls its results preliminary. It does not provide a numerical positional-error benchmark, a measured reduction in conservation costs or a before-and-after record demonstrating that repairs made the buildings safer. Its proposed WebGIS interface for consultation and collaborative updating remains a future development in the paper. So do extensions to more structures and additional diagnostic data.

This is not a reason to dismiss the survey. It defines what the work can support. The International Council on Monuments and Sites’ 2003 structural-conservation principles distinguish collecting evidence, diagnosing damage, choosing interventions and checking the results. Documentation is part of that process, not a substitute for all its later stages.

As with El Jadida’s fortress and cistern, understanding Mehdya means connecting buildings to their functions and alterations. The continuing care required at Ait-Ben-Haddou offers a different material context, but an important reminder: recording a monument and maintaining it are distinct jobs. At Mehdya, the digital survey’s value lies in making the first job more useful to the second.


Sources and method: This is a source-based explanation of published research, not a site visit, structural inspection or audit of completed conservation works. The full eight-page 2026 study, project record, heritage inventories and ICOMOS principles were inspected. The study’s fieldwork dates, preliminary findings and future plans are distinguished. No current access, repair completion, quantified accuracy or safety improvement is asserted.

Lead photograph: Bab Jdid and the external fortified walls, Figure 3 in Gigliarelli and colleagues’ 2026 paper. Photo credited to the authors; exact shutter date not supplied. © Authors 2026, CC BY 4.0. Extracted JPEG, unchanged composition; no generative imagery. Archive photograph, not a current condition report.

The Morocco Brief

One concise email each week: the Moroccan stories that matter, in English.

We don’t spam! Read our privacy policy for more info.