-
Notifications
You must be signed in to change notification settings - Fork 653
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
Jts shading geotools integration #89
Comments
https://github.com/geoHeil/GeoSpark/tree/shadingJTS here is a prototype built with the instructions of http://stackoverflow.com/questions/21021485/how-to-configure-maven-shade-plugin-in-a-multi-module-project Why did you not use the |
When not minimizing the resulting jar, the contents are fine. Whilst at it I would suggest to shade guava as well in order to not clash with i.e. geotools but mostly geospark |
Hi @geoHeil , thanks for your comments! You gave me lots of great suggestion. I have several questions about this issue: 1. In the new PR, it seems you create another module to make the shading work. This module packaged all GeoSpark and Babylon together. This is not expected. I will update JTSplus repository to avoid this conflict. 2. I am not sure why Guava is packaged into GeoSpark. I think I should totally exclude it. Will this solve the Guava conflict? |
@jiayuasu , to my knowledge there are 2-3 Problems
What I want to achieve is: Read ESRi ASCII Grid files into geoSpark. Currently I use geotools to read the raster data and create polygons from it. But it only works if the right assembly strategy (fat-jar) is applied when creating the spark job: http://stackoverflow.com/questions/43910006/geotools-jai-fatjar-causing-problems-in-native-dependencies do you know why the |
@geoHeil , I will do two things to help you out. 1. I will rename all JTSplus root package name. 2. Remove Guava dependency. Guava dependency is introduced because GeoSpark 0.6.2 depends SerNetCDF which package lots of unrelated packages. After this, I will push a snapshot version for you to test. |
@geoHeil , in GeoSpark 0.7.0,
Thanks, |
Could you add shading for the company.vividsolution.jts used in geospark?
I plan to ist geospark and geotools in a project and their respective transitive dependencies collide for jts.
http://stackoverflow.com/questions/13620281/what-is-the-maven-shade-plugin-used-for-and-why-would-you-want-to-relocate-java provide a good overview why to shade such closely coupled internal dependencies.
The text was updated successfully, but these errors were encountered: