I am trying to convert KML to shapefile.
I'm using ogr2ogr (gdal version = 2.0.0). Here is the command:
/home/vineet/Project/gdal-2.0.0/bin/ogr2ogr --config SHAPE_ENCODING UTF-8 -update -append output.shp /home/vineet/Desktop/rail.kml -nln output -nlt GEOMETRY
I have all three ways mentioned here: ogr2ogr kml to shp conversion created 184 shapefiles?! What am I missing?
And each time its giving me same error:
Warning 6: Normalized/laundered field name: 'description' to 'descriptio' Warning 6: Field timestamp create as date field, though DateTime requested. Warning 6: Field begin create as date field, though DateTime requested. Warning 6: Field end create as date field, though DateTime requested. Warning 6: Normalized/laundered field name: 'altitudeMode' to 'altitudeMo' FAILED: Layer output already exists, and -append not specified. Consider using -append, or -overwrite. ERROR 1: Terminating translation prematurely after failed translation of layer Professional Leagues (use -skipfailures to skip errors)
Any idea why ogr is giving me these errors?
Any other way to directly dump KML to PostGIS (all data in single table)