Artificial Intelligence
Please fill the required field.

how to add two point in perimeter of a polygon according to distance in arcmap


To add two points along the perimeter of a polygon according to specific distances in ArcMap, follow these steps: 1. **Prepare Your Data**: - Ensure you have a polygon layer loaded in ArcMap. This could be any polygon feature class or shapefile you're working with. 2. **Open the Attribute Table**: - Right-click the polygon layer in the Table of Contents and select "Open Attribute Table." This will allow you to view and edit the attributes of the polygons. 3. **Use the "Divide" Tool (Optional)**: - If you need to find two specific points along the perimeter based on certain distances, you may want to consider using the "Divide" Tool or creating vertices at regular intervals along the polygon perimeter. - This tool is not directly available in the ArcMap interface but can be accessed through the "Editor" toolbar (if you have the Editor extension enabled). 4. **Activate the Editor Toolbar**: - Go to the "Customize" menu, select "Toolbars," and make sure the "Editor" toolbar is turned on. 5. **Start Editing**: - Click on the Editor dropdown and select "Start Editing." Choose the polygon layer you want to edit. 6. **Use the 'Cyclic Segment' or 'Split Line' Tool** (If applicable): - Go to the "Editor" toolbar and select the "Cyclic Segment" or "Split Line" tool if you have it. You may also create points manually at specific distances. 7. **Measure the Distance**: - To accurately place points along the perimeter, you can measure the distance beforehand. Use the "Measure" tool (found on the "Tools" toolbar) to determine the location of the points along the polygon perimeter. Take note of the coordinates where you'd like to place the new points. 8. **Add Points**: - Switch to the "Create Features" window. Select the point feature template. - Use the “Sketch” tool to place points at the desired locations along the perimeter, based on the distances you measured. 9. **Save Your Edits**: - Once you're done placing the points, go back to the "Editor" dropdown and select "Save Edits," then choose "Stop Editing." 10. **Validate**: - Ensure the points were placed correctly by examining the geometry or using attribute information if needed. ### Alternative Approach Using Python If there’s a need to automate the process or calculate points based on geometric operations, you may consider using Python in ArcPy: ```python import arcpy # Your polygon feature class polygon_fc = "path/to/your/polygon.shp" # Output points feature class output_points = "path/to/your/output_points.shp" # Create the output points feature class arcpy.CreateFeatureclass_management("path/to/your", "output_points.shp", "POINT") with arcpy.da.InsertCursor(output_points, ["SHAPE@"]) as cursor: for row in arcpy.da.SearchCursor(polygon_fc, ["SHAPE@"]): polygon = row[0] perimeter_length = polygon.length # Calculate distances distance1 = 100 # Enter your specific distance for the first point distance2 = 200 # Enter your specific distance for the second point point1 = polygon.positionAlongLine(distance1) point2 = polygon.positionAlongLine(distance2) cursor.insertRow([point1]) cursor.insertRow([point2]) ``` ### Conclusion This method lets you manually calculate and insert points along a polygon's perimeter in ArcMap, whether through the UI or using Python scripting in ArcPy for advanced needs. For precise data handling and to work with many polygons, consider automation through scripting.