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

1196
7
12-12-2017 11:34 PM
tanerkoka
Occasional Contributor

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 

0 Kudos
7 Replies
tanerkoka
Occasional Contributor

Hi,

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

Thanks.

0 Kudos
AnnetteLocke
Esri Contributor

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

tanerkoka
Occasional Contributor

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

0 Kudos
AnnetteLocke
Esri Contributor

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

Thanks,

Annette

0 Kudos
AnnetteLocke
Esri Contributor

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

tanerkoka
Occasional Contributor

Hi Annette,

Thanks for helping.

0 Kudos
AnnetteLocke
Esri Contributor

Hi Taner,

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

Annette

0 Kudos