[Proj] ogr2ogr to convert KML files into ESRI Shapefiles?
Roger Oberholtzer
roger at opq.se
Thu Mar 3 06:50:33 EST 2011
As the subject says, I am trying to convert KML files into ESRI
Shapefiles. I use a command like this:
ogr2ogr -f "ESRI Shapefile" rst31_tyid2_2.shp rst31_tyid2_2.kml
I get the following error:
ERROR 1: Attempt to write non-point (LINESTRING) geometry to point shapefile.
ERROR 1: Terminating translation prematurely after failed
translation of layer DATA from RST (use -skipfailures to skip errors)
Indeed the kml file does have a <linestring/> component. It is a path
defined by WGS84 latitudes, longitudes and altitudes. I'm sensing this
is a problem for shapefiles. Is there a reasonable solution?
Yours sincerely,
Roger Oberholtzer
OPQ Systems / Ramböll RST
Office: Int +46 10-615 60 20
Mobile: Int +46 70-815 1696
roger.oberholtzer at ramboll.se
________________________________________
Ramböll Sverige AB
Krukmakargatan 21
P.O. Box 17009
SE-104 62 Stockholm, Sweden
www.rambollrst.se
More information about the Proj
mailing list