Code Monkey home page Code Monkey logo

Comments (3)

kcpevey avatar kcpevey commented on June 5, 2024

Can anyone weigh in on my approach to this? If the annotators get generalized, the direction of my approach may change completely.

from earthsim.

philippjfr avatar philippjfr commented on June 5, 2024

This will require some consideration, particularly considering potential refactors/changes to the Annotators. The main obstacle here and elsewhere will be whether we can find a nice mechanism to share datasources between the polygon datastructure and the annotated values. Currently the main complexity in the PolyAnnotator, which is not shared by the PointAnnotator is that we have to manually sync the labels and the polygon/polyline data with the associated labels, while the point data can simply share the same underlying data source.

This is because the mechanism used by HoloViews to share datasources is to check whether the .data attribute on the elements has the same identity, which is no problem for Points and Table but is currently not entirely straightforward for Polygons/Path elements and a Table.

Once we have solved that problem we should fairly easily be able to display the full set of lat/lons or add some additional column that describes the lats/lons for each polygon/line.

from earthsim.

jlstevens avatar jlstevens commented on June 5, 2024

... this is because the mechanism used by HoloViews to share datasources is to check whether the .data attribute on the elements has the same identity

This has generally worked better than I expected but maybe we should consider a way to extend this mechanism as required in HoloViews. The core of it is a boolean predicate to decide whether something 'is the same thing' or not.

from earthsim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.