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

Simplify polygons

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,324
Country
netherlands
The features that are generated using the detect features step of scenProc are not simplified. Before these polygons would be a bit blocky because of the raster image that has been converted into the polygon. But with the simplification a more smooth polygon results. In the image below you can see an example without (left) and with (right) the simplification applied.

The simplification makes the polygons less complex and therefore also reduces the size of the AGN files. And with this simplification it also becomes possible to use the feature detect polygons for buildings. For the blocky polygons it was not possible to calculate the best fitting rectangle correctly, but for the simplified ones that no longer applies.

simplify.png


Continue reading...
 
Hi Arno, just wondering if this has been implemented yet in the developers release as yet or if it's still in the coding process? ;)
 
Hi Dean,

Yes, this thread is from the blog post where I announced that this feature was included. It's automatically used in the DETECTFEATURES step. There is no manual step to do the simplification now, I might be able to add that in the future.
 
Ah ok, thanks Arno. I was wondering if I could run the process over some .shp files I have that basically look like the example on the left and I'd love to reduce both the vertex count and smooth out the polygon. You gave me another idea though that might help me take a different approach :)
 
Hi Dean,

You can use the same logic on the command prompt with ogr2ogr as well (-simplify option). I use the OGR library for it.
 
Oh awesome, I'll give that a shot once I figure out this Windows Server 2012 R2 spb2xml error I'm getting
 
Back
Top