Skip to content

Use generics for index classes? #146

Open

Description

@dbaston

What do people think about updating some of the index classes to use generics? It would be nice to not cast the return values from spatial index queries, etc.

Activity

  1. dr-jts commented on Sep 1, 2017

    @dr-jts
    Contributor

    Possible reasons to NOT do this are:

    • in the past there were requests to keep JTS at 1.4 compatibility, for use on mobile
    • may prevent use of JSTS transpiler? @bjornharrtell, can you comment?
  2. bjornharrtell commented on Sep 1, 2017

    @bjornharrtell
    Contributor

    May require some work on the transpilation but should not be too hard to fix.

  3. jnh5y commented on Oct 28, 2017

    @jnh5y
    Contributor

    Generally, I'm interested in seeing JTS attract folks who work on optimizing spatial indices. As an option for JTS 1.x, could we experiment with this in a JTS-indexing-labs package?

  4. dr-jts commented on Nov 1, 2019

    @dr-jts
    Contributor

    This would break current API, wouldn't it? I.e. would require classes to be instantiated specifying the contained type?

    Or is it possible to make the generic type optional (but seems unlikely...)?

  5. dbaston commented on Nov 1, 2019

    @dbaston
    ContributorAuthor

    I thought it just defaulted to Object if you omitted it.

  6. dr-jts commented on Nov 1, 2019

    @dr-jts
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions