通过Excel更改KML线颜色

时间:2018-07-23 02:55:44

标签: excel computer-science kml

我在kml有点新手,我正在尝试使用styleurl更新线条颜色。当我通过excel运行并尝试对其进行操作时,当我在GE中对其进行测试时,所有颜色都会丢失。有趣的一点是样式URL确实更改为我请求的样式,但是我丢失了所有颜色。任何帮助表示赞赏!

<Placemark>
<name>SLUCIR00280**C</name>
<description><![CDATA[<p>NLFID: SLUCIR00280**C
<br/>ODOT_DISTR: 02`enter code here
<br/>COUNTY_CD: LUC
<br/>COUNTY: LUCAS
<br/>CTL_BEGIN_: 0.0
<br/>CTL_END_NB: 5.75
<br/>LRS_PERP_Y: PyQt4.QtCore.QDate(2015, 7, 16)
<br/>SEGMENT_LE: 5.75
<br/>NAME: NW280
<br/>ROUTE_TYPE: IR
<br/>ROUTE_SUFF: *
<br/>ROUTE_PRIO: 1
<br/>NOTES: None
<br/>created_us: TIMS@DOTICSQLP31.TIMS_PRODAG
<br/>created_da: PyQt4.QtCore.QDate(2017, 11, 2)
<br/>last_edite: TIMS@DOTICSQLP31.TIMS_PRODAG
<br/>last_edi_1: PyQt4.QtCore.QDate(2017, 11, 2)
<br/>SHAPE_STLe: 12384.4009712
<br/>ODOT Winter Roads_field_1: NULL
<br/>ODOT Winter Roads_Garage: NORTHWOOD OUTPOST
<br/>ODOT Winter Roads_Lat: NULL
<br/>ODOT Winter Roads_field_4: NULL
<br/>ODOT Winter Roads_Conditions: Wet
<br/>ODOT Winter Roads_Conditions Number: 2
<br/>ODOT Winter Roads_field_7: IR
<br/>ODOT Winter Roads_field_8: 280
<br/>ODOT Winter Roads_Road Conditions: NULL
<br/>ODOT Winter Roads_field_11: NULL
<br/>ODOT Winter Roads_field_12: NULL
<br/>ODOT Winter Roads_field_13: NULL
<br/>ODOT Winter Roads_field_14: NULL
<br/>ODOT Winter Roads_field_15: NULL
<br/>ODOT Winter Roads_field_16: NULL]]></description>
<ExtendedData>
<Data name="NLFID"><displayName>NLFID</displayName><value><![CDATA[SLUCIR00280**C]]>            </value></Data>
<Data name="ODOT_DISTR"><displayName>ODOT_DISTR</displayName><value><![CDATA[02]]></value></Data>
<Data name="COUNTY_CD"><displayName>COUNTY_CD</displayName><value><![CDATA[LUC]]></value></Data>
<Data name="COUNTY"><displayName>COUNTY</displayName><value><![CDATA[LUCAS]]></value></Data>
<Data name="CTL_BEGIN_"><displayName>CTL_BEGIN_</displayName><value><![CDATA[0.0]]></value></Data>
<Data name="CTL_END_NB"><displayName>CTL_END_NB</displayName><value><![CDATA[5.75]]></value></Data>
<Data name="LRS_PERP_Y"><displayName>LRS_PERP_Y</displayName><value><![CDATA[PyQt4.QtCore.QDate(2015, 7, 16)]]></value></Data>
<Data name="SEGMENT_LE"><displayName>SEGMENT_LE</displayName><value><![CDATA[5.75]]></value></Data>
<Data name="NAME"><displayName>NAME</displayName><value><![CDATA[NW280]]></value></Data>
<Data name="ROUTE_TYPE"><displayName>ROUTE_TYPE</displayName><value><![CDATA[IR]]></value></Data>
<Data name="ROUTE_SUFF"><displayName>ROUTE_SUFF</displayName><value><![CDATA[*]]>    </value></Data>
<Data name="ROUTE_PRIO"><displayName>ROUTE_PRIO</displayName><value><![CDATA[1]]></value></Data>
<Data name="NOTES"><displayName>NOTES</displayName><value><![CDATA[None]]></value></Data>
<Data name="created_us"><displayName>created_us</displayName><value><!    [CDATA[TIMS@DOTICSQLP31.TIMS_PRODAG]]></value></Data>
<Data name="created_da"><displayName>created_da</displayName><value><![CDATA[PyQt4.QtCore.QDate(2017, 11, 2)]]></value></Data>
<Data name="last_edite"><displayName>last_edite</displayName><value><![CDATA[TIMS@DOTICSQLP31.TIMS_PRODAG]]></value></Data>
<Data name="last_edi_1"><displayName>last_edi_1</displayName><value><![CDATA[PyQt4.QtCore.QDate(2017, 11, 2)]]></value></Data>
<Data name="SHAPE_STLe"><displayName>SHAPE_STLe</displayName><value><![CDATA[12384.4009712]]></value></Data>
<Data name="ODOT Winter Roads_field_1"><displayName>ODOT Winter Roads_field_1</displayName><value><![CDATA[NULL]]></value></Data>
<Data name="ODOT Winter Roads_Garage"><displayName>ODOT Winter Roads_Garage</displayName><value><![CDATA[NORTHWOOD OUTPOST]]></value></Data>
<Data name="ODOT Winter Roads_Lat"><displayName>ODOT Winter Roads_Lat</displayName><value><![CDATA[NULL]]></value></Data>
<Data name="ODOT Winter Roads_field_4"><displayName>ODOT Winter Roads_field_4</displayName><value><![CDATA[NULL]]></value></Data>
<Data name="ODOT Winter Roads_Conditions"><displayName>ODOT Winter Roads_Conditions</displayName><value><![CDATA[Wet]]></value></Data>
<Data name="ODOT Winter Roads_Conditions Number"><displayName>ODOT Winter Roads_Conditions Number</displayName><value><![CDATA[2]]></value></Data>
<Data name="ODOT Winter Roads_field_7"><displayName>ODOT Winter Roads_field_7</displayName><value><![CDATA[IR]]></value></Data>
<Data name="ODOT Winter Roads_field_8"><displayName>ODOT Winter Roads_field_8</displayName><value><![CDATA[280]]></value></Data>
<Data name="ODOT Winter Roads_Road Conditions"><displayName>ODOT Winter Roads_Road Conditions</displayName><value><![CDATA[NULL]]></value></Data>
<Data name="ODOT Winter Roads_field_11"><displayName>ODOT Winter Roads_field_11</displayName><value><![CDATA[NULL]]></value></Data>
<Data name="ODOT Winter Roads_field_12"><displayName>ODOT Winter Roads_field_12</displayName><value><![CDATA[NULL]]></value></Data>
<Data name="ODOT Winter Roads_field_13"><displayName>ODOT Winter Roads_field_13</displayName><value><![CDATA[NULL]]></value></Data>
<Data name="ODOT Winter Roads_field_14"><displayName>ODOT Winter Roads_field_14</displayName><value><![CDATA[NULL]]></value></Data>
<Data name="ODOT Winter Roads_field_15"><displayName>ODOT Winter Roads_field_15</displayName><value><![CDATA[NULL]]></value></Data>
<Data name="ODOT Winter Roads_field_16"><displayName>ODOT Winter Roads_field_16</displayName><value><![CDATA[NULL]]></value></Data>
</ExtendedData>
<styleUrl>#style2</styleUrl>
<LineString>
    <tessellate>1</tessellate>
    <coordinates>
        -83.4769050818,41.6183781925,0.00000
        -83.4769393166,41.6190590572,0.00000
        -83.476931256,41.6202735131,0.00000
        -83.4769295698,41.6219056547,0.00000
        -83.4769316629,41.6222851986,0.00000
        -83.4769354673,41.6229751332,0.00000
        -83.4769513396,41.6245161689,0.00000
        -83.4769292464,41.625185695,0.00000
        -83.4769512174,41.6258286602,0.00000
        -83.4770097346,41.6263641373,0.00000
        -83.4771140479,41.6267729965,0.00000
        -83.4772368242,41.6271412108,0.00000
        -83.4773650911,41.6274498311,0.00000
        -83.4775539834,41.6277793951,0.00000
        -83.4778559763,41.6282461981,0.00000
        -83.4782822575,41.6287453372,0.00000
        -83.4787070663,41.6291420603,0.00000
        -83.4790894405,41.6294581389,0.00000
        -83.4791865286,41.6295190039,0.00000
        -83.4793970155,41.6296509607,0.00000
        -83.4798931614,41.6299303799,0.00000
        -83.4803887942,41.6301740723,0.00000
        -83.4815224097,41.6306245595,0.00000
        -83.4825655972,41.6309685834,0.00000
        -83.4836522713,41.6313355953,0.00000
        -83.4846619076,41.6316827255,0.00000
        -83.4855777616,41.6320015633,0.00000
        -83.4863249182,41.6322908113,0.00000
        -83.4864711819,41.6323598623,0.00000
        -83.4867117526,41.6324734365,0.00000
        -83.4873610611,41.6328015917,0.00000
        -83.4878415996,41.6330953984,0.00000
        -83.4884833067,41.6335546203,0.00000
        -83.4888332598,41.6338210966,0.00000
        -83.4892515845,41.6342009752,0.00000
        -83.4896772216,41.6346476744,0.00000
        -83.4900873052,41.6351159363,0.00000
        -83.4904071414,41.635492042,0.00000
        -83.4909499448,41.636133095,0.00000
        -83.4913555638,41.6366044828,0.00000
        -83.4914506136,41.6367149438,0.00000
        -83.4923175984,41.6377518651,0.00000
        -83.4928664241,41.6384254532,0.00000
        -83.4934802753,41.6391445136,0.00000
        -83.4940741111,41.6397970391,0.00000
        -83.4945416842,41.6402838671,0.00000
        -83.4949406655,41.6406402491,0.00000
        -83.4951979906,41.6408644109,0.00000
        -83.4958054925,41.641364368,0.00000
        -83.496233166,41.6417276546,0.00000
        -83.49641503,41.6419054277,0.00000
        -83.4964747994,41.6419638528,0.00000
        -83.4967259243,41.6421975904,0.00000
        -83.4969978192,41.6425478723,0.00000
        -83.4972021644,41.6428391634,0.00000
        -83.4973926225,41.6431022905,0.00000
        -83.4976353275,41.6435739891,0.00000
        -83.4976979167,41.6437016107,0.00000
        -83.4977761043,41.6438610417,0.00000
        -83.4979493354,41.6441954646,0.00000
        -83.4981532161,41.64467017,0.00000
        -83.498366204,41.6451162166,0.00000
        -83.4985655456,41.6454980619,0.00000
        -83.4988005197,41.6459272504,0.00000
        -83.4991432943,41.6464440911,0.00000
        -83.4993850328,41.6468013479,0.00000
        -83.4997907686,41.647395855,0.00000
        -83.5001087021,41.6478505528,0.00000
        -83.5009324518,41.6490084909,0.00000
        -83.5016071998,41.6499675771,0.00000
        -83.5018300341,41.6502962158,0.00000
        -83.5020988154,41.6506320826,0.00000
        -83.5023939892,41.6509852747,0.00000
        -83.5026494719,41.6512951857,0.00000
        -83.5030331073,41.6516802505,0.00000
        -83.503419921,41.6520652867,0.00000
        -83.5037254452,41.6523223741,0.00000
        -83.5039268834,41.6524928313,0.00000
        -83.5041017504,41.6526408024,0.00000
        -83.5045966879,41.6530344606,0.00000
        -83.5052421931,41.6535149934,0.00000
        -83.5055706279,41.6537689788,0.00000
        -83.5058333663,41.6539721569,0.00000
        -83.5059391995,41.6540575371,0.00000
        -83.5065405704,41.6545426813,0.00000
        -83.5067691925,41.6547527643,0.00000
        -83.5071237944,41.6551047109,0.00000
        -83.5073335779,41.6553292419,0.00000
        -83.507529337,41.6555519398,0.00000
        -83.5076308098,41.6556673745,0.00000
        -83.5079993634,41.65610257,0.00000
        -83.5084686739,41.6566917475,0.00000
        -83.5087703344,41.6571132094,0.00000
        -83.5088528034,41.6572271742,0.00000
        -83.5089519396,41.6573641751,0.00000
        -83.5092240654,41.6577215693,0.00000
        -83.5095190991,41.6581240289,0.00000
        -83.510348669,41.6592270608,0.00000
        -83.5116094653,41.6608919027,0.00000
        -83.5125921359,41.6622690207,0.00000
        -83.5128938827,41.6626928507,0.00000
        -83.5133254909,41.6633037612,0.00000
        -83.5136246398,41.6637657227,0.00000
        -83.5136976108,41.6638913621,0.00000
        -83.5138104913,41.6640857204,0.00000
        -83.5140718553,41.6645694363,0.00000
        -83.5143410363,41.6652003009,0.00000
        -83.5144254537,41.6653806129,0.00000
        -83.514542064,41.6658469597,0.00000
        -83.5146344243,41.6662868403,0.00000
        -83.5146440183,41.6663365255,0.00000
        -83.5147239657,41.666750564,0.00000
        -83.5147287546,41.6668123253,0.00000
        -83.5147594051,41.6672075967,0.00000
        -83.5147872439,41.6677933193,0.00000
        -83.5147965684,41.6680743527,0.00000
        -83.5148046263,41.6683171983,0.00000
        -83.5148312164,41.6688195621,0.00000
        -83.5148456362,41.6693577581,0.00000
        -83.5148438989,41.6694056774,0.00000
        -83.5148388925,41.6695436059,0.00000
        -83.5148582458,41.6701147299,0.00000
        -83.514905914,41.6708140199,0.00000
        -83.5149119768,41.6710811326,0.00000
        -83.5149143142,41.6711841197,0.00000
        -83.5149424054,41.6717865116,0.00000
        -83.5149722465,41.6725056022,0.00000
        -83.5150089427,41.6732579809,0.00000
        -83.5150623062,41.6738506301,0.00000
        -83.5151309456,41.6744026579,0.00000
        -83.515200221,41.6750019983,0.00000
        -83.5152329439,41.6752518985,0.00000
        -83.5153940568,41.676482238,0.00000
        -83.5154446418,41.67710111,0.00000
        -83.5154977269,41.6776747045,0.00000
        -83.5155344635,41.6782174713,0.00000
        -83.5155634494,41.6791297811,0.00000
        -83.5155886373,41.6799224634,0.00000
        -83.5156278487,41.6810535405,0.00000
        -83.5156807766,41.6826751724,0.00000
        -83.5157099988,41.6839873553,0.00000
        -83.5157380702,41.6847993473,0.00000
        -83.5157042001,41.6852632805,0.00000
        -83.5155126631,41.6862946976,0.00000
        -83.5154080049,41.6869434556,0.00000
        -83.5153551031,41.6872297293,0.00000
        -83.5152880457,41.6875677441,0.00000
        -83.5152694308,41.6876615746,0.00000
        -83.5151769313,41.688163776,0.00000
        -83.5150183993,41.6886780519,0.00000
        -83.514910173,41.6889050673,0.00000
        -83.514777251,41.6891501956,0.00000
        -83.5145440655,41.6895132241,0.00000
        -83.5143475716,41.6897582602,0.00000
        -83.5141159122,41.6899912535,0.00000
        -83.5138713648,41.6902124463,0.00000
        -83.5135886155,41.6904291954,0.00000
        -83.5131277942,41.6907439813,0.00000
    </coordinates>
</LineString>
</Placemark>

0 个答案:

没有答案