Offset Polyline(original as drawn) problem in Arcgis pro sdk

747
7
12-12-2017 11:34 PM
Highlighted
New Contributor III

Hi,

We have a offset polyline problem I can not offset polyline as you draw (original as drawn) . How can we solve this important problem ? Or are there any alternative solution? We are using all Offset Types (Mitter ,Bevel , Round , Square) but polyline shape changes,  we don not want the line to be different shape  .We can offset same polyline in  ArcObjects but we can not wit ArcgisPro SDK.

Here is in code and pictures in ArcgisPro SDK below :

Mitter left and  right offset in the middle green polyline is original polyline

if (result.RightSide)
offsetGeometry = GeometryEngine.Instance.Offset(feature.GetShape(), distance, OffsetType.Miter, 5) as Polyline;
else
offsetGeometry = GeometryEngine.Instance.Offset(feature.GetShape(), -distance, OffsetType.Miter, 5) as Polyline;

Miter Ofset

Round left and right offset in the middle green polyline is original polyline

if (result.RightSide)
offsetGeometry = GeometryEngine.Instance.Offset(feature.GetShape(), distance, OffsetType.Round, 0) as Polyline;
else
offsetGeometry = GeometryEngine.Instance.Offset(feature.GetShape(), -distance, OffsetType.Round, 0) as Polyline;

Round offset

Here is below what we want correct left and right offset code and pictures in ArcObjects :

Left and  right offset in the middle green polyline is original polyline.

IConstructCurve constructCurve = new PolylineClass();

constructCurve.ConstructOffset(polycurve, Offset, ref esriConstructOffsetEnum, ref bevelRatio);

ArcObjects Offset

Thanks for Helping 

Reply
0 Kudos
7 Replies
Highlighted
New Contributor III

Hi,

Are there any ide about this question ? Is it bug or not ?

Thanks.

Reply
0 Kudos
Highlighted
New Contributor III

Hi Taner,

This is the same issue as https://community.esri.com/message/732957-draw-arc-line-offset-problem-in-arcgis-pro-sdk?et=watches.... . It will be fixed in the next release. I am looking into a workaround in the meantime and will keep you posted.

Thanks,

Annette

Highlighted
New Contributor III

Hi Annette,

Are there any result about this problem ? It is very important for us because it is important for us to draw the right and left offensive roads in our vehicles.

Thanks

Reply
0 Kudos
Highlighted
New Contributor III

Hi Taner, I am still working on this. I should have some more information for you in a couple of days. 

Thanks,

Annette

Reply
0 Kudos
Highlighted
New Contributor III

Hi Taner,

Thank you for your patience. The fix for this issue is being considered for ArcGIS Pro 2.1.2 with a targeted release date of March 13. I will keep you posted.

Annette

Highlighted
New Contributor III

Hi Annette,

Thanks for helping.

Reply
0 Kudos
Highlighted
New Contributor III

Hi Taner,

I just wanted to let you know that this issue was addressed in ArcGIS Pro 2.1.2. 

Annette

Reply
0 Kudos