Skip to content

Improve -Rxmin/xmax/ymin/ymax+uunit #6090

Closed

Description

@Esteban82

I was thinking on allow the two following options to simplyfy how to define it.

-Rx+uunit. We define one value which is the same for the four values (with a negative for the min). xmin= ymin = - x. xmax = y max = x

-Rx/y+uunit. We define two values (x, y) where xmin = -x and ymin = -y.

Activity

  1. added
    feature request
    on Dec 4, 2021
  2. PaulWessel commented on Dec 4, 2021

    @PaulWessel
    Contributor

    It is a good idea, but I do not think we need the leading x/y stuff since we can tell from the number of slashes.

    -Rradius+uunit
    -Rxhalf/yhalf+uunit

    Only allowed when +u is used. The debate may be if it should be radius or diameter and xside versus xhalf, etc.

  3. PaulWessel commented on Dec 4, 2021

    @PaulWessel
    Contributor

    I think it makes more sense in this case to give the dimensions (e.g.. diameter for the square) since it is really a shorthand for writing -x/x = 2x. Makes more sense to say -R300/200+uk for a 300 by 200 km area than -R150/100+uk I think. What do other @GenericMappingTools/core think?

  4. Esteban82 commented on Dec 5, 2021

    @Esteban82
    MemberAuthor

    Another question.

    I try -R-1/1/-1/1+ud and I got:

    Option -R: The +u<unit> modifier only applies to projected coordinates. Your unit d is ignored
    Could we allow using degree/minutes/seconds of arc?

    In the forum an user make the following to get the region:

    region = [lon -4, lon +4, lat-4, lat +4]
    So, if we allow using degrees the user will could make:

    -R4+ud    or -R8+ud if we used the diameter
    -JM$lon/$lat/10c
    
  5. Esteban82 commented on Dec 5, 2021

    @Esteban82
    MemberAuthor

    Only allowed when +u is used. The debate may be if it should be radius or diameter and xside versus xhalf, etc.

    I think that we should use radius and xhalf. It is more coherent with the general case (-Rxmin/xmax/ymin/ymax+uunit) where the distance to one side is indicated.

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