|
@@ -143,17 +143,17 @@ def process_geojson_for_frontend(geojson_data, camera_params, calibrated_params)
|
|
|
for lon, lat in geo_coords:
|
|
for lon, lat in geo_coords:
|
|
|
u, v, is_visible = project_lonlat_to_pixel(
|
|
u, v, is_visible = project_lonlat_to_pixel(
|
|
|
lon, lat,
|
|
lon, lat,
|
|
|
- resolution_w=camera_params['resolution_w'], resolution_h=camera_params['resolution_h'],
|
|
|
|
|
- cam_lon=camera_params['cam_lon'], cam_lat=camera_params['cam_lat'],
|
|
|
|
|
- cam_height=calibrated_params['cam_height'], p=camera_params['p'],
|
|
|
|
|
- t=camera_params['t'], hfov=calibrated_params['hfov'],
|
|
|
|
|
- north_p_value=camera_params['north_p_value']
|
|
|
|
|
|
|
+ resolution_w=int(camera_params['resolution_w']), resolution_h=int(camera_params['resolution_h']),
|
|
|
|
|
+ cam_lon=float(camera_params['cam_lon']), cam_lat=float(camera_params['cam_lat']),
|
|
|
|
|
+ cam_height=float(calibrated_params['cam_height']), p=float(camera_params['p']),
|
|
|
|
|
+ t=float(camera_params['t']), hfov=float(calibrated_params['hfov']),
|
|
|
|
|
+ north_p_value=float(camera_params['north_p_value'])
|
|
|
)
|
|
)
|
|
|
raw_pixel_points.append([int(u), int(v)])
|
|
raw_pixel_points.append([int(u), int(v)])
|
|
|
|
|
|
|
|
visible_segments = []
|
|
visible_segments = []
|
|
|
- screen_w = camera_params['resolution_w']
|
|
|
|
|
- screen_h = camera_params['resolution_h']
|
|
|
|
|
|
|
+ screen_w = int(camera_params['resolution_w'])
|
|
|
|
|
+ screen_h = int(camera_params['resolution_h'])
|
|
|
|
|
|
|
|
for i in range(len(raw_pixel_points) - 1):
|
|
for i in range(len(raw_pixel_points) - 1):
|
|
|
p1 = raw_pixel_points[i]
|
|
p1 = raw_pixel_points[i]
|