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
  • 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

There is a solution for this. You can do it in landviewer as it is able to work with KML, SHP, geoJSON, CSV, WMS as well as viewing various RGB combinations and different derived products from source data - multispectral indices (as products of a higher level of processing). There would be no need to convert KML into SHP and you can download it in the selected format with ease and later export to a 3rd party app if needed.

enter image description here

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.