[ 
https://issues.apache.org/jira/browse/CALCITE-5399?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17638229#comment-17638229
 ] 

Martin Desruisseaux commented on CALCITE-5399:
----------------------------------------------

I will try to talk with some OGC staff and OSGeo board members to see what 
could be done with the name clash. The "opengis.org" domain name is owned by 
OGC and was used by OGC standards before Geotools forked the GeoAPI project. 
The {{org.opengis}} package name is also used by OGC for other projects such as 
CITE tests.

In the meantime, a way to avoid the name clash is to load GeoAPI and dependent 
projects using a separated classloader. Something like below:

{code:java}
URL[] binaries = {
    new URL("geoapi.jar"),
    new URL("some-geoapi-implementation.jar"),
    new URL("calcite-module-depending-on-geoapi.jar")
};
URLClassLoader loader = new URLClassLoader(binaries);
SomeCalciteInterface c = (SomeCalciteInterface) 
Class.forName("SomeCalciteClass", false, loader).newInstance();
{code}

The approach mentioned by Bertil work as well. I mention this alternative only 
in case you would consider more flexibility in the choice of implementation.


> Proj4j license is not compatible with Apache
> --------------------------------------------
>
>                 Key: CALCITE-5399
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5399
>             Project: Calcite
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.32.0
>            Reporter: Bertil Chapuis
>            Assignee: Bertil Chapuis
>            Priority: Major
>             Fix For: 1.33.0
>
>
> As explained by [~desruisseaux] in [1], despite being released with an Apache 
> compatible license, Proj4j is a problematic dependency. The EPSG codes used 
> by Proj4j come with restrictive terms of use [2] and we should find an 
> alternative.
> [1] [https://lists.apache.org/thread/2g6j1jx7q5l1sx4mfp1w29obgnvrnvq5]
> [2] [https://epsg.org/terms-of-use.html]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to