FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > Scenery Design - Terrain Design > FSX KML

FSX KML Use this forum for your questions about the FSX KML tool

Reply
 
Thread Tools Display Modes
  #1  
Old 21 Jan 2007, 11:12
mendiola_loyola mendiola_loyola is offline
  peru
Location: Lima, Perú
Join Date: Oct 2006
Posts: 264
Lightbulb Polygon with multiple Holes

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ú
Reply With Quote
  #2  
Old 21 Jan 2007, 15:58
MatthewS MatthewS is offline
  australia
Location: Sydney
Join Date: Sep 2006
Posts: 333
Quote:
Originally Posted by mendiola_loyola View Post
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.
Reply With Quote
  #3  
Old 21 Jan 2007, 19:20
mendiola_loyola mendiola_loyola is offline
  peru
Location: Lima, Perú
Join Date: Oct 2006
Posts: 264
Thumbs up

Dear Matthew, thanks for your help and for your useful tool, congratulations.

Alfredo Mendiola Loyola
Lima Perú
Reply With Quote
  #4  
Old 22 Jan 2007, 18:16
Mace Mace is offline
  us-missouri
Location: Cape Girardeau, Missouri
Join Date: Dec 2006
Posts: 997
Quote:
Originally Posted by mendiola_loyola View Post
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?
__________________
Rhett, callsign 'Mace'
Reply With Quote
  #5  
Old 22 Jan 2007, 18:40
DougMatthews DougMatthews is offline
  us-washington
Location: Woodinville, WA
Join Date: Oct 2006
Posts: 290
Quote:
Originally Posted by Mace View Post
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
Reply With Quote
  #6  
Old 22 Jan 2007, 19:01
MatthewS MatthewS is offline
  australia
Location: Sydney
Join Date: Sep 2006
Posts: 333
Yes... Doug is right. Here is a screen shot and the attached KML file.
Attached Thumbnails
Click image for larger version

Name:	island with lake.jpg
Views:	180
Size:	33.9 KB
ID:	1579  
Attached Files
File Type: zip island test 2.zip (2.4 KB, 269 views)
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying texture from polygon to polygon Fern GMax and 3DS Max 7 15 Apr 2009 11:54
Using a project multiple times scubakobe FSDS 3 24 Dec 2006 08:24
Flickering problem with GMAX polygon fsthai GMax and 3DS Max 3 20 Jul 2006 14:43
FS2002 polygon animation Shagster22 GMax and 3DS Max 2 17 Mar 2006 07:29
Texture alignment on the polygon. albertoa Airport Design General 9 14 Sep 2004 22:36


All times are GMT -4. The time now is 00:18.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.