I have an ASCII file with the following columns : ID, longitude, latitude, value
Is it possible to use OGR (ogr2ogr or ogrinfo) in command line in order to open the ASCII file and convert it to a shapefile (in WGS84) using the point coordinates (X field=longtitude, Y field=latitude) ?
What I want to do is similar with what QGIS does when opening an ascii file with "Delimited Text" and defining the geometry (point coordinates).
I want to do that for a high number of files so I want to know if this is possible in OGR.
I finally tried the following:
ogr2ogr -f "ESRI Shapefile" test.shp input.csv -oo X_POSSIBLE_NAMES=lon -oo Y_POSSIBLE_NAMES=lat -oo KEEP_GEOM_COLUMNS=NO
but I get an error Unable to open datasource test.shp with the following drivers