• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Making a KML LOD grid does not complete after 24hrs

Messages
115
Country
australia
Can someone run this code and tell me how long it takes as it never completed for me running the 22/10/2016 Dev version of scenProc:

(this is virtually straight from the manual)

Code:
CreateRectangle|Tasmania
#
SplitGrid|AGN|*
PlacePointAtCenterPolygon|*|String;obj|center|0
AddAttribute|FTYPE="POINT"|String;name|TILELOD
#
MergeGrid
#
ExportOGR|*|KML|grid.kml|grid

The progress bar gets to about 70% and goes no further, but it takes a while to get to that point. It does not get to the point of creating or overwriting the file (if it already exists). Smaller areas work (substitute "Tasmania" with "Hobart" and all works OK.

cheers

Braedon
 
Hi,

Like I mentioned in the other thread I did also see that sometimes for bigger areas it seems to get stuck. If I use a smaller area it works. I think it's a bug in the SplitGrid code. I'll try to reproduce it.
 
Hi,

You do realize you are creating almost 2 million gridcells with this script? I think Google Earth will come to a crawl with that (it was slow with an even smaller area for me already).

But I think I have found a way to optimize the SplitGrid step. I have been able to reduce it to around 3 minutes running time on my PC now for the SplitGrid step. The other steps also take some minutes, but within 15 minutes should be possible. I'll push it to the development release tonight.
 
Hi Arno - my earlier problem with SplitGrid seemed to boil down to the number of vertices contained in the geometry of one of the files I loaded. Does that make sense? However, the coverage area was also massive. I was loading 4 files but took out the file which I felt had too many vertices and SplitGrid ran (slowly) and completed in a decent amount of time - well, at least it didn't hang! :oops:
ian
 
Last edited:
Yes, that can also be the problem. Complex and big polygons take more effort to split.

But here the polygon is just a rectangle with 4 vertices.
 
Braedon,

I'm also not sure why Tasmania returns almost 2 million cells. Sounds like the extends might not be correct, since the area is not that huge. I have to check that later.
 
Hi,

The name search is not so accurate. It uses OpenStreetMap, but the bounding box returned if often quite big. For example for Tasmania you get this:

http://nominatim.openstreetmap.org/search.php?q=Tasmania&polygon=1&viewbox=

Probably due to the island in the south that is part of Tasmania as well.

Similarly for the Netherlands I get a huge area as well, due to some Caribbean islands:

http://nominatim.openstreetmap.org/search.php?q=netherlands&polygon=1&viewbox=

So maybe it is better sometimes to specify the bounding box coordinates yourself.
 
Back
Top