I seen a few examples of that throughout Asia and India but none quite so extreme. We are wrapped in cotton wool here, people just make things work in other places.
Would be a million forms for each stall, then the land owner...
What it is really is an 'architecture of necessity'. People doing what they need to do to live and get by and it really does work without the sugar coatings and OTT safety we have here.
I'm pretty certain that that is Maha Chai, about 45 minutes by Train from Bangkok. It really is like that. Mind you, it's far worse in Dhaka, Bangladesh, where the poor eat, live & sleep on the tracks.
I lived in Thailand for 3yrs and you get the train out of BKK Hua Lamphong station and trundle through the slums for hours, in any direction and see scenes like that, obviously from a window so you don't see that perspective of the market.
We used to like getting the train between BKK and Prachinburi where we lived, it took about 3-4hrs normally, but one time the train stopped for about 1hr or more, eventually I got fed up an wandered to the front - there was no engine, no-one seemed concerned and said there was an emergency elsewhere!!!
Meanwhile check this out from the Bridge on the River Kwai and imagine it being built by emaciated POWs in WWII