[gdal-dev] Problem with ogrinfo and KML files
Chaitanya kumar CH
chaitanya.ch at gmail.com
Tue Jan 18 12:09:06 EST 2011
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.costantini at 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.ch at 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.costantini at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20110118/d9ae7e37/attachment.html
More information about the gdal-dev
mailing list