Open TheBango opened 3 months ago
Hi! I am encountering the same issue.
I have found the cause and will fix it soon.
@nonta1234 Thanks for your work! Would it be possible for you to add options to the OSM where users can select which kind of OSM Data they want to download (streets, highways, railways, rivers, etc.)? This way we should be able to reduce the file size and the download time.
There are still occasional errors with rotated grids. This might be an issue with the module I'm using. However, I was able to handle it for now. Regarding your question, I'm not familiar with Overpass QL, so I'm not sure if I can help you at this point. I'll consider it if I get a chance.
Sounds great, I'll give it a test. Regarding my request, I've already seen some hightmap generators in the past (they're abandoned as far as i know), I think skydark.pl was one of them, which had this option and so far I know they're open source. Maybe you can find some helpful information in their code. Anyways, it's just a suggestion and I hope you'll find a way to implement it to your generator. However it will end up, thanks for taking it into consideration!
@nonta1234 So downloading the OSM data seems to work now, but the file size (120 MB) is smaller than expected for an area of 57 km². However, I wasn't able to test the content of the file yet.
In some cases, data is clipped only to the necessary range. Also, it is decoded and encoded in order to clip and rotate, so this may be an effect.
What do you mean with necessary range and may I ask which kind of data the OSM data file provides?
Overpass also retrieves data slightly outside the requested range. For rotated grids, areas other than the required area will be cropped and removed. Also, the data being obtained is only requests to overpass-api.de, so I have not investigated the details.
Okay unfortunately, I don't understand that much in this regard 😅🙈 What I would like to know is if the OSM file contains data for the complete area (world heightmap) or only for the default playable area?
https://github.com/sysoppl/Cities-Skylines-heightmap-generator/blob/master/src/app.js Line 834, about osm download function.
I tried to download the OSM data of a selected area for CS2, but after some time of loading a "Oh no, something went wrong" page appears with following error code: STATUS_BREAKPOINT.
Can anyone confirm this issue or am I doing something wrong?