How does Civil 3D calculate the location of parcel labels? (center of polygon)

How does Civil 3D calculate the location of parcel labels? (center of polygon)

MK_WRP
Contributor Contributor
1,923 Views
7 Replies
Message 1 of 8

How does Civil 3D calculate the location of parcel labels? (center of polygon)

MK_WRP
Contributor
Contributor

I have a drawing where someone has created over 200 manual polylines as boundaries for the volume of land. I would like to use "parcels" if possible, but the areas are not exactly adjacent, so there are gaps and unintended "parcels" are created, so I will not use "parcels".
I want to place text inside this boundary, but the centroid of the boundary is not located inside the boundary. So I used "innerpoint" from the "NetTopologySuite" library to make sure it is always located inside. However, it sometimes ends up being located at the extreme edge, which I don't like. When I look at the "parcel" label, it is shown in a good position no matter what the shape of the boundary is.
So if anyone knows how Civil3D calculates this good position, please let me know.
Thank you very much.

0 Likes
1,924 Views
7 Replies
Replies (7)
Message 2 of 8

hosneyalaa
Advisor
Advisor

@MK_WRP 

can you  addition a sample dwg

0 Likes
Message 3 of 8

MK_WRP
Contributor
Contributor

I have attached the drawing as an example. A polygon which too big is for experimentation. Thank you.

0 Likes
Message 4 of 8

hosneyalaa
Advisor
Advisor

 

maybe

Command: REGION

 

7.gif

0 Likes
Message 5 of 8

MK_WRP
Contributor
Contributor

The attached drawing has been changed.
Comparison with RegionCentroid has been added.
Thank you very much for your help.

Since this is a program that will be used by other people, it needs to be able to handle any shape. I think it would be appropriate to reproduce the position of the "parcel label".

I want to know the location of perceLabel_2.JPG

0 Likes
Message 6 of 8

hosneyalaa
Advisor
Advisor

try  Parcel.AreaLocation Property

c1.JPG

 

7.gif

 

0 Likes
Message 7 of 8

MK_WRP
Contributor
Contributor

Thanks for your post. I didn't know the parcel labels  could move like that. That's very interesting. It's useful to know the coordinates where it was placed. But I'm interested to know How to calculate position where the parcel label will be initially placed . I want to select 200+ polylines and place text at the center point of each one, which is always inside. For example, I tried InteriorPoint from the NetTopologySuite library to get close to that, but I wasn't satisfied (it was too close to the edge in some cases). I was wondering if there is something available in other GIS or Map3d related topologies? Or is it a proprietary calculation method?

0 Likes
Message 8 of 8

Jeff_M
Consultant
Consultant

@MK_WRP is there a consistent thing to look for to get 'good' parcels vs 'bad' parcels when you se the create parcels from polylines? Such as area smaller or larger than a certain range? If so, I would create the parcels and have a tool to look at all parcels, filter out those 'bad' parcels and set those to not display a parcel area label.

Jeff_M, also a frequent Swamper
EESignature
0 Likes