本文整理了Java中org.geotools.factory.GeoTools.scanForSystemHints()
方法的一些代码示例,展示了GeoTools.scanForSystemHints()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GeoTools.scanForSystemHints()
方法的具体详情如下:
包路径:org.geotools.factory.GeoTools
类名称:GeoTools
方法名:scanForSystemHints
[英]Scans System#getProperties for any property keys defined in this class, and add their values to the specified map of hints. For example if the #FORCE_LONGITUDE_FIRST_AXIS_ORDER system property is defined, then the Hints#FORCE_LONGITUDE_FIRST_AXIS_ORDER hint will be added to the set of hints.
[中]扫描System#getProperties以查找此类中定义的任何属性键,并将其值添加到指定的提示映射中。例如,如果定义了#强制经度#第一轴#顺序系统属性,则提示#强制经度#第一轴#顺序提示将添加到提示集中。
代码示例来源:origin: org.geotools/gt-metadata
/**
* Invokes {@link GeoTools#scanSystemProperties} when first needed. The caller is
* responsible for invoking {@link GeoTools#fireConfigurationChanged} outside the
* synchronized block if this method returns {@code true}.
*
* @return {@code true} if at least one hint changed as a result of this scan,
* or {@code false} otherwise.
*/
private static boolean ensureSystemDefaultLoaded() {
assert Thread.holdsLock(GLOBAL);
if (needScan) {
needScan = false;
return GeoTools.scanForSystemHints(GLOBAL);
} else {
return false;
}
}
代码示例来源:origin: org.geotools/gt2-metadata
/**
* Invokes {@link GeoTools#scanSystemProperties} when first needed. The caller is
* responsible for invoking {@link GeoTools#fireConfigurationChanged} outside the
* synchronized block if this method returns {@code true}.
*
* @return {@code true} if at least one hint changed as a result of this scan,
* or {@code false} otherwise.
*/
private static boolean ensureSystemDefaultLoaded() {
assert Thread.holdsLock(GLOBAL);
if (needScan) {
needScan = false;
return GeoTools.scanForSystemHints(GLOBAL);
} else {
return false;
}
}
内容来源于网络,如有侵权,请联系作者删除!