程序问答   发布时间:2022-06-01  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了图书馆 org.geotools.util 缺少 org.opengis.util.InternationalString?大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

如何解决图书馆 org.geotoolS.Util 缺少 org.opENGIS.Util.InternationalString??

开发过程中遇到图书馆 org.geotoolS.Util 缺少 org.opENGIS.Util.InternationalString?的问题如何解决?下面主要结合日常开发的经验,给出你关于图书馆 org.geotoolS.Util 缺少 org.opENGIS.Util.InternationalString?的解决方法建议,希望对你解决图书馆 org.geotoolS.Util 缺少 org.opENGIS.Util.InternationalString?有所启发或帮助;

我在运行下面的代码时看到以下异常...

java.lang.IncompatibleClassChangeError: org/opENGIs/util/InternationalString 不是一个接口 java.base/java.lang.classLoader.defineClassImpl(本机方法) ~[na:na] 在 java.base/java.lang.classLoader.defineClassInternal(ClassLoader.java:481) ~[na:na] 在 java.base/java.lang.classLoader.defineClass(ClassLoader.java:442) ~[na:na]

import org.geotools.data.DataUtilitIEs;
import org.geotools.feature.scheR_534_11845@aException;
import org.LOCATIOntech.jts.geom.Point;
import org.LOCATIOntech.jts.geom.polygon;
import org.opENGIs.feature.simple.SimpleFeatureType;
....

    SimpleFeatureType scheR_534_11845@a = null;
    String srID = "27700";
    try {
        scheR_534_11845@a = DataUtilitIEs.createType(
                "","LOCATIOn","LOCATIOns:Point:srID=" + srID + "," + "ID:Integer"
        );
    } catch (scheR_534_11845@aException E) {
        // Todo auto-generated catch block
        throw new RuntimeException("FUbar",E);
    }

为什么存储库中缺少此界面?我该如何解决这个问题? https://github.com/geotools/geotools/blob/main/modules/library/metadata/src/main/java/org/geotools/util/

我可以看到这个接口(具有相同的包)存在于我使用 JscIEnce 的另一个依赖项中...

图书馆 org.geotools.util 缺少 org.opengis.util.InternationalString?

版本:

// https://mvnrepository.com/artifact/org.geotools/gt-referencing
implementation group: 'org.geotools',name: 'gt-referencing',version: '25-RC'

// https://mvnrepository.com/artifact/org.geotools/gt-main
implementation group: 'org.geotools',name: 'gt-main',version: '25-RC'

// https://mvnrepository.com/artifact/org.JscIEnce/JscIEnce
implementation group: 'org.JscIEnce',name: 'JscIEnce',version: '4.3.1'

 // https://mvnrepository.com/artifact/org.hibernate/hibernate-spatial (Contains LOCATIOntech jts-core@1.18.1)
implementation group: 'org.hibernate',name: 'hibernate-spatial',version: '5.4.30.Final'

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

大佬总结

以上是大佬教程为你收集整理的图书馆 org.geotools.util 缺少 org.opengis.util.InternationalString?全部内容,希望文章能够帮你解决图书馆 org.geotools.util 缺少 org.opengis.util.InternationalString?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。