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