gis - Representing a Fan Shaped Image on a Map using Python -


i looking display object (fan shaped object each protruding line @ 'id angle' vertical) on map using below table input:

table (input): enter image description here

fan shaped object:

enter image description here

i able display point on map using python (very easy). problem far has been coming way represent each protruding line per above object.

i appreciate help.

update

please see below:

import matplotlib.pyplot plt  longitude = [4.3323, 4.3323, 4.3323] latitude = [2.3433, 2.3433, 2.3433] x,y = map(longitude, latitude) map.plot(x, y, 'bo', markersize=18) plt.show() 

so have been able represent these data points point.

i need integrate directional improvements earlier stated.

try this:

import numpy np import matplotlib.pyplot plt  center = (4.3323, 2.3433) angles = [60, 120, 240] angles = [a/180.0*np.pi in angles]  # scale l = 1  # center point x, y = center  # draw each line in angles:     dx = l * np.sin(a)     dy = l * np.cos(a)     plt.plot([x, x + dx], [y, y + dy], 'k-')  # draw center circle plt.plot(x, y, 'wo', ms=l*100) plt.show() 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -