You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using auto legend with OGR/GMT format polygon file #1826
I was testing the new auto legend functionality and became confused when trying to plot an OGR/GMT format polygon file (i.e. with # @VGMT1.0 @GPOLYGON in the header). This entry was not added to the legend. When I removed the header, it showed up.
Maybe specify in the docs that auto legend only works when dealing with lines/points (if that is the case)? Or trick GMT by malforming the OGR/GMT file header.
I wonder for polygons, perhaps we place a square symbol with the same color/outline as the polygon and using the size modifier for the size? That seems like a reasonable resolution, no? Agree, @seisman and @joa-quim?
I think we should REALLY decree a code freeze. To release 6.0.0 next Friday and with a RC5 in between, there is no time for more features now. And, BTW, we should aim to release the the RC5 during the week-end.
Activity
anbj commentedon Oct 17, 2019
Wouldnt this functionality also be nice for e.g.
grdcontour?Bring -l auto-legend to grdcontour and contour
PaulWessel commentedon Oct 18, 2019
I wonder for polygons, perhaps we place a square symbol with the same color/outline as the polygon and using the size modifier for the size? That seems like a reasonable resolution, no? Agree, @seisman and @joa-quim?
joa-quim commentedon Oct 19, 2019
I think we should REALLY decree a code freeze. To release 6.0.0 next Friday and with a RC5 in between, there is no time for more features now. And, BTW, we should aim to release the the RC5 during the week-end.
PaulWessel commentedon Oct 19, 2019
OK, I am fine with that. I will turn my PR into a WIP for master.
anbj commentedon Oct 21, 2019
But the polygons in a dataset may be very very diffent. What then?
PaulWessel commentedon Oct 21, 2019
You can consider a feature request if you have suggestions. There is always building the legend as before.
anbj commentedon Oct 21, 2019
Totally agree. Just trying to trick you into making brilliant ideas.
PaulWessel commentedon Oct 21, 2019
I can imagine labels coming from aspatial values in a shape file but we want to think about this some more before rushing out a solution.
anbj commentedon Oct 21, 2019
Yes, totally with you.
Bring -l auto-legend to grdcontour and contour (#1838)