Skip to content

uniontiles.union should accept sequence of tuples or mercantile Tiles #39

Open

Description

@sgillies

I'm looking at some code which uses supermercado and is turning lists of numbers into strings just so supermercado can decode them into numbers again.

Activity

  1. dnomadb commented on Oct 5, 2020

    @dnomadb
    Contributor

    @sgillies I agree! This "better python api" is what I was alluding to here: #30 (comment)

  2. dnomadb commented on Oct 7, 2020

    @dnomadb
    Contributor

    @sgillies looking back into this, I was reminded of what Damon-from-5-years-ago-was thinking: union optionally takes a "parsenames" option that would parse "tiley" strings:

    tiles = sutils.tile_parser(inputtiles, parsenames)
    . Two options:

    1. We remove this altogether and point to xt or equivalent docs
    2. We leave it and support strings only if parse_names is True
  3. sgillies commented on Oct 14, 2020

    @sgillies
    ContributorAuthor

    @dnomadb I'd prefer option 1. I've done 2 for shapely and regretted it after a while. I like the example of Python's trig functions. These could all be, for example, def acos(x, is_degrees=False) but one kind of input and another method to convert inputs is the simplest to support in the long haul.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions