本文整理了Java中org.geotools.data.Query.getNamespace
方法的一些代码示例,展示了Query.getNamespace
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getNamespace
方法的具体详情如下:
包路径:org.geotools.data.Query
类名称:Query
方法名:getNamespace
[英]Get the namespace of the feature type to be queried.
[中]获取要查询的要素类型的命名空间。
代码示例来源:origin: geotools/geotools
/**
* Return the name of the type that is queried.
*
* @param query
* @return Name constructed from the query.
*/
private Name getName(Query query) {
if (query.getNamespace() == null) {
return Types.typeName(query.getTypeName());
} else {
return Types.typeName(query.getNamespace().toString(), query.getTypeName());
}
}
代码示例来源:origin: geotools/geotools
/**
* Copy contructor.
*
* @param query the query to copy
*/
public Query(Query query) {
this(
query.getTypeName(),
query.getNamespace(),
query.getFilter(),
query.getMaxFeatures(),
query.getProperties(),
query.getHandle());
this.sortBy = query.getSortBy();
this.coordinateSystem = query.getCoordinateSystem();
this.coordinateSystemReproject = query.getCoordinateSystemReproject();
this.version = query.getVersion();
this.hints = query.getHints();
this.startIndex = query.getStartIndex();
this.alias = query.getAlias();
this.joins = new ArrayList();
for (Join j : query.getJoins()) {
this.joins.add(new Join(j));
}
}
代码示例来源:origin: geotools/geotools
URI namespace = query.getNamespace();
if (namespace == null || namespace == Query.NO_NAMESPACE) {
namespace = constraintQuery.getNamespace();
代码示例来源:origin: geotools/geotools
/**
* Copy contructor, clones the state of a generic Query into a DefaultQuery
*
* @param query
*/
public DefaultQuery(Query query) {
this(
query.getTypeName(),
query.getNamespace(),
query.getFilter(),
query.getMaxFeatures(),
query.getProperties(),
query.getHandle());
this.sortBy = query.getSortBy();
this.coordinateSystem = query.getCoordinateSystem();
this.coordinateSystemReproject = query.getCoordinateSystemReproject();
this.version = query.getVersion();
this.hints = query.getHints();
this.startIndex = query.getStartIndex();
this.alias = query.getAlias();
this.joins = query.getJoins();
}
}
代码示例来源:origin: org.geotools/gt-app-schema
/**
* Return the name of the type that is queried.
*
* @param query
* @return Name constructed from the query.
*/
private Name getName(Query query) {
if (query.getNamespace() == null) {
return Types.typeName(query.getTypeName());
} else {
return Types.typeName(query.getNamespace().toString(), query.getTypeName());
}
}
代码示例来源:origin: org.geoserver.csw/gs-csw-api
@Override
public FeatureCollection getRecords(Query q, Transaction t, String outputSchema)
throws IOException {
RecordDescriptor rd;
Name typeName = null;
if (q.getTypeName() == null) {
typeName = CSWRecordDescriptor.RECORD_DESCRIPTOR.getName();
} else if (q.getNamespace() != null) {
typeName = new NameImpl(q.getNamespace().toString(), q.getTypeName());
} else {
typeName = new NameImpl(q.getTypeName());
}
rd = descriptorByType.get(typeName);
RecordDescriptor rdOutput;
if (outputSchema == null || "".equals(outputSchema)) {
rdOutput =
descriptorByOutputSchema.get(
CSWRecordDescriptor.getInstance().getOutputSchema());
} else {
rdOutput = descriptorByOutputSchema.get(outputSchema);
}
if (rd == null) {
throw new IOException(q.getTypeName() + " is not a supported type");
}
if (rdOutput == null) {
throw new IOException(outputSchema + " is not a supported output schema");
}
return getRecordsInternal(rd, rdOutput, q, t);
}
代码示例来源:origin: org.geotools/gt2-main
URI namespace = query.getNamespace();
if (namespace == null || namespace == Query.NO_NAMESPACE) {
namespace = constraintQuery.getNamespace();
代码示例来源:origin: org.geotools/gt-main
URI namespace = query.getNamespace();
if (namespace == null || namespace == Query.NO_NAMESPACE) {
namespace = constraintQuery.getNamespace();
代码示例来源:origin: org.geotools/gt2-main
/**
* Copy contructor, clones the state of a generic Query into a DefaultQuery
* @param query
*/
public DefaultQuery(Query query) {
this(query.getTypeName(), query.getNamespace(), query.getFilter(), query.getMaxFeatures(),
query.getPropertyNames(), query.getHandle());
this.sortBy = query.getSortBy();
this.coordinateSystem = query.getCoordinateSystem();
this.coordinateSystemReproject = query.getCoordinateSystemReproject();
this.version = query.getVersion();
this.hints = query.getHints();
this.startIndex = query.getStartIndex();
}
代码示例来源:origin: org.geotools/gt-main
/**
* Copy contructor, clones the state of a generic Query into a DefaultQuery
* @param query
*/
public DefaultQuery(Query query) {
this(query.getTypeName(), query.getNamespace(), query.getFilter(), query.getMaxFeatures(),
query.getProperties(), query.getHandle());
this.sortBy = query.getSortBy();
this.coordinateSystem = query.getCoordinateSystem();
this.coordinateSystemReproject = query.getCoordinateSystemReproject();
this.version = query.getVersion();
this.hints = query.getHints();
this.startIndex = query.getStartIndex();
this.alias = query.getAlias();
this.joins = query.getJoins();
}
内容来源于网络,如有侵权,请联系作者删除!