Capacity expansion optimisation is a widely used techno-economic analysis particularly on topics related to climate change mitigation and renewable energy transition. Using optimisation models to investigate capacity expansion in regions that potentially require significant grid infrastructure development requires incorporation of grid expansion problem within the optimisation. This study presents the development of SELARU, a spatially explicit optimisation model that incorporates the economies of scale of grid expansion using contextualized geographical feature to form the model's high-resolution spatial units. The model is used to investigate the case study of Indonesia using various spatial treatments to demonstrate the impact of detailed spatial depiction of grid expansion. Results reveal significant difference in renewable energy deployment trajectory (up to 2272 % increase in new generation capacity) between high-resolution spatial depiction of grid expansion vis-à-vis non spatially explicit energy system optimisation. Due to its high-resolution, SELARU also generates detailed information on the geographical extent of grid expansion requirement, which provides more realistic insights on governance challenges of renewable energy transition. Careful consideration of spatial representation is crucial when optimisation model is used to evaluate scenarios that concern technology selection such as renewable energy deployment or climate change mitigation.