nonta1234 / terraining-heightmap-generator

Terraining - Online heightmap generator for "Cities: Skylines".
MIT License
26 stars 4 forks source link

[Issue] Downloading OSM Data Failed #22

Open TheBango opened 3 months ago

TheBango commented 3 months ago

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?

Groegi83 commented 3 months ago

Hi! I am encountering the same issue.

nonta1234 commented 3 months ago

I have found the cause and will fix it soon.

TheBango commented 3 months ago

@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.

nonta1234 commented 3 months ago

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.

TheBango commented 3 months ago

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!

TheBango commented 2 months ago

@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.

nonta1234 commented 2 months ago

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.

TheBango commented 2 months ago

What do you mean with necessary range and may I ask which kind of data the OSM data file provides?

nonta1234 commented 2 months ago

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.

TheBango commented 2 months ago

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?

1a57danc3 commented 2 weeks ago

https://github.com/sysoppl/Cities-Skylines-heightmap-generator/blob/master/src/app.js Line 834, about osm download function.