Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make projection list accessible #31

Merged
merged 3 commits into from
Jul 31, 2019

Conversation

noberasco
Copy link
Contributor

@noberasco noberasco commented Jun 3, 2019

Method getProjection() in class Registry allows to obtain an instance of Projection given its name.
Internally, Registry maintains an internal list of Projections names <-> classes mappings and creates an instance of the correct class.

This pull request adds a method to retrieve a complete list of all usable Projection instances.

NOTE: if you run the code you will discover that there are 3 projections configured in Registry that cannot be allocated:

  • alsk
  • apian
  • bacon

They should probably be commented out in initialize() until they are property implemented (they point to class Projection, which is abstract and cannot be instanced).
The code in my pull request handles gracefully these non-instanceable projections.

Signed-off-by: Michele Noberasco <[email protected]>
Signed-off-by: Michele Noberasco <[email protected]>
Copy link
Contributor

@echeipesh echeipesh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Thank you for the PR

@echeipesh echeipesh merged commit bcc1317 into locationtech:master Jul 31, 2019
@echeipesh echeipesh added this to the 1.1.0 milestone Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants