I have a long list of .txt files that I need to convert to feature class. I can bring the table into ArcMap, right-click, Display X,Y Data, and it converts to a feature no problem.
Is anyone aware of a way to convert all of them at once, either in QGIS or ArcGIS? I was hoping to do this in ModelBuilder but there is no "tool" in the search option for Display XY Data.
Best Answer
You can do it using QGIS, this way:
Open QGIS and open the QGIS Python console (
Plugins->Python console
).Check the following Python code snippet. Adjust the lines below the block
Settings
(i.e.,myDir
,myTargetDir
,refSys
,separator
,xField
, andcyField
) to configure your own data:Copy the adjusted code snippet above and paste it into the QGIS Python console.
You should now have all your Shapefiles available in the folder
myTargetDir
, ready to be loaded to QGIS. If you have any trouble just let us all know.