Massimo,<br><br>Check if your configure script recognised the expat library.<br>This is what I got for "ogrinfo -al -so a.kml":<br>Had to open data source read-only.<br>INFO: Open of `a.kml'<br> using driver `KML' 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["WGS 84",<br> DATUM["WGS_1984",<br> SPHEROID["WGS 84",6378137,298.257223563,<br>
AUTHORITY["EPSG","7030"]],<br> TOWGS84[0,0,0,0,0,0,0],<br> AUTHORITY["EPSG","6326"]],<br> PRIMEM["Greenwich",0,<br> AUTHORITY["EPSG","8901"]],<br>
UNIT["degree",0.0174532925199433,<br> AUTHORITY["EPSG","9108"]],<br> AUTHORITY["EPSG","4326"]]<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"><<a href="mailto:massimo.costantini@gmail.com">massimo.costantini@gmail.com</a>></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' with the following drivers.<br>
...<br>
-> KML<br>
...<br>
<br>
i tryed on this:<br>
<br>
<?xml version="1.0" encoding="UTF-8"?><br>
<kml xmlns="<a href="http://www.opengis.net/kml/2.2" target="_blank">http://www.opengis.net/kml/2.2</a>"><br>
<Document><br>
<name>Paths</name><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;"> </LineString><br>
</Placemark><br>
</Document><br>
</kml><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>
<<a href="http://chaitanya.ch" target="_blank">chaitanya.ch</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>> wrote:<br>
> Massimo,<br>
><br>
> Do you see KML in the list of formats shown when you run the command<br>
> "ogrinfo --formats"?<br>
> What was the error message you got? Can you provide a sample file?<br>
><br>
> On Tue, Jan 18, 2011 at 6:54 PM, massimo costantini<br>
> <<a href="mailto:massimo.costantini@gmail.com">massimo.costantini@gmail.com</a>> wrote:<br>
>><br>
>> Hi,<br>
>> I've try to analize KML files with ogrinfo but it seems to not<br>
>> recognize the format. Gdal is compiled with expat support.<br>
>> Someone can tell me the reason and the solution for this problem?<br>
>><br>
>> thanks<br>
>><br>
>> Massimo Costantini<br>
>> _______________________________________________<br>
>> gdal-dev mailing list<br>
>> <a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
><br>
><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>