org.esa.snap.core.datamodel.GeoCoding.getImageCRS()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(153)

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

GeoCoding.getImageCRS介绍

暂无

代码示例

代码示例来源:origin: senbox-org/snap-desktop

private static SimpleFeatureType createTrackFeatureType(GeoCoding geoCoding) {
  SimpleFeatureTypeBuilder ftb = new SimpleFeatureTypeBuilder();
  ftb.setName("org.esa.snap.TrackPoint");
  /*0*/
  ftb.add("pixelPos", Point.class, geoCoding.getImageCRS());
  /*1*/
  ftb.add("geoPos", Point.class, DefaultGeographicCRS.WGS84);
  /*2*/
  ftb.add("data", Double.class);
  ftb.setDefaultGeometry(geoCoding instanceof CrsGeoCoding ? "geoPos" : "pixelPos");
  // GeoTools Bug: this doesn't work
  // ftb.userData("trackPoints", "true");
  final SimpleFeatureType ft = ftb.buildFeatureType();
  ft.getUserData().put("trackPoints", "true");
  return ft;
}

代码示例来源:origin: senbox-org/s2tbx

double y = pol.getCoordinates()[index].y;
try {
  DirectPosition pos = CRS.findMathTransform(product.getSceneGeoCoding().getMapCRS(), product.getSceneGeoCoding().getImageCRS()).transform(new DirectPosition2D(x, y), null);
  double[] values = pos.getCoordinate();
  xCoordinates[index] = (int) values[0];

代码示例来源:origin: senbox-org/snap-desktop

addRowWithTextField("WKT of the image CRS", geoCoding.getImageCRS().toString());
addRowWithTextField("WKT of the geographical CRS", geoCoding.getGeoCRS().toString());

相关文章