When i try to export an shapefile to gpx using ogr2ogr.
ogr2ogr -f GPX output.gpx D:\mypaste\input.shp -sql "SELECT Id AS name FROM layername"
It gives me the following error "Failed to create GPX file output.gpx." "GPX driver failed to create output.gpx." Does anyone knows why this happens? How can i rectify this?

