POST
|
Can you please share your label class creation solution? I have the same problem and I can't solve it. Thanks
... View more
01-11-2022
07:02 AM
|
0
|
2
|
1884
|
POST
|
Is it possible to add a "text symbol" style from .style file to label instead of an annotation? Thanks
... View more
11-04-2021
06:22 AM
|
0
|
0
|
371
|
POST
|
I need to read information about individual styles in a .style file such as height or color, is it possible using Python?
... View more
08-02-2021
06:08 AM
|
0
|
1
|
612
|
POST
|
Is it any way to preserve fields when converting labels to annotations? My polygon layer has a unique ID that I need to keep after converting labels to annotations, is it possible?
... View more
06-04-2021
11:31 AM
|
0
|
1
|
605
|
POST
|
I tried the use of geometries and some geoprocessing tools (Erase, Clip, Split, Intersect), but none of the them work for the annotation feature class.
... View more
06-01-2021
03:03 AM
|
0
|
0
|
813
|
POST
|
Is it possible to divide an annotation feature class elements in Arcgis Pro (using ArcPy) by a line or polygon into several parts?
... View more
06-01-2021
02:25 AM
|
0
|
2
|
846
|
POST
|
Is it possible to divide an annotation feature class elements in Arcgis Pro (using ArcPy) by a line or polygon into several parts?
... View more
06-01-2021
02:15 AM
|
0
|
0
|
430
|
POST
|
Hello, Try using arcpy, see the code below. def rotation(rotatefield):
def rotatepoint(point, pivotpoint, angle):
angle_rad = -math.radians(angle)
ox, oy = pivotpoint.X, pivotpoint.Y
px, py = point.X, point.Y
qx = ox + math.cos(angle_rad) * (px - ox) - math.sin(angle_rad) * (py - oy)
qy = oy + math.sin(angle_rad) * (px - ox) + math.cos(angle_rad) * (py - oy)
return arcpy.Point(qx,qy)
with arcpy.da.UpdateCursor("annotation_polygons",['SHAPE@', rotatefield]) as cursor:
for row in cursor:
polylist = []
for part in row[0]:
partlist = []
for pnt in part:
if pnt is not None:
partlist.append(rotatepoint(pnt, arcpy.Point(row[0][0][0].X, row[0][0][0].Y), row[1]))
polylist.append(partlist)
row[0] = arcpy.Polygon(arcpy.Array(polylist))
cursor.updateRow(row)
... View more
05-07-2021
01:52 AM
|
0
|
1
|
2371
|
POST
|
I don't know how to set halo property in Python. I try it by CIM (code below) but I don't know, what line "lc.textSymbol.symbol.haloSymbol" should contain. Can you advise me how to achieve halo effect using arcpy? aprx = arcpy.mp.ArcGISProject("current") m = aprx.listMaps("Map15")[0] show_labels = m.listLayers("okolni_listy_ztm5*")[0] show_labels.showLabels = True for lyr in m.listLayers("okolni_listy_ztm5*"): if lyr.supports("SHOWLABELS"): if lyr.showLabels: for lblClass in lyr.listLabelClasses(): lblClass.expression = "$feature.OBJECTID" label_show = m.listLayers('okolni_listy_ztm5*')[0] l_cim = label_show.getDefinition('V2') lc = l_cim.labelClasses[0] lc.textSymbol.symbol.haloSize = 2 lc.textSymbol.symbol.haloSymbol = label_show.setDefinition(l_cim) Thanks
... View more
04-22-2021
08:40 AM
|
0
|
0
|
973
|
POST
|
Thanks, but it still doesn't work properly. I need the label stay inside the polygon, even if the polygon overlaps with another polygon.
... View more
03-23-2021
04:14 AM
|
0
|
0
|
1120
|
POST
|
I need place labels regardless of collisions with other layers. I use ArcPy and CIM. I need to place the label in the center of the polygon. At the same time, I need it not to change its position or disappear if it collides with another labels or feature. I try this code, but some labels are placed outside the polygons. show_labels = m.listLayers("polygon23*")[0]
show_labels.showLabels = True
for lyr in m.listLayers("polygon23*"):
if lyr.supports("SHOWLABELS"):
if lyr.showLabels:
for lblClass in lyr.listLabelClasses():
lblClass.expression = ''' "<FNT size='6'>" + $feature.label + "</FNT>"'''
label_show = m.listLayers('polygon23*')[0]
l_cim = label_show.getDefinition('V2')
lc = l_cim.labelClasses[0]
lc.maplexLabelPlacementProperties.polygonPlacementMethod = 'StraightInPolygon'
lc.maplexLabelPlacementProperties.placeOnlyInsidePolygon = True
lc.CIMStandardLabelPlacementProperties = 'allowOverlappingLabels'
... View more
03-17-2021
06:02 AM
|
0
|
2
|
1181
|
POST
|
Hello, I am writing a program for creating the surroundings of a map sheet (these are text elements, graphic elements and small maps). It is a matter of creating a large number of these map sheets (around 16 thousand). First I need the ArcPy program to run at once for all the map sheets and the results to be stored in the oracle database. Subsequently I would need to be able to get these values for each map sheet by pressing the button in Arcgis Pro. Do you think it is possible to achieve this? I imagine it to read values from a database using ArcGIS Pro SDK C #. Thanks for the feetback
... View more
11-08-2020
12:46 AM
|
0
|
1
|
1155
|
POST
|
Hello, is it this possible in current version Pro? Thanks
... View more
11-06-2020
10:15 AM
|
0
|
1
|
1169
|
Title | Kudos | Posted |
---|---|---|
3 | 11-01-2020 05:51 AM |
Online Status |
Offline
|
Date Last Visited |
12-14-2023
01:16 PM
|