span8
span4
span8
span4
When reading multi-part annotation using the Geodatabase readers the annotation is required to be split up into its parts using the "Split Multi-Part Annotation" setting on the Geodatabase reader. FME doesn't currently support reading the multi-part annotation as a single text element. If the split text is part of a curved text element then the rotation of the textstring is not maintained.
Attached is a sample workspace which demonstrates how to extract the text information (rotation, size and text) from each of the parts and output text strings which more accurately represent the source data.
It makes use of the TextPropertyExtractor to get the text geometry attributes such as text_size, text_rotation and text_string. Notice that the text_rotation will be set to zero for curved elements such as those displayed above. The TextLocationExtractor transformer then extracts the location of the text as a point or linestring.
If the text element is a point then a point geometry is returned, if the text is a straight line element then a two point line is returned. If the text element is a curved string then a linestring is returned.
This allows us to calculate the rotation of the text by using the first and last vertices of the linestring and calculating the angle between them. This simulates the rotation that the original text string followed. Finally adding back the text properties results in text which closely approximates the source text.
This method does result in an increase in the number of features handled because each multi-part text element is split into multiple features.
For even more accurate text placement the "Split Complex Annotation" reader parameter can be used to break curved annotation up into individual pieces. This results in a huge increase in the number of features but provides for much more accurate text placement.
Working with Geodatabase Feature-Linked Annotation
Performing spatial queries on database tables using the FeatureReader
How do I convert curved text from Geodatabase to Microstation DGN?
Setting FONT SIZE explicitly in Geodatabase Annotations
How to convert Esri Shapefile to Geodatabase
Esri ArcObjects Error Number '-2147155646': Invalid Attribute Names
Working with Geodatabase Domains: Creating A Coded Domain
Creating and Associating Geodatabase Domains Dynamically Using A Feature Class and GDB Table
© 2020 Safe Software Inc |Legal