Skip to content

Commit 80bbc47

Browse files
committed
main
1 parent 94443a7 commit 80bbc47

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

dxf.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -140,21 +140,21 @@ def add_parcel(self, parcel_id: str, points: List[Tuple[float, float]], label_si
140140
})
141141

142142
# Add parcel ID label at centroid
143-
if points and parcel_id:
144-
centroid_x = sum(p[0] for p in points) / len(points)
145-
centroid_y = sum(p[1] for p in points) / len(points)
146-
self.msp.add_text(
147-
parcel_id,
148-
dxfattribs={
149-
'layer': 'LABELS',
150-
'height': label_size,
151-
'style': 'SURVEY_TEXT',
152-
'color': 2 # Yellow
153-
}
154-
).set_placement(
155-
(centroid_x, centroid_y),
156-
align=TextEntityAlignment.MIDDLE_CENTER
157-
)
143+
# if points and parcel_id:
144+
# centroid_x = sum(p[0] for p in points) / len(points)
145+
# centroid_y = sum(p[1] for p in points) / len(points)
146+
# self.msp.add_text(
147+
# parcel_id,
148+
# dxfattribs={
149+
# 'layer': 'LABELS',
150+
# 'height': label_size,
151+
# 'style': 'SURVEY_TEXT',
152+
# 'color': 2 # Yellow
153+
# }
154+
# ).set_placement(
155+
# (centroid_x, centroid_y),
156+
# align=TextEntityAlignment.MIDDLE_CENTER
157+
# )
158158

159159
def add_boundary(self, points: List[Tuple[float, float]]):
160160
"""Add a boundaty given its ID and list of (x, y) points"""

0 commit comments

Comments
 (0)