Select to view content in your preferred language

Is it possible to merge or append a point layer to an annotation layer?

1328
6
Jump to solution
05-05-2021 11:52 AM
GeoDev
by
Emerging Contributor

I'm trying to write a python script to 'Merge' or 'Append Annotation Feature Classes' a point layer (points in middle of each parcel) and an existing annotation layer; however, both of these tools require each layer to be an annotation layer. I cannot find a way to convert an existing point feature class to an annotation feature class so I can carry out this merge. Is this possible?  

0 Kudos
1 Solution

Accepted Solutions
JayantaPoddar
MVP Esteemed Contributor

Thank you for the clarification.

If you have ArcMap, you can use Import CAD Annotation Tool to convert CAD Annotation to Geodatabase Annotation, and then append the latter to the parcel annotation layer. Check the code sample for the python script.



Think Location

View solution in original post

0 Kudos
6 Replies
JayantaPoddar
MVP Esteemed Contributor

Merge and Append work on the same geometry type only. Points with Points, and Annotation with Annotations, etc.

So, you will need to create an Annotation Feature Class out of the Point Layer (Label to Annotation),  followed by merging/appending the annotation features.

If required, you may convert Annotation to Points using Feature to Point .



Think Location
0 Kudos
GeoDev
by
Emerging Contributor
Unfortunately, the point feature layer does not have any labels only
points, so the Label to Annotation tool does not work.
0 Kudos
JayantaPoddar
MVP Esteemed Contributor

In that case, could you tell me what you are trying to achieve by the merge/append?

If you want the Point features to be generated, where your existing Annotations are placed, you may use Feature to Point tool, as I mentioned.



Think Location
0 Kudos
GeoDev
by
Emerging Contributor
The confusing part is.. the first part of the script is a CAD .DWG to
Geodatabase, which separates the .DWG file into separate layers with one
being labeled an 'Annotation' layer. Except that 'Annotation' is actually a
point layer when I right click it in the properties. My boss wanted me to
extract a subset of points from this 'Annotation' layer and merge it with
the existing production Parcel Annotation layer (which is actually a real
annotation type layer).
0 Kudos
JayantaPoddar
MVP Esteemed Contributor

Thank you for the clarification.

If you have ArcMap, you can use Import CAD Annotation Tool to convert CAD Annotation to Geodatabase Annotation, and then append the latter to the parcel annotation layer. Check the code sample for the python script.



Think Location
0 Kudos
GeoDev
by
Emerging Contributor

Thank you for this answer. It was exactly what I was looking for! 

0 Kudos