Help needed to generate an urban dataset

Hi all,

I have searched the internet and this forum, but couldn’t find a satisfying approach for my problem.
I would like to generate a dataset composed of small (say 256*256 meters, which I would like to control) square shaped maps with only buildings‘ position data, acquired from cities. I need a huge number of such samples, at least 1000, which makes it necessary to use some api/tool. However, I couldn’t determine which tool might help me. The map splitter tools that I could find don‘t give me the freedom to choose the size of squares, which is crucial for the project.

Any help would be greatly appreciated!