1

I am using below function to create sectors of sites for a telecom operator. I am using lines to show different technologies deployed to keep visuals simple. Problem I am having is that sector appears slightly skewed towards elliptical side. Showing as in pictures.

I am feeding out put of this function into SimpleKML which creates KML for my purpose. If any one can guide me to make them proper circular rather than elliptical it will be great.

I have seen a similar question about some one had similar problem while creating a buffer circle around a point in GE. In one of the answers some one resolved it by using PROJ library. From that solution I can't understand how to solve my problem.

def get_points(lon, lat,ht, sectRadius_km, azimuth, shapeType,offsetAzimuth_deg):
earthCircumference_km=40007.863 #40075
sectorRadius_deg = 360*(sectRadius_km/earthCircumference_km)
if shapeType == "Point":
    sectorPointLon_deg = lon + sectorRadius_deg * math.sin((azimuth+offsetAzimuth_deg)*math.pi/180)        
    sectorPointLat_deg = lat + sectorRadius_deg * math.cos((azimuth+offsetAzimuth_deg)*math.pi/180)
    #print([sectorPointLon_deg , sectorPointLat_deg])        
    return [(sectorPointLon_deg , sectorPointLat_deg, ht)]
elif shapeType == "Line":
    sectorPointLon_deg = lon + sectorRadius_deg * math.sin((azimuth+offsetAzimuth_deg)*math.pi/180)        
    sectorPointLat_deg = lat + sectorRadius_deg * math.cos((azimuth+offsetAzimuth_deg)*math.pi/180)
    #print([sectorPointLon_deg , sectorPointLat_deg])        
    return [(lon, lat,ht),(sectorPointLon_deg , sectorPointLat_deg,ht)]

Picture Showing Elliptical Skewness

This is how sites orientation looks like

8

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.