da-za
Notes About Credits da-za.com
← Back

The Making of the Urban Scanner Prototype

24 October 2026

GIS

There is something magnificent and absolutely ridiculous about trying to fit Ahmedabad into a computer. The city has crowded market, missing pavements, strange artefacts, shortcuts and a refusal to behave like a clean dataset. I wanted to see what patterns are visible within all this chaos. Instead, i learnt why a beautiful map can tell a bad story.

It all began with a medium post on Overture Maps and City2Graph. I started by turning street segments and buildings into a graph of connected nodes and edges. The software analysis could give me the network, but it could not tell me whether anyone enjoyed walking on the street. Geometry is not behavior, and a model is not an observation.

The urban scanner for Ahmedabad come into its own after a number of changes in both data sources and the way in which the data was handled. It began with the overture maps pilot for Navrangpura. The overture maps were then swapped for Google Research Open Buildings V31. After filtering for confidence, repairing geometry and discarding small fragments, there were 17,847 footprints (for Navrangpura). This was a decent amount of polygons to start. One of the main concerns was whether the computer I was using could work with that amount of data without bogging everything down. The polygons themselves were just shapes. They did not represent anything substantial. There was no way of knowing who lived in those buildings or what its purpose was, whether it was a school or a restaurant. The difference between a footprint and an actual building inventory mattered because a high detection confidence is not proof that the data is complete.

How close is anything?

Straight lines and paths were useless since people can not fly, or walk through walls. By using OpenStreetMap and OSMnx, I was able to make a usable graph. This became the basis for a 5, 10, and 15 minute accessibility isochrones2. After this, a 1.6km acquisition buffer was used to download POI data3 from OpenStreetMap. Around 852 points were downloaded and it looked impressive until the records revealed only 35 food and 8 civic destinations. This is an important caveat, and that is that the database did not have the representative number of records4.

The next dataset I added was satellite data. Landsat and Sentinel-2 provided the land-surface-temperature and vegetation indicators5. This data set allowed for some interesting layers to be generated, especially in the context around buildings and urban areas. However, it is important to remember that a hot surface is not a sweating pedestrian6, and a green pixel is not usable shade7. Since its a relative measure, the percentile changes as the comparison metrics change. This is an important caveat to remember when using these datasets.

In order to make the map accessible, i first got the map precomputed and built using MapLibre/Vite as a local webmap. I had done the calculations beforehand8, while the browser displayed the results. Putting an indicator on the building did not make it a building level measurement. I used PlanX to develop the centrality, tessellations and other spatial analysis. Space Syntax ran for 30 minutes without any output and had to be stopped. I did test that it works on a much smaller sample and that worked so I was pretty confident that I would be able to run it on the graph of Ahmedabad’s OSM streets (though i did not consider that it would take 28 hours to complete).

Now that the pilot was successful, it was time to include all of Ahmedabad into the analysis (and website)

An approximate boundary of 651.84 km² was selected. This included the ring roads surrounding Ahmedabad as well as Gandhinagar, and the space in between. It was not the official boundary of the AMC9. The new data source contained 1,077,523 building footprints, and the citywide GeoJSON file was roughly 390MB. While this file size was fine for QGIS, it bogged down the web-app. The solution for this was to start using PMTiles for the selective download and display of the shapes at different scales10. The fields of the building layer were separated to another point layer that would be queried when needed. This resulted in a building layer that was reasonably quick to load on a browser considering that it had barely been optimised.

The next step was adding transit data. For this I used GTFS data which was easy enough to add. This data showed the planned and scheduled routes, but local conditions differ quite a bit. Buses are often late or cancelled. But it was easy enough to prepare an accessibility area map which showed the bus routes available within a 5 minute walk from the selected bus stop, as well as within 15 minute walk from all potential stops on those routes.

Another feature that I wanted to add was a summary of all the statistics that would show up when a user placed a circle of 400m, 800m, or 1200m on the map, or clicked on any of the TP-schemes polygons. For this I needed each statistic to have its own valid denominator11. Another aspect was that the spatial selection12 needed to be treated differently for each layer. Here, a simple spatial join13 was not enough.

It wasn’t enough to just get the statistics. I wanted it composed and print-ready. A part of the thinking behind it was to ensure that the information presented is representative of the data. The A3 landscape sheet required quite a bit of iterating to figure out what needed to be shown on the sheet. Not everything could fit, and since it was a prototype, i figured that a summary was good enough. Maybe the next iteration could let the user select what data needs to come onto the sheet.

The final web package had reached 2,392 files, about 500mb. It was originally 1.2gb. A lot of it had been trimmed to make it fit within Github’s constraints. The next step was to verify and deploy the site, which i had done using Github Pages. The package is public. Feel free to go through the code and what not. Check out the Handbook.md file for a detailed process documentation. Its not perfect, but it is what it is.

There are a few lessons I learnt through this process.

  1. keep the provenance14
  2. freeze the inputs15
  3. be explicit about what failed
  4. never mistake calculations as a description of urban life.

The scanner is not Ahmedabad but rather a machine for asking Ahmedabad better questions, and if everything works out well, helping someone make better judgements.16

    • W. Sirko, S. Kashubin, M. Ritter, A. Annkah, Y.S.E. Bouchareb, Y. Dauphin, D. Keysers, M. Neumann, M. Cisse, J.A. Quinn. Continental-scale building detection from high resolution satellite imagery. arXiv:2107.12283, 2021.

    ↩

  1. An isochrone is a polygon representing the area reachable from a given point within a specified travel time, using a transport network. ↩

  2. Point of Interest (POI) data is structured information representing specific physical locations such as stores, restaurants, parks, and transit hubs ↩

  3. Volunteered geographic information contains uneven mapping effort. A search that returns only a handful of facilities tells us how many matching records were retrieved, not necessarily how many facilities exist. Zero results, unavailable fields and failed queries have different meanings. ↩

  4. Land-surface temperature and NDVI observe different surface characteristics, neither of which directly measures pedestrian experience ↩

  5. Landsat land-surface temperature reflects surface thermal conditions; it is not near-ground air temperature, thermal comfort or heatwave exposure. ↩

  6. NDVI expresses vegetation-related reflectance; it is not a direct measurement of tree shade, public access or biodiversity. ↩

  7. The space-syntax analysis took close to 28 hours to complete. ↩

  8. This is important for later, as each layer takes its own boundary extents. Most layers do overlap at the central part of Ahmedabad. ↩

  9. other file formats included FlatGeobuf which allowed for selective spatial readings, and GeoTIFF which holds raster grids, allowing for partial downloads of raster data. ↩

  10. for example, if a profile contains 1000 mapped points, but has only 600 valid building height values, then the statistic should not say that it represents 1000 measured heights. A null value means unavailable, not zero. ↩

  11. for example, centroid selection, intersection clipping, union and masking each produces different outputs. The rules for selection and measurement need to be fixed before the results are calculated. ↩

  12. a spatial join assigns information using a geometric relationship. ↩

  13. A spatial statistic cannot be meaningfully interpreted or reproduced without its origin and processing history. ↩

  14. Reproducibility requires preservation of inputs, software versions, CRS, thresholds, filters, transformations and output audits. ↩

  15. Good modelling produces structured evidence and identifies where further observation or institutional information is needed. ↩

Backlinks

  • GIS
hello@da-za.com +91 9833975767
© 2026 Daniel Neville D'Souza RSS