Massimo,<br><br>Check if your configure script recognised the expat library.<br>This is what I got for &quot;ogrinfo -al -so a.kml&quot;:<br>Had to open data source read-only.<br>INFO: Open of `a.kml&#39;<br>      using driver `KML&#39; successful.<br>
<br>Layer name: Paths<br>Geometry: 3D Line String<br>Feature Count: 1<br>Extent: (-112.265697, 36.079550) - (-112.254928, 36.086496)<br>Layer SRS WKT:<br>GEOGCS[&quot;WGS 84&quot;,<br>    DATUM[&quot;WGS_1984&quot;,<br>        SPHEROID[&quot;WGS 84&quot;,6378137,298.257223563,<br>
            AUTHORITY[&quot;EPSG&quot;,&quot;7030&quot;]],<br>        TOWGS84[0,0,0,0,0,0,0],<br>        AUTHORITY[&quot;EPSG&quot;,&quot;6326&quot;]],<br>    PRIMEM[&quot;Greenwich&quot;,0,<br>        AUTHORITY[&quot;EPSG&quot;,&quot;8901&quot;]],<br>
    UNIT[&quot;degree&quot;,0.0174532925199433,<br>        AUTHORITY[&quot;EPSG&quot;,&quot;9108&quot;]],<br>    AUTHORITY[&quot;EPSG&quot;,&quot;4326&quot;]]<br>Name: String (0.0)<br>Description: String (0.0)<br><br><br>
<div class="gmail_quote">On Tue, Jan 18, 2011 at 7:15 PM, massimo costantini <span dir="ltr">&lt;<a href="mailto:massimo.costantini@gmail.com">massimo.costantini@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
KML is in the list of supported formats.<br>
<br>
the error is:<br>
Unable to open datasource `comuni2001.kml&#39; with the following drivers.<br>
...<br>
-&gt; KML<br>
...<br>
<br>
i tryed on this:<br>
<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>
&lt;kml xmlns=&quot;<a href="http://www.opengis.net/kml/2.2" target="_blank">http://www.opengis.net/kml/2.2</a>&quot;&gt;<br>
  &lt;Document&gt;<br>
    &lt;name&gt;Paths&lt;/name&gt;<br>
 </blockquote><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">     &lt;/LineString&gt;<br>
    &lt;/Placemark&gt;<br>
  &lt;/Document&gt;<br>
&lt;/kml&gt;<br>
<br>
and on a KML file created by ogr2ogr from a shape file<br>
<div><div></div><div class="h5"><br>
On Tue, Jan 18, 2011 at 2:36 PM, Chaitanya kumar CH<br>
&lt;<a href="http://chaitanya.ch" target="_blank">chaitanya.ch</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>&gt; wrote:<br>
&gt; Massimo,<br>
&gt;<br>
&gt; Do you see KML in the list of formats shown when you run the command<br>
&gt; &quot;ogrinfo --formats&quot;?<br>
&gt; What was the error message you got? Can you provide a sample file?<br>
&gt;<br>
&gt; On Tue, Jan 18, 2011 at 6:54 PM, massimo costantini<br>
&gt; &lt;<a href="mailto:massimo.costantini@gmail.com">massimo.costantini@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt; I&#39;ve try to analize KML files with ogrinfo but it seems to not<br>
&gt;&gt; recognize the format. Gdal is compiled with expat support.<br>
&gt;&gt; Someone can tell me the reason and the solution for this problem?<br>
&gt;&gt;<br>
&gt;&gt; thanks<br>
&gt;&gt;<br>
&gt;&gt; Massimo Costantini<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; gdal-dev mailing list<br>
&gt;&gt; <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
&gt;&gt; <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
&gt;<br>
&gt;<br clear="all"></div></div></blockquote></div><br>-- <br>Best regards,<br>Chaitanya kumar CH.<br>/tʃaɪθənjə/ /kʊmɑr/ <br>+91-9494447584<br>17.2416N 80.1426E<br>