Answer: yes,it can be considered as an ecosystem
Explanation:
An ecosystem is the interaction between the living (biotic)and non living(abiotic) component of an environment.
This living component consist of animals, organism, plants etc
The non living component include; climate,soil, mountain etc
With this definiton, we can deduct that the middle of a city with undeveloped area can be considered as an ecosystem