本文整理了Java中org.opengis.coverage.grid.Format.getWriteParameters()
方法的一些代码示例,展示了Format.getWriteParameters()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Format.getWriteParameters()
方法的具体详情如下:
包路径:org.opengis.coverage.grid.Format
类名称:Format
方法名:getWriteParameters
[英]Retrieve the parameter information for a GridCoverageWriter#write operation.
[中]
代码示例来源:origin: geoserver/geoserver
@Override
public ParameterValueGroup getWriteParameters() {
return delegateFormat.getWriteParameters();
}
代码示例来源:origin: geoserver/geoserver
final ParameterValueGroup writeParameters = writerParams.getWriteParameters();
final ParameterValue<?> format = writeParameters.parameter("Format");
format.setValue(getFileExtension(outputFormat));
代码示例来源:origin: org.geoserver/wcs
final ParameterValueGroup params = writer.getFormat().getWriteParameters();
代码示例来源:origin: org.n52.wps/52n-wps-io-geotools
ParameterValueGroup params = writer.getFormat().getWriteParameters();
params.parameter("GRASS").setValue(true);
GeneralParameterValue[] gpv = { params.parameter("GRASS") };
代码示例来源:origin: org.geoserver/wcs
public void encode(OutputStream output) throws ServiceException, IOException {
if (sourceCoverage == null) {
throw new IllegalStateException("It seems prepare() has not been called or has not succeed");
}
final GridCoverageWriter writer = new WorldImageWriter(output);
// writing parameters for Image
final Format writerParams = writer.getFormat();
final ParameterValueGroup writeParameters = writerParams.getWriteParameters();
final ParameterValue format = writeParameters.parameter("Format");
format.setValue(this.outputFormat.toLowerCase());
// writing
writer.write(sourceCoverage, new GeneralParameterValue[] {format});
// freeing everything
output.flush();
writer.dispose();
this.sourceCoverage.dispose(false);
this.sourceCoverage = null;
}
}
内容来源于网络,如有侵权,请联系作者删除!