本文整理了Java中org.geotools.data.Query.isMaxFeaturesUnlimited
方法的一些代码示例,展示了Query.isMaxFeaturesUnlimited
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.isMaxFeaturesUnlimited
方法的具体详情如下:
包路径:org.geotools.data.Query
类名称:Query
方法名:isMaxFeaturesUnlimited
[英]Check if this query allows an unlimited number of features to be returned.
[中]检查此查询是否允许返回无限数量的功能。
代码示例来源:origin: geotools/geotools
if (offset > 0 || !query.isMaxFeaturesUnlimited()) {
long max = Long.MAX_VALUE;
if (!query.isMaxFeaturesUnlimited()) {
max = query.getMaxFeatures();
代码示例来源:origin: geotools/geotools
if (offset > 0 || !query.isMaxFeaturesUnlimited()) {
long max = Long.MAX_VALUE;
if (!query.isMaxFeaturesUnlimited()) {
max = query.getMaxFeatures();
代码示例来源:origin: locationtech/geowave
private Integer getLimit(final Query query) {
if (!query.isMaxFeaturesUnlimited() && (query.getMaxFeatures() >= 0)) {
return query.getMaxFeatures();
}
return null;
}
代码示例来源:origin: ngageoint/elasticgeo
private int getSize(Query query) {
final int size;
if (!query.isMaxFeaturesUnlimited()) {
size = query.getMaxFeatures();
} else {
size = getDataStore().getDefaultMaxFeatures();
LOGGER.fine("Unlimited maxFeatures not supported. Using default: " + size);
}
return size;
}
代码示例来源:origin: org.geoserver/kml
computeQueryBounds = false;
if (!computeQueryBounds && !layerQuery.isMaxFeaturesUnlimited()) {
computeQueryBounds = true;
代码示例来源:origin: locationtech/geogig
.get(Hints.JTS_GEOMETRY_FACTORY);
final @Nullable Integer offset = query.getStartIndex();
final @Nullable Integer limit = query.isMaxFeaturesUnlimited() ? null
: query.getMaxFeatures();
final @Nullable Double simplifyDistance = (Double) hints.get(Hints.GEOMETRY_SIMPLIFICATION);
代码示例来源:origin: org.geotools/gt-main
if (offset > 0 || !query.isMaxFeaturesUnlimited()) {
long max = Long.MAX_VALUE;
if (!query.isMaxFeaturesUnlimited()) {
max = query.getMaxFeatures();
代码示例来源:origin: org.geotools/gt-main
if (offset > 0 || !query.isMaxFeaturesUnlimited()) {
long max = Long.MAX_VALUE;
if (!query.isMaxFeaturesUnlimited()) {
max = query.getMaxFeatures();
代码示例来源:origin: locationtech/geogig
.get(Hints.JTS_GEOMETRY_FACTORY);
final @Nullable Integer offset = query.getStartIndex();
final @Nullable Integer limit = query.isMaxFeaturesUnlimited() ? null
: query.getMaxFeatures();
代码示例来源:origin: locationtech/geogig
private FeatureReader<SimpleFeatureType, SimpleFeature> getReader(Query query) {
GeometryFactory geometryFactory = (GeometryFactory) query.getHints()
.get(Hints.JTS_GEOMETRY_FACTORY);
Integer offset = query.getStartIndex();
Integer limit = query.isMaxFeaturesUnlimited() ? null : query.getMaxFeatures();
String[] propertyNames = query.getPropertyNames();
ScreenMap screenMap = (ScreenMap) query.getHints().get(Hints.SCREENMAP);
SortBy[] sortBy = query.getSortBy();
reader = builder.filter(query.getFilter())//
.geometryFactory(geometryFactory)//
.offset(offset)//
.limit(limit)//
.propertyNames(propertyNames)//
.screenMap(screenMap)//
.sortBy(sortBy)//
.build();
return reader;
}
代码示例来源:origin: org.locationtech.geogig/geogig-datastore
private FeatureReader<SimpleFeatureType, SimpleFeature> getReader(Query query) {
GeometryFactory geometryFactory = (GeometryFactory) query.getHints()
.get(Hints.JTS_GEOMETRY_FACTORY);
Integer offset = query.getStartIndex();
Integer limit = query.isMaxFeaturesUnlimited() ? null : query.getMaxFeatures();
String[] propertyNames = query.getPropertyNames();
ScreenMap screenMap = (ScreenMap) query.getHints().get(Hints.SCREENMAP);
SortBy[] sortBy = query.getSortBy();
reader = builder.filter(query.getFilter())//
.geometryFactory(geometryFactory)//
.offset(offset)//
.limit(limit)//
.propertyNames(propertyNames)//
.screenMap(screenMap)//
.sortBy(sortBy)//
.build();
return reader;
}
内容来源于网络,如有侵权,请联系作者删除!