本文整理了Java中org.geotools.util.factory.Hints.remove()
方法的一些代码示例,展示了Hints.remove()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Hints.remove()
方法的具体详情如下:
包路径:org.geotools.util.factory.Hints
类名称:Hints
方法名:remove
[英]Removes the specified hints from the set of GeoTools#getDefaultHints.
[中]从GeoTools#GetDefaultHits集合中删除指定的提示。
代码示例来源:origin: geotools/geotools
/**
* Creates a new factory backed by an authority factory fetched using the specified hints. This
* constructor recognizes the {@link Hints#CRS_FACTORY CRS}, {@link Hints#CS_FACTORY CS}, {@link
* Hints#DATUM_FACTORY DATUM} and {@link Hints#MATH_TRANSFORM_FACTORY MATH_TRANSFORM} {@code
* FACTORY} hints.
*
* @param userHints The hints, or {@code null} if none.
*/
public AuthorityBackedFactory(Hints userHints) {
super(userHints, PRIORITY);
/*
* Removes the hint processed by the super-class. This include hints like
* LENIENT_DATUM_SHIFT, which usually don't apply to authority factories.
* An other way to see this is to said that this class "consumed" the hints.
* By removing them, we increase the chances to get an empty map of remaining hints,
* which in turn help to get the default CoordinateOperationAuthorityFactory
* (instead of forcing a new instance).
*/
userHints = new Hints(userHints);
userHints.keySet().removeAll(hints.keySet());
userHints.remove(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER);
userHints.remove(Hints.FORCE_STANDARD_AXIS_DIRECTIONS);
userHints.remove(Hints.FORCE_STANDARD_AXIS_UNITS);
if (!userHints.isEmpty()) {
noForce(userHints);
authorityFactory =
ReferencingFactoryFinder.getCoordinateOperationAuthorityFactory(
DEFAULT_AUTHORITY, userHints);
}
}
代码示例来源:origin: geotools/geotools
reduced.remove(key);
代码示例来源:origin: geotools/geotools
if (hints != null) {
hints.remove(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER);
this.hints.add(hints);
this.hints.add(new Hints(Hints.FORCE_LONGITUDE_FIRST_AXIS_ORDER, Boolean.TRUE));
代码示例来源:origin: geotools/geotools
if (hints.remove(key) != hint) {
代码示例来源:origin: geotools/geotools
/**
* Set the CoordinateReferenceSystem for the geometries that will be produced.
*
* @param crs the CoordinateReferenceSystem to set
*/
public void setCoordinateReferenceSystem(CoordinateReferenceSystem crs) {
if (this.crs != crs) {
hints.remove(Hints.CRS);
hints.put(Hints.CRS, crs);
this.crs = crs;
positionFactory = null;
primitiveFactory = null;
aggregateFactory = null;
complexFactory = null;
geometryFactory = null;
getPositionFactory();
getPrecision();
getPrimitiveFactory();
getAggregateFactory();
getGeometryFactory();
getComplexFactory();
}
}
代码示例来源:origin: geotools/geotools
paramBlock.add(Interpolation.getInstance(Interpolation.INTERP_NEAREST));
Hints localHints = new Hints(op.getRenderingHints());
localHints.remove(JAI.KEY_IMAGE_LAYOUT);
ImageLayout il = new ImageLayout();
Rectangle dstBounds = op.getBounds();
代码示例来源:origin: geotools/geotools
private void fillCache(Query query) throws IOException {
Query cloned = new DefaultQuery(query);
cloned.getHints().remove(Hints.GEOMETRY_DISTANCE);
FeatureCollection features = wrapped.getFeatures(cloned);
FeatureIterator fi = features.features();
index = null;
STRtree newIndex = new STRtree();
while (fi.hasNext()) {
// consider turning all geometries into packed ones, to save space
Feature f = fi.next();
newIndex.insert(ReferencedEnvelope.reference(f.getBounds()), f);
}
fi.close();
index = newIndex;
cachedQuery = query;
cachedBounds = getEnvelope(query.getFilter());
dirty = false;
}
代码示例来源:origin: geotools/geotools
localHints.remove(JAI.KEY_IMAGE_LAYOUT);
ImageLayout il = new ImageLayout();
il.setMinX(dstBounds.x);
代码示例来源:origin: geotools/geotools
localHints.remove(JAI.KEY_IMAGE_LAYOUT);
ImageLayout il = new ImageLayout();
il.setMinX(targetBB.x);
localHints.remove(JAI.KEY_IMAGE_LAYOUT);
double[] scalingParams =
new double[] {
内容来源于网络,如有侵权,请联系作者删除!