ThinkGeo.com    |     Documentation    |     Premium Support

GC line smoothness

Hi,

I am facing a smoothing issue for GC line between Two points.

I have flight route between source and destination. I am plotting normal route and GC as well…

Normal route is a collection lines, and it is plotting well with smoothing… But

GC line is not that much smoother. Please check this and give me solution for this. I am using Thinkgeo Web Edition 10. The below pic shows the issue. Green line is GC line .

  1. GC line style is
    LineStyles.CreateSimpleLineStyle(GeoColor.SimpleColors.Green, 1, LineDashStyle.Dash, true)

  2. Code for adding GC line is follows.

PointShape pt1 = new PointShape(dGCFromLon, dGCFromLat);
PointShape pt2 = new PointShape(dGCToLon, dGCToLat);
MultilineShape lnGC = pt1.GreatCircle(pt2);
Feature ftGCLine = new Feature(lnGC);
imGCLayer.InternalFeatures.Add(_proj.ConvertToExternalProjection(ftGCLine));

Thanks,
Ashok

Hi Ashok_pydi,

I think the custom dash line should works better.

I found two topics about that, wish it’s helpful.

Regards,

Ethan

Thank you Ethan. It looks better than earlier.

Ashok

Hi Ashok,

I am glad to hear that’s helpful.

Regards,

Ethan