How to write this python geoprocessing lines in vb.net console application

597
1
06-12-2012 05:22 PM
JoseSanchez
Occasional Contributor III
Hi all

I am writing a console application and would like to know how to write these lines in vb.net


# Create empty Point and Array objects
#
point = arcpy.Point() 
array = arcpy.Array()

# A list that will hold each of the Polygon objects
#
featureList = []

# point  point of the array in to close off the polygon
array.add(point)

# Add the first point of the array in to close off the polygon
    array.add(array.getObject(0))

# Create a Polygon object based on the array of points
#
polygon = arcpy.Polygon(array)

# Clear the array for future use
#
array.removeAll()
# Append to the list of Polygon objects
#
featureList.append(polygon)

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html - /Polygon/000v000000n1000000/
0 Kudos
1 Reply