locationtech / locationtech/proj4j
Improve proj4j tests to reflect the recent changes and the moved out EPSG resources
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- Java
- Stars
- 232
- Forks
- 86
- PR merge metrics
- No merged PRs in 30d
Description
After separating the project into two, we may get some confusing errors; i.e.
java.lang.IllegalStateException: Unable to access CRS file: proj4/nad/epsg
at org.locationtech.proj4j.io.Proj4FileReader.readParametersFromFile(Proj4FileReader.java:44)
at org.locationtech.proj4j.io.Proj4FileReader.getParameters(Proj4FileReader.java:119)
at org.locationtech.proj4j.CRSFactory.createFromName(CRSFactory.java:83)
at org.apache.calcite.runtime.ProjectionTransformer.<init>(ProjectionTransformer.java:57)
at org.apache.calcite.runtime.SpatialTypeFunctions.ST_Transform(SpatialTypeFunctions.java:[1196]
This task is to improve error messages and documentation.
cc @bchapuis
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Proj4FileReader.readParametersFromFile and getParameters, then trace CRSFactory.createFromName and the failing CRS resource lookup shown in the stack trace. Review the existing proj4j tests and documentation for assumptions about the moved EPSG resources; done means tests reflect the current layout and failures provide clearer messages and documentation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, documentation, testing-qa
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100