Clip tool(annotation) while projection transformation

1104
1
03-15-2017 08:38 PM
sivaprakash
New Contributor II

Hi

python snippets

arcgis map

clip_analysis tool is not working properly for Annotation layer provided the output in another projection system. Anyone else encountered this.

To recreate the issue:

Open python window

set outcoordinatesystem set to another.

Try out clip_analysis for annotation layer.

The output is not as expected. The annotation text is shown at different place.

Please find the following associated snippet

import arcgisscripting

gp = arcgisscripting.create()

gp.OutputCoordinateSystem = "4326" #different wkid

gp.clip_analysis("<<Input Annotation Layer>>","Export_Output","<<Output Annotation Layer>>")

output is not projected correctly as expected

Please help me out in this case. thanks for upcoming help.

Thanks

Siva

0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

In order to clip, the geometries must overlap Clip Analysis in the Environment Setting section at the bottom, you will see that the tool honors the Extent parameter.  In any event, the result of a clip would contain the attributes of the layer being clipped, there is no mention of associated joined attributes being carried over since they are only associated with the output, not part of it, hence, geometry seems to be the focus

0 Kudos