zlsa / atc

https://openscope.co/
342 stars 107 forks source link

How to generate terrain GeoJSON files? #278

Closed harp71 closed 7 years ago

harp71 commented 8 years ago

Hi, can somebody tell me how to make a geojson for an airport? I tried to get it from the SBGL files and pull requests, but i didn´t. The files seem to be generated and not written by hand, just looking at the complexity. Where do i get the data for my area and how to i convert it into a geojson-file for my airport?

zlsa commented 8 years ago

I think @culebron is working on this ATM.

harp71 commented 8 years ago

@culebron can you explain how to create a terrain map for ATC please :)

culebron commented 8 years ago

@harp71 I'm stuck with writing it.

If you like to play with GIS software, I can explain briefly: use QGIS. Take DEM files (SRTM3 - 3 arcsecond is enough), get contours with 305 m steps (or 1000 ft) preserving elevations in contours. Transform contours to polygons, then simplify them. Some use Ramer-Douglas algorithm (there are such plugins), but it makes very sharp ugly lines. I just expanded polygons (buffer) and then contracted them by 350 meters. Also remove small polygons. After that, I saved this file as GeoJSON, reducing digits to save disk space.

Technically speaking, you need QGIS with some plugins, and save it as GeoJSON in the end.

I've written a half of the long recipe already, give me some time please.

harp71 commented 8 years ago

@culebron thanks for the short version, i´ll try to figure it out with the new infos.

erikquinn commented 8 years ago

It probably won't be as accurate as 3-arc-second data, but we could always just use Google's elevation data (as shown in Google Maps), which you can pull to google sketchup, and from there it's pretty easy to get it into autocad, where exporting to csv is "easy-peasy-lemon-squeezy" via the dataextraction function... An example of this technique on getting the data and drawing the lines is here.

Still plenty of tedious work, but it is manageable.

MaicomMR commented 8 years ago

I try to follow the @culebron steps but I'm stuck, I download the topo images from earthexplorer.usgs.gov, but dont know go ahead, we need a tutorial for this :stuck_out_tongue_winking_eye:

headphase commented 8 years ago

Hey guys I've made a simple terrain overlay for kjfk (no buildings yet) but something is messed up with the coordinates; it is sitting too far to the East and a tad bit North of where it should be. When I check it against a geojson validator website it sits perfectly where it should. Any ideas @culebron ? Which CRS projection method should I be using?

Also if someone could explain how to get the terrain key and colors that are currently used on the KSFO map that would be great!

capture

erikquinn commented 7 years ago

The ATC repository is being migrated to it's new home at https://github.com/openscope/openscope, and thus, all issues are being closed. If this is still an issue with the latest version of the sim (accessible at http://www.openscope.co), or is a feature you still think we are lacking, please reopen the issue at the new repo.

Please note that the vast majority of these issues have been copied to the new repository, or else are covered by other issues created there. See the below screenshot for what it looks like when your issue is known in the new repo:

image

Thank you!

Closing this issue.