Skip to content

rf_ipython formatting if struct contains a Tile #161

Open

Description

@vpipkt

Currently if a struct / Row contains a Tile, rf_ipython doesn't do anything special for it. We should try to look inside the nested structure to see if it has a Tile to enable visualization of the Tile.

Semi related to #147

Activity

  1. self-assigned this
    on Jul 24, 2019
  2. added this to the 0.8.2 milestone on Jul 25, 2019
  3. vpipkt commented on Jul 26, 2019

    @vpipkt
    MemberAuthor

    As discussed in #213 this results in a lot of rf_tile('proj_raster') to get a look at the Tile object.

    The ipython formatting nicety is provided by the _repr_png_ method on the Tile class.

    So when you collect a Tile to the driver and then IPython.display.display it, IPython will check if Tile class has any repr*_ methods.

    One possibility may be to define a Python class that claims to be the UDT for StructType, and has a repr*_ method. But that seems a dicey proposition to me.

    Open to other possibilities here.

  4. modified the milestones: 0.8.2, 0.8.3 on Sep 23, 2019
  5. modified the milestones: 0.8.3, 0.8.4 on Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestpyrasterframesRelated to Python bindings to RasterFrames

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions