-
Notifications
You must be signed in to change notification settings - Fork 322
Description
I would like to add two different point overlays to the composition.
For one point overlay, I use:
#definition of points:
poi_list = [((10.75, 59.92), 'OSLO'),
((18.05, 59.33), 'STOCKHOLM'),
((24.93, 60.17), 'HELSINKI'),
((24.72, 59.43), 'TALLINN'),
....
]
points = {'font': '/home/piotr/EMCdata/Fonts/DejaVuSans.ttf',
'font_size': 35, 'points_list': poi_list, 'symbol': 'circle', 'ptsize': 25,
'outline': (200, 50, 50), 'fill': 'white', 'width': 10, 'fill_opacity': 255,
'box_fill': (255, 255, 255), 'box_opacity': 70}
and in save.dataset:
scn_resampled.save_dataset(composite, 'Picture.png',
overlay={'coast_dir': '/home/piotr/EMCdata/gshhg-shp',
'overlays': {'coasts': coast,
'borders': borders,
'rivers': rivers,
'points': points,
}},
decorate = {'decorate': deco}
)
I works perfect. But how to use two differnt poi_lists with different font size and symbol ?
I have tried:
scn_resampled.save_dataset(composite, 'Picture.png',
overlay={'coast_dir': '/home/piotr/EMCdata/gshhg-shp',
'overlays': {'coasts': coast,
'borders': borders,
'rivers': rivers,
'points': points,
'points': points2,
}},
decorate = {'decorate': deco}
)
In such case only second set of points is overlaid.
Best regards,
Piotr