Is there a way to take a set of polygons and have ArcMap create a point file from the center of the polygons?
Cárin,I'm also using ArcGIS 10 and I simply typed "feature to point" in the search dialog box, selected the tools option and it was the available.
This should work for all levels of Desktop licence...
This should generate coordinates for points within even odd shaped or multipart polygons and not outside, which can sometimes happen with CENTROID.
Once complete, export the feature's attribute table and use 'Display XY Data' to plot points from the INSIDE_X and INSIDE_Y values generated by the script.
A further method is two add two Double fields into your polygon feature. One field called X_long, the other Y_lat (or just X, Y- it's up to you).
Right click each field header and click Calculate Geometry, choose X coordinate of centroid and then Y coordinate of centroid. This will add centre coordinates for each polygon.
You can then export the atribute table as a dbf table or a CSV. Then reimport this into ArcMap and Display XY data for the table. Export this as a point shapefile.
Long winded I know!
That works well too Theo, though it's worth remembering that calculating Centroid XY may produce points that are outside the polygon, e.g. if they are multipart features or concave such as a crescent or L shape.
If you need points that are within the polygon area, use the 'Add Geometry Attributes' script tool with the CENTROID_INSIDE option.
With recent versions of ArcMap and Pro, the procedure is simple. If the thought of using a couple of lines of python code doesn't scare you then you can use the following...
The quickest way to get the centroid of any feature geometry (point, line polygon etc) is to use...
FeatureClassToNumPyArray—Help | ArcGIS for Desktop
This will produce an array of the attribute data... and the geometry default is the centroid coordinates if explode_to_points is not specified.
To get back the point file of the array (ie the centroids of a polygon), just reverse the process using
NumPyArrayToFeatureClass—Help | ArcGIS for Desktop
Which begs the question.... why would an advanced license be required for a tool when the software provides a solution with one.
Retrieving data ...