You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?
Activity
dr-jts commentedon Sep 1, 2017
Possible reasons to NOT do this are:
bjornharrtell commentedon Sep 1, 2017
May require some work on the transpilation but should not be too hard to fix.
jnh5y commentedon Oct 28, 2017
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?
dr-jts commentedon Nov 1, 2019
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...)?
dbaston commentedon Nov 1, 2019
I thought it just defaulted to
Objectif you omitted it.dr-jts commentedon Nov 1, 2019
If so, that would be awesomely awesome! And indeed it appears you may be right: http://www.angelikalanger.com/GenericsFAQ/FAQSections/ParameterizedTypes.html#FAQ201