Skip to content
Snippets Groups Projects
Commit 76df9c7d authored by Raphael's avatar Raphael
Browse files

fixed issues

parent 11298d35
No related branches found
No related tags found
3 merge requests!12version 0.2a,!11Resolve "Image creation bugs with 0 size windows",!10Resolve "Image creation bugs with 0 size windows"
......@@ -236,6 +236,13 @@ class AISTrajectory(AISPoints):
positions = self.df[['longitude', 'latitude']].to_numpy()
min_lon, max_lon = (min(positions[:, 0]), max(positions[:, 0]))
min_lat, max_lat = (min(positions[:, 1]), max(positions[:, 1]))
if min_lat == max_lat:
min_lat -= 1
max_lat += 1
if min_lon == max_lon:
min_lon -= 1
max_lon += 1
for longitude, latitude in positions:
x_coord, y_coord = get_coord(latitude, longitude, height, width, min_lat, max_lat, min_lon, max_lon)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment