<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texte de bulles Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        mso-fareast-language:EN-US;}
span.TextedebullesCar
        {mso-style-name:"Texte de bulles Car";
        mso-style-priority:99;
        mso-style-link:"Texte de bulles";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hello to all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I try to convert the following KML file into Shapefile format.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><i><span lang="EN-US"><?xml version="1.0" encoding="utf-8" ?><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"><kml xmlns="<a href="http://www.opengis.net/kml/2.2">http://www.opengis.net/kml/2.2</a>"><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"><Document><Folder><name>110m_lakes</name><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"><Schema name="110m_lakes" id="110m_lakes"><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <SimpleField name="Name" type="string"></SimpleField><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <SimpleField name="Description" type="string"></SimpleField><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <SimpleField name="ScaleRank" type="int"></SimpleField><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <SimpleField name="FeatureCla" type="string"></SimpleField><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <SimpleField name="Name1" type="string"></SimpleField><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <SimpleField name="Name2" type="string"></SimpleField><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"></Schema><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <Placemark><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <name>0</name><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <description>Lake</description><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <Style><LineStyle><color>ff0000ff</color></LineStyle> <PolyStyle><fill>0</fill></PolyStyle></Style><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <ExtendedData><SchemaData schemaUrl="#110m_lakes"><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <SimpleData name="Name">0</SimpleData><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <SimpleData name="Description">Lake</SimpleData><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <SimpleData name="ScaleRank">Lake Baikal</SimpleData><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <SimpleData name="Name1">0</SimpleData><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <SimpleData name="Name2">POLYGON</SimpleData><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> </SchemaData></ExtendedData><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> <Polygon><outerBoundaryIs><LinearRing><coordinates>106.57998579307912,52.799981594445541 106.53998823448521,52.939998887740373 107.0800069519353,53.180010077519981 107.2999935242018,53.379997870489532 107.59997521365611,53.519989325568218
108.03994835818912,53.859968573616456 108.37997928266967,54.259995835987837 109.05270307824526,55.027597561251326 109.19346967980832,55.535602728896592 109.50699059452313,55.730913804743722 109.92980716353523,55.712956244522303 109.70000206913326,54.980003567110515
109.66000451053935,54.719993598033952 109.47996382043448,54.339990953175658 109.31997358605884,53.819996853238692 109.22003136600637,53.619983222052994 108.99999311730755,53.780025132860928 108.60001753136845,53.439994208380398 108.800005324338,53.379997870489532
108.76000776574409,53.200008856816936 108.45997439985749,53.140012518926071 108.17999148970011,52.799981594445541 107.79996300662566,52.579995022179034 107.31999230349876,52.420004787803393 106.64003380740229,52.320010891318617 106.10001508995219,52.039976304728967
105.740037062607,51.759993394571595 105.24001590375084,51.520008043008133 104.81998986208251,51.460011705117267 104.30002160036167,51.500009263711178 103.76000288291161,51.600003160195953 103.62001142783291,51.73999461527464 103.85999677939637,51.85998729105637
104.39996382041414,51.85998729105637 105.05997521364597,52.000004584351203 105.48000125531431,52.280013332724707 105.98002241417046,52.519998684288169 106.26000532432784,52.619992580772944 106.57998579307912,52.799981594445541</coordinates></LinearRing></outerBoundaryIs></Polygon><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> </Placemark><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"></Folder></Document></kml><o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US">I use the command line for that : ogr2ogr -f "ESRI Shapefile" lake.shp lake.kml<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">The problem is I only get the attributes Name and Descriptio (after trunk) in the output Shapefile<span style="color:#1F497D">.<o:p></o:p></span></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">Attributes ScaleRank, Name12 and Name2 are missing.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">Do you have any explanation ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black">Please note, I </span>
<span lang="EN-US">have installed the LIBKML driver In GDAL/OGR (thanks to Frank for its help) :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><i><span lang="EN-US">D:\Data\ >ogr2ogr --formats<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US">Supported Formats:<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "ESRI Shapefile" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "MapInfo File" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "UK .NTF" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "SDTS" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "TIGER" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "S57" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "DGN" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "VRT" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "REC" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "Memory" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "BNA" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "CSV" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "GML" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "GPX" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "LIBKML" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "KML" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "GeoJSON" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "GMT" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "ODBC" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "PGeo" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "MSSQLSpatial" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "PCIDSK" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "XPlane" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "AVCBin" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "AVCE00" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "DXF" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "Geoconcept" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "GeoRSS" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "GPSTrackMaker" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "VFK" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "PGDump" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "GPSBabel" (read/write)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "SUA" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "OpenAir" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "PDS" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "HTF" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"> -> "AeronavFAA" (readonly)<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span lang="EN-US"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><span lang="EN-US">Thanks in advance for your help.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:black;mso-fareast-language:FR">Sébastien</span><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#2B3616;mso-fareast-language:FR"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>