org.opengis.coverage.grid.Format.getWriteParameters()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(173)

本文整理了Java中org.opengis.coverage.grid.Format.getWriteParameters()方法的一些代码示例,展示了Format.getWriteParameters()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Format.getWriteParameters()方法的具体详情如下:
包路径:org.opengis.coverage.grid.Format
类名称:Format
方法名:getWriteParameters

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;
  }
}

相关文章