FSX KML road problem

#1
Hi im trying to make roads for fsx in FSX KML. Everything compiles correctly but when I go into FSX the road just shows as a straight line and sharp turn at the end. This is happening with all roads i try to do. This has never happened to me before could somebody please help?

Thanks in advance!
 
#3
Too many to count i'll copy and paste what is in it:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
	<name>M1.kml</name>
	<Style id="sh_ylw-pushpin">
		<IconStyle>
			<scale>1.3</scale>
			<Icon>
				<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
			</Icon>
			<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
		</IconStyle>
	</Style>
	<Style id="sn_ylw-pushpin3">
		<IconStyle>
			<scale>1.1</scale>
			<Icon>
				<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href>
			</Icon>
			<hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
		</IconStyle>
	</Style>
	<StyleMap id="msn_ylw-pushpin5">
		<Pair>
			<key>normal</key>
			<styleUrl>#sn_ylw-pushpin3</styleUrl>
		</Pair>
		<Pair>
			<key>highlight</key>
			<styleUrl>#sh_ylw-pushpin</styleUrl>
		</Pair>
	</StyleMap>
	<Placemark>
		<name>M1</name>
		<visibility>0</visibility>
		<styleUrl>#msn_ylw-pushpin5</styleUrl>
		<LineString>
			<tessellate>1</tessellate>
			<coordinates>
				-6.22383070642334,53.35316201673881,0 -6.223472699478111,53.35348709976875,0 -6.223317013096644,53.35377509533105,0 -6.223285839466507,53.35411883971574,0 -6.223285809157641,53.35436039072109,0 -6.223425863350245,53.35463911075456,0 -6.22372157483972,53.35492712785187,0 -6.224251261049094,53.35520720858891,0 -6.225058677883146,53.35550112216707,0 -6.225711247354556,53.35570481020139,0 -6.226644942292222,53.35599324650234,0 -6.227359752504423,53.35619707767705,0 -6.22793588785542,53.35635538755695,0 -6.228957261234104,53.35659955415353,0 -6.229923524631669,53.35692486856915,0 -6.230450133215598,53.3575093385796,0 -6.231245411737905,53.35789073310804,0 -6.231776582233952,53.35829551871492,0 -6.233134052973099,53.35951884033833,0 -6.233605410158921,53.36037906586248,0 -6.233938418923545,53.36128917015067,0 -6.234297874470862,53.36266081103609,0 -6.234350681686054,53.36420482502514,0 -6.234275699771915,53.36510240129221,0 -6.234189159026196,53.36604332521602,0 -6.234301701396009,53.36685598729549,0 -6.23501116893034,53.3677352592719,0 -6.236640771101315,53.36947243737254,0 -6.237714751683312,53.37031104745435,0 -6.24069205289877,53.37173218545031,0 -6.242220308159161,53.3724868685294,0 -6.243070427411574,53.37341993416329,0 -6.243275564401399,53.37420598751704,0 -6.243649478158027,53.37533072682012,0 -6.243980648679752,53.37724412453936,0 -6.243922104763097,53.37846797558954,0 -6.243732735257941,53.37973537293565,0 -6.243732587754971,53.38022320934978,0 -6.243631029021998,53.38223070901709,0 -6.243422640831055,53.38321875712421,0 -6.243186933140938,53.38398063188139,0 -6.242998607963246,53.38500970937,0 -6.242858700654358,53.38646620060645,0 -6.242631245088766,53.38723723455604,0 -6.24245597211568,53.38806711981083,0 -6.241640645505225,53.39126694717861,0 -6.24131320473008,53.39291991898232,0 -6.240700620989237,53.39400396890189,0 -6.239918651835408,53.39555355742133,0 -6.238363926808388,53.39761812849019,0 -6.237535367622936,53.39859662784954,0 -6.235742179442722,53.40034452183595,0 -6.233310911236552,53.40282788041152,0 -6.231236188794735,53.40492464598216,0 -6.229969331676126,53.40605365134583,0 -6.228292305029525,53.40797022164409,0 -6.227023935447411,53.40942503264621,0 -6.225001730645011,53.41281943579622,0 -6.224003335772136,53.41467005092376,0 -6.222923746715105,53.41652421652285,0 -6.220202754445564,53.42184215166338,0 -6.217929375862649,53.42602187759924,0 -6.215163781579017,53.43081104216226,0 -6.213051614485371,53.43320083447913,0 -6.211156835675879,53.43533611544339,0 -6.208021345257734,53.43920587072243,0 -6.206574634782537,53.44153936305869,0 -6.204942951178976,53.44521444414661,0 -6.203445928000445,53.4484473295943,0 -6.202571725877374,53.45068872963404,0 -6.202563747097607,53.45295047871147,0 -6.203019409716454,53.45561847193583,0 -6.203917916503077,53.45885763061468,0 -6.203816859805206,53.46138495590608,0 -6.202860043687331,53.46622421221397,0 -6.202474711981267,53.46931257183179,0 -6.202696019266555,53.47233550678604,0 -6.203181888599661,53.47422129010849,0 -6.204743450658143,53.47740655202844,0 -6.205816436293734,53.47924802496848,0 -6.206763894896797,53.48229474339899,0 -6.206572825237143,53.48598126978463,0 -6.2058109295672,53.48823457110827,0 -6.202776124449661,53.49248312602199,0 -6.200873634069868,53.49587595516278,0 -6.200087792054056,53.49768927291363,0 -6.199896287358025,53.49942160794169,0 -6.199833433048449,53.50149090572665,0 -6.200022572541966,53.50367085458817,0 -6.201222617520994,53.50566404299947,0 -6.201916484339756,53.50783952721496,0 -6.204376690598,53.51102466286534,0 -6.207267877152466,53.51463860254894,0 -6.20808208116164,53.5171112819386,0 -6.208082814375279,53.51969659742561,0 -6.207451758272507,53.52231928492819,0 -6.20599876897185,53.52467483121837,0 -6.205616821967116,53.5277958703647,0 -6.206182065188795,53.5302285602649,0 -6.207692095864774,53.53243689512345,0 -6.209705719394782,53.53558101467183,0 -6.211923531222149,53.53901147745447,0 -6.213113453243565,53.54170249645071,0 -6.214679080589632,53.54528680219048,0 -6.21523855315232,53.54834268337199,0 -6.215541574309836,53.5524768375489,0 -6.215090170091322,53.55689202581649,0 -6.213152624730379,53.56604274137092,0 -6.210643432229662,53.57567624393069,0 -6.210201816348699,53.57889244147531,0 -6.210451079665686,53.58239445453098,0 -6.211392124017079,53.58608640018986,0 -6.212669395781933,53.58934290308062,0 -6.215998560965343,53.59388149825458,0 -6.221504013046566,53.59929192974644,0 -6.229746892200417,53.60549109520505,0 -6.237421585831537,53.61100182549803,0 -6.242271263795971,53.61543079580567,0 -6.244713682700615,53.61850644094176,0 -6.247028958721,53.62211069230423,0 -6.248736073835318,53.6257228814694,0 -6.249699972549953,53.62976857257074,0 -6.250523146314336,53.6330656360978,0 -6.251846596353695,53.63568224150123,0 -6.255809731896954,53.63910755928248,0 -6.263079293218104,53.64377896878988,0 -6.273661543321012,53.6477826773936,0 -6.29351332595777,53.65442905673587,0 -6.29967258474132,53.65625536143867,0 -6.315331559796552,53.65899534198501,0 -6.328762881839119,53.66229110665316,0 -6.339224950330085,53.66641486350714,0 -6.345556205303335,53.66978979668463,0 -6.35346315531891,53.67457816152045,0 -6.358939364931996,53.67920962235144,0 -6.362929879028949,53.68349827843333,0 -6.369476709063673,53.69085323744422,0 -6.374942059921133,53.69633264029871,0 -6.383315460929758,53.70195432323597,0 -6.391857848457372,53.70732118852305,0 -6.394668939709058,53.71054071395461,0 -6.39665206208845,53.71447599099631,0 -6.396588699824014,53.71927634747298,0 -6.396379676470788,53.72841879210375,0 -6.396579510376301,53.73220653501643,0 -6.397332121149294,53.73465342405062,0 -6.3987296908145,53.73845667487309,0 -6.401391977537296,53.74203313525776,0 -6.404664289252933,53.74514184243079,0 -6.408529015202178,53.74799340624744,0 -6.411254989117964,53.75076557954566,0 -6.413886678601228,53.75437597065218,0 -6.414523274428991,53.7572586958804,0 -6.414948249420048,53.76139867101289,0 -6.413657227725978,53.76590616447849,0 -6.409549717889509,53.77019740234143,0 -6.406933588906023,53.77410995848783,0 -6.404419607785635,53.77724855376335,0 -6.402078653231382,53.78213850235707,0 -6.399227930407283,53.80316015249674,0 -6.398876968009829,53.80750415645527,0 -6.399527029680242,53.81041705385867,0 -6.40133119700415,53.81699374470785,0 -6.404528242477108,53.82201333900103,0 -6.423773289668171,53.8491041282242,0 -6.427000698753883,53.85434183535416,0 -6.42894027333213,53.88181829789434,0 -6.4279260114349,53.88691973583899,0 -6.418951233194132,53.90521735848144,0 -6.416063768531702,53.91657392576106,0 -6.413039767094285,53.92644366750482,0 -6.412536352671316,53.92878009075508,0 -6.419146522209801,53.94670824784241,0 -6.419710996290469,53.95963598721749,0 -6.42301727026434,53.96649804168946,0 -6.42494095994558,53.97494408894094,0 -6.425892191559886,53.97752423399254,0 -6.434854602743256,53.98846681446536,0 -6.441386243882167,53.99774891272874,0 -6.444670156397385,54.0067838372166,0 -6.444312628805183,54.01536909439026,0 -6.438282630933927,54.02472302731324,0 -6.428974194507388,54.03093569804901,0 -6.419258319542014,54.03617859926079,0 -6.405448531819539,54.03645363308063,0 -6.391628200215629,54.03649064642153,0 -6.381895711504065,54.03696495726982,0 -6.375523861762506,54.03940783424332,0 
			</coordinates>
		</LineString>
	</Placemark>
</Document>
</kml>
I have checked some of these coordinate and they seem to be correct but if i look at the shape in FSX KML this is what i get:
 
Last edited:
#4
Hi,

I noticed that your road is called M1. But as far as I understand, your initial KML road shoud be called something like 3500 in GE, i.e. 4 digits and no characters.
Then afterwards you save it under another name so as to recognize it once compiled as a bgl.
You did do that?
 
#9
Hi,

It sure looks like the new version of GE makes its KML file in another way. I get the same straight line as you do.
There is only one thing to do for the time being and that is to copy the coordinates and paste them in an old style KML file.

Update: Nope, it must be something else. I made a KML path in Google Earth and loaded it in AIBTC (boat traffic).
It compiles fine and the vessel follows its route.
Have you compiled your freeway traffic and checked whether in FSX the traffic follows the road you drew in the KML file?
Maybe it is a bug in FSX KML or we are doing something wrong there or else FSX KML does not recognize the GE path anymore because of changes in the GE program?
 
Last edited:
#11
Hi,

Solved my problem by editing the kml file to look like this:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<kml xmlns="http://earth.google.com/kml/2.0">
<Document>
<name>File created with kml.KMLWriter</name>
<Placemark>
<name>5406</name>
<Style>
<LineStyle>
<color>ff0000ff</color>
<width>2</width>
</LineStyle>
</Style>
<LineString>
<tessellate>1</tessellate>
<coordinates>1.1200849525630474,39.0890514160022,0
1.1125438380986452,39.07547279226135,0
1.1022795271128416,39.052508810958074,0
1.0937261302024126,39.02960781863173,0
1.0917702969163656,39.00964931137052,0
1.08879036270082,38.98038643237434,0.0
1.087476164102554,38.975032369335366,0
1.1674586310982704,38.83154347989102,0
1.378342118114233,38.5707691154048,0

</coordinates>
</LineString>
<description>RoutesIbiza_roundtrip2</description></Placemark>

I had to add a space after the 0 altitude entries and then it worked.
 
#12
Hi I couldnt get the kml editing to work but i solved the problem anyway. Just googled a bit for the previous version, installed it and everything works fine. Thanks for your help :)
 
#13
You are welcome but I am not going back to a previous version of GE.
Hope this can also be fxed with an update of FSX KML!!!
And thus I hope the creator of the program still reads FSDeveloper threads once in a while :).
 
#15
Hi,

I solved the problem by using and old kml, delete the coordinates, change the name (number) and then just copy and paste the new coordinates into it. Save as kml under a different name and compile.
Upon checking your sample kml I notice you have saved your route as a name and not a number! In GE, you save as a number!
 
Last edited:
#17
I think we have reached a stalemate, Google will not make available an older version of GE and FSX KML seems to have been abandoned by the author and no source code released for others to pick it up and continue development.

I discovered that the new GE saves polygones in a different way, my polygones as interpreted by FSX KML were deformed. Further investigation revealed that the "new" polygons had a ZERO in the longitude of the first vertex and that the last vertex had 0 latitude and 0 longitude. This broke everything in FSX KML. Now one must manually delete the last (0,0) vertex and delete the first (0 longitude) or edit it so that it has a longitude different than zero. Only then the polygon takes the shape you gave to it in GE.

I haven't noticed that in polylines, they seem well shaped in my project, the problem I have is that they no longer show in FSX no matter what I do. I didn't have this problem before.
 
Top