-
Notifications
You must be signed in to change notification settings - Fork 73
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
In release 1.2.0, the pom file contains incorrect version '1.2.0-SNAPSHOT' #94
Comments
Thanks for catching it; I’ll check what’s going on and cut a fresh release; I think I know where the error is coming from |
Hey! Could not make it yesterday, but should be good now: https://repo1.maven.org/maven2/org/locationtech/proj4j/proj4j/1.2.1/proj4j-1.2.1.pom 👍 |
@pomadchin Thanks a lot, the checks are now passing. However, I expected some tests to fail as we use EPSG:26986 (Massachusetts state plane meters). After looking at the sources, it looks like the epsg file is still in the proj4j core submodule. Shouldn't it be moved to the epsg submodule? |
@bchapuis I think this file is not a part of the EPSG db; I tried to find the history of this file and it looks like it's been collected somehow for the proj4 project specifically, long time ago they didn't have a sqlite db but used plain files for the I am not sure this file is under the EPSG license; but if you're sure it is I can work on it as well; also see #90 (comment) Mb you're referring to a very similar by name https://github.com/locationtech/proj4j/blob/master/epsg/src/main/resources/proj4/wkt/epsg.properties which is really a part of the EPSG DB. |
You know what, I think you're right; I'll move all the resources into that epsg module; so none of projections going to work with the core only. I'll make a follow-up issue. I think I had to just move everything, |
I'll cut a release later today. 👍 🤦 |
Thanks a lot for your help. I was just experimenting with this on my side and made a pull request. Here, the epsg submodule is included as a test dependency in the core submodule. We still have some epsg files in the test resources, but I think that they will not be included in the final jar. I tried to move them as well, but this would require to modify the tests. I hope this helps a bit. |
Yes, test resources should be fine! They are not shipped. Thanks for your help! |
I'm not completly sure either. As the file contains a lot of epsg codes, I guess that it is under the same terms of use. Maybe @desruisseaux can crosscheck. |
I feel like it makes sense to move all resources out just in case; you asked a question => definitely some one else may ask it; thanks for doing it; it is good that you noticed it and asked. sorry I’m not by the laptop at the moment, will work on merging your pr ASAP! |
If we are talking about the About testing, as said above it is okay (to my knowledge) to use EPSG data during tests. What matter is what is included in the distribution. But at Apache (I don't know what is Eclipse policy), the fact that EPSG data are used for tests would be declared in the |
The new release now throws an exception when the epsg module is not included as a dependency, which is the expected behavior. From a license perspective, the
@pomadchin should we improve the exception message and or the documentation? @desruisseaux If I remember correclty, you mentionned that small extracts of the epsg database may fall under a fair use clause. Do you think we may include a couple of popular EPSGs in the core (e.g. 4326, 3857). If so, which EPSGs (apart from these two) would it make sense to include? |
The definition of "fair use" is subject to interpretation. My approach is to pick CRS that are collected in other well-known sources. For example OGC Web Map Server (WMS) defines a few CRS in the There is a list of CRS defined by WMS specification there. The sources that I use implies this list of EPSG codes of geographic CRS. For projected CRS, I guess that "World Mercator" ( If Proj4J has a field for remarks in CRS instances, it may be worth to put a remark like below (I attach this text to the CRS objects defined without EPSG database):
|
@bchapuis @desruisseaux thank you both! Yes @bchapuis we definitely need to improve the error message / docs (#96); If any of these files / portions of the files can be moved back that will require some code changes as well 💭 but doable. With this one I will definitely ask for some help to understand which codes are safe to move. But really I think that it's kind of 'okay' to expect that all of these resources can be considered under the EPSG License due to its source. |
In release 1.2.0, the pom file contains incorrect version '1.2.0-SNAPSHOT'. It should be '1.2.0'.
See https://search.maven.org/remotecontent?filepath=org/locationtech/proj4j/proj4j/1.2.0/proj4j-1.2.0.pom and also https://central.sonatype.dev/artifact/org.locationtech.proj4j/proj4j/1.2.0-SNAPSHOT/versions
This caused problems when I tried to upgrade Calcite to use it. See https://github.com/apache/calcite/pull/3001/checks.
The text was updated successfully, but these errors were encountered: