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

Polygon with multiple Holes

mendiola_loyola

Resource contributor
Messages
520
Country
peru
Dear MatthewS:

Is there a way to create a polygon with multiple holes in FSXKML?

I just want to have one kml with a polygon and make n holes on it with another polygons.

For example if i have a water polygon and i have 10 island polygons, how can i make the 10 holes on the polygon?

Is there a kml example with nested kml folder and polygons to avoid to have a lot of kml files for each polygon i design? (.kml)

Thanks.
Alfredo Mendiola Loyola
Lima Perú
 
Dear MatthewS:

Is there a way to create a polygon with multiple holes in FSXKML?

I just want to have one kml with a polygon and make n holes on it with another polygons.

For example if i have a water polygon and i have 10 island polygons, how can i make the 10 holes on the polygon?

Is there a kml example with nested kml folder and polygons to avoid to have a lot of kml files for each polygon i design? (.kml)

Thanks.
Alfredo Mendiola Loyola
Lima Perú


You should be able to do this... (Make sure you use the latest version 1.05.1)

In Google Earth

1) Draw your water polygon
2) Draw your multiple island polygons
3) Save your KML file

In FSX KML

4) Open the the KML file
5) Tag the water polygon
6) Tag all the island polygons with POLYGONHOLE tag
7) Make sure all the island polygons appear underneath the water polygon. This is because FSX KML associates the polygon holes with the preceding polygon.
8) Ensure the ReversePointsInPolygonHoles build option is on. Because GE writes all polygons in a clockwise direction, we need FSX KML to reverse the order of points in holes, because this is needed by the Shp2Vec sdk tool.
9) Build

Having done that you should find your lake has lots of islands.

Also... I'm not sure why you are using multiple KML files. I just create a folder in Google Earth for my project (called say "MyProject"), and then create all my polygons (and sub folders) in that MyProject folder. Then I simply save that one MyProject folder as MyProject.KML. So irrespective of how many folders or polygons I have in my project I just have a single KML file.


Please let me know if you don't get it working and I will upload an example KML with lake and multiple islands. I cant do it at the moment because I'm not at home and don't have access to FSX.
 
Dear Matthew, thanks for your help and for your useful tool, congratulations.

Alfredo Mendiola Loyola
Lima Perú
 
Dear MatthewS:

Is there a way to create a polygon with multiple holes in FSXKML?

I just want to have one kml with a polygon and make n holes on it with another polygons.

You can do that. The only thing we cannot do, is put an island inside an island. Isn't that correct? I think I read somewhere, where a person cannot put an PolygonHole tagged item inside another PolygonHole tagged item.

An example would be, an island with a pond in it. Can this be done?
 
You can do that. The only thing we cannot do, is put an island inside an island. Isn't that correct? I think I read somewhere, where a person cannot put an PolygonHole tagged item inside another PolygonHole tagged item.

An example would be, an island with a pond in it. Can this be done?

The pond would be a polygon. The pond polygon would be positioned within a hole in another (separate) polygon.

-Doug
 
Yes... Doug is right. Here is a screen shot and the attached KML file.
 

Attachments

  • island with lake.jpg
    island with lake.jpg
    33.9 KB · Views: 618
  • island test 2.zip
    island test 2.zip
    2.4 KB · Views: 633
Back
Top