locationtech / locationtech/proj4j

Projection.initialize() method

Open
#40 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
232
Forks
86
PR merge metrics
No merged PRs in 30d

Description

The initialization method defined in the base class Projection is not called in this case.
Clearly, classes that extend the base projection class are required to call this method to initialize the projection parameters - by my understanding of the codes.

However, many classes extending the Projection class (like LandsatProjection class) do not provide the default constructor and most likely the initialize() method is never called in such cases.
Are the users supposed to call the initialize() method? If not how about consider making it protected method?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the base Projection class and the LandsatProjection subclass, then trace how projection instances are constructed and whether initialize() is invoked. Compare the behavior across other Projection subclasses before deciding whether initialization is an internal lifecycle concern or a caller responsibility. Done means the initialization contract is explicit and consistently enforced or documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.