用GP工具要素转点时无论参数怎么设置都会报HRESULT E_FAIL。
检查发现该GP工具需要最高权限,在liscenceControl里设为Advanced即可顺利使用。
已知的需要高权限的GP工具:
1. Erase
2. Identity
3. Create Thiessen Polygons
4. Generate Near Table
5. Near
6. Point Distance
7. Frequency
8. Cul-de-Sac Masks
9. Feature Outline Masks
10. Intersecting Layers Masks
11. Add Representation
12. Calculate Representation Rule
13. Drop Representation
14. Remove Override
15. Select Feature by Override
16. Set Layer Representation
17. Update Override
18. Align Marker to Stroke or Fill
19. Calculate Geodesic Angle
20. Calculate Line Caps
21. Calculate Polygon Main Angle
22. Create Overpass
23. Create Underpass
24. Disperse Markers
25. Set Representation Control Point At Intersect
26. Set Representation Contol Point By Angle
27. Feature Class to Coverage
28. Feature Envelope to Polygon
29. Feature to Line
30. Feature to Point
31. Feature to Polygon
32. Feature Vertices to Points