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> <description>Examples of paths. Note that the tessellate tag is by default set to 0. If you want to create tessellated lines, they must be authored (or edited) directly in KML.</description> <Style id="yellowLineGreenPoly"> <LineStyle> <color>7f00ffff</color> <width>4</width> </LineStyle> <PolyStyle> <color>7f00ff00</color> </PolyStyle> </Style> <Placemark> <name>Absolute Extruded</name> <description>Transparent green wall with yellow outlines</description> <styleUrl>#yellowLineGreenPoly</styleUrl> <LineString> <extrude>1</extrude> <tessellate>1</tessellate> <altitudeMode>absolute</altitudeMode> <coordinates> -112.2550785337791,36.07954952145647,2357 -112.2549277039738,36.08117083492122,2357 -112.2552505069063,36.08260761307279,2357 -112.2564540158376,36.08395660588506,2357 -112.2580238976449,36.08511401044813,2357 -112.2595218489022,36.08584355239394,2357 -112.2608216347552,36.08612634548589,2357 -112.262073428656,36.08626019085147,2357 -112.2633204928495,36.08621519860091,2357 -112.2644963846444,36.08627897945274,2357 -112.2656969554589,36.08649599090644,2357 </coordinates> </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