csv files into geodatabase

299
2
05-13-2022 08:17 PM
MitchellMoore
New Contributor

Hello, 

lets say i have 6 .csv files into a folder. I'd like to convert them into point feature classes within a geodatabase. how can write a python script without using existing geoprocessing tools? I know I have to hard code the fields but how i can loop it? any example/tips would be appreciated. thanks!

0 Kudos
2 Replies
MichaelVolz
Esteemed Contributor

Do the csv files have fields available that can be used to create a point shape (e.g. lat-long, northing-easting?

If not, do you have a field(s) that can be used to geocode the data to create a point feature class?

0 Kudos
BlakeTerhune
MVP Regular Contributor

@MitchellMoore wrote:

...how can write a python script without using existing geoprocessing tools? ...


Sorry, I'm a little confused by this. Could you elaborate what you mean about not using existing geoprocessing tools? Also, as @MichaelVolz mentioned, you need a field in your CSV data that can be located (coordinates) or geocoded (address, placename, intersection, etc).

0 Kudos