Skip to content

Instantly share code, notes, and snippets.

View GIS-Luke's full-sized avatar

Luke GIS-Luke

  • Narrm
  • 23:27 (UTC +10:00)
View GitHub Profile
@GIS-Luke
GIS-Luke / feature_to_point.py
Created February 10, 2020 23:42
Convert features to points without an ArcGIS Advanced license
"""
Convert features to points without an ArcGIS Advanced license.
This example truncates an existing feature class and then
inserts the created rows from the source feature class.
"""
import arcpy as ap
# list field objects to get the name property
fld_objs = ap.ListFields(in_path_fc)
# loop through the field objects and append their names to the list