using Pro 2.9
I'm working on moving cad data to GIS for use in Lucity. For a good deal of the feature types, their cad uses multiple lines to represent a single feature. Like an irrigation valve or a fiber pull box. I'm looking for a way to create a single point from 35 line segments that are near each other. See image.
I've tried selecting the longest segments and making points from that but the lengths are inconsistent and are digitized in different directions so there is no consistent end point or center point and points would have to be moved. With multiple layers and thousands of features it's not really feasible.
Is there anyway to accomplish this task?
Generally in CAD, those multiple lines are saved in a BLOCK for representing point locations.
In Pro, if you use the Feature Class To Feature Class GP tool, drill "into" the CAD file and select the Point layer and set a where clause to only export the layer with the valves (in this case). This will export them as a point FC in Pro.
R_
If each set of lines has a unique ID or field value, you can try the following:
- Use Minimum Bounding Geometry with Envelope as the Geometry Type, List as Group Option, and the unique ID field for grouping. The output contains rectangle polygons, each represents a set of lines with the unique ID.
Added a note here:
The default Geometry Type, "Rectangle by area", may work better.
- Run the Feature To Point tool with Centroid option on the output envelope polygons to obtain a point for each polygon. Is the result what you are looking for?