I have a KML file with multiple geometry, points and polygons. I want to convert it to a point Shapefile and a polygon Shapefile.

Using OSGeo4W Shell I tried this :

ogr2ogr -where "OGR_GEOMETRY='Point'" -f "ESRI Shapefile" D:\env\transit_points.shp D:\env\mosquee.kml
ogr2ogr -where "OGR_GEOMETRY='Polygon'" -f "ESRI Shapefile" D:\env\transit_polygon.shp D:\env\mosquee.kml

I get two empty LINE shapefiles with empty tables with nothing but the row names.

  • Don't know is this works but worth a shot : mygeodata.cloud/converter/kml-to-shp – enolan Jul 25 '18 at 15:04
  • Already tried it,not working. – Ayogo Jul 25 '18 at 16:02
  • 1
    Try QGIS. Add KML to the canvas. Export as a feature -> shape file. Then for Geometry select the points, and then do steps over and select polygons. – enolan Jul 25 '18 at 18:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.