Skip to content

Using auto legend with OGR/GMT format polygon file #1826

Closed

Description

@anbj

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.

Activity

  1. anbj commented on Oct 17, 2019

    @anbj
    ContributorAuthor

    Wouldnt this functionality also be nice for e.g. grdcontour?

    gmt grdcontour [..] -l"Contour interval 500 m."
    
  2. PaulWessel commented on Oct 18, 2019

    @PaulWessel
    Contributor

    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?

  3. joa-quim commented on Oct 19, 2019

    @joa-quim
    Member

    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.

  4. PaulWessel commented on Oct 19, 2019

    @PaulWessel
    Contributor

    OK, I am fine with that. I will turn my PR into a WIP for master.

  5. added
    feature request
    on Oct 20, 2019
  6. anbj commented on Oct 21, 2019

    @anbj
    ContributorAuthor

    But the polygons in a dataset may be very very diffent. What then?

  7. PaulWessel commented on Oct 21, 2019

    @PaulWessel
    Contributor

    You can consider a feature request if you have suggestions. There is always building the legend as before.

  8. anbj commented on Oct 21, 2019

    @anbj
    ContributorAuthor

    Totally agree. Just trying to trick you into making brilliant ideas.

  9. PaulWessel commented on Oct 21, 2019

    @PaulWessel
    Contributor

    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.

  10. anbj commented on Oct 21, 2019

    @anbj
    ContributorAuthor

    Yes, totally with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions