Removed now unnecessary test code

This commit is contained in:
Thomas Kolb 2021-06-23 21:12:06 +02:00
parent 8ee4f9d2a0
commit 9fde97371c

View file

@ -447,41 +447,6 @@ def render(ref_lat, ref_lon, output_stream):
R = 500 R = 500
"""
# Override data with test coordinate system
coords = []
N = 128
# constant-latitude circles
coords.append(np.array([np.linspace(-np.pi, np.pi, N),
np.ones(N) * np.pi/4]))
coords.append(np.array([np.linspace(-np.pi, np.pi, N),
np.ones(N) * 0]))
coords.append(np.array([np.linspace(-np.pi, np.pi, N),
np.ones(N) * -np.pi/4]))
# constant-longitude half-circles
coords.append(np.array([np.ones(N) * -4*np.pi/4,
np.linspace(-np.pi/2, np.pi/2, N)]))
coords.append(np.array([np.ones(N) * -3*np.pi/4,
np.linspace(-np.pi/2, np.pi/2, N)]))
coords.append(np.array([np.ones(N) * -2*np.pi/4,
np.linspace(-np.pi/2, np.pi/2, N)]))
coords.append(np.array([np.ones(N) * -1*np.pi/4,
np.linspace(-np.pi/2, np.pi/2, N)]))
coords.append(np.array([np.ones(N) * 0*np.pi/4,
np.linspace(-np.pi/2, np.pi/2, N)]))
coords.append(np.array([np.ones(N) * 1*np.pi/4,
np.linspace(-np.pi/2, np.pi/2, N)]))
coords.append(np.array([np.ones(N) * 2*np.pi/4,
np.linspace(-np.pi/2, np.pi/2, N)]))
coords.append(np.array([np.ones(N) * 3*np.pi/4,
np.linspace(-np.pi/2, np.pi/2, N)]))
simplegeodata = {"XY": {'name': 'test', 'coordinates': coords}}
"""
map_all_polygons(simplegeodata, ref_lat, ref_lon, R) map_all_polygons(simplegeodata, ref_lat, ref_lon, R)
assign_country_colors(simplegeodata) assign_country_colors(simplegeodata)