本文整理了Java中org.esa.snap.core.datamodel.GeoCoding.canGetGeoPos()
方法的一些代码示例,展示了GeoCoding.canGetGeoPos()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GeoCoding.canGetGeoPos()
方法的具体详情如下:
包路径:org.esa.snap.core.datamodel.GeoCoding
类名称:GeoCoding
方法名:canGetGeoPos
暂无
代码示例来源:origin: senbox-org/snap-desktop
@Override
public boolean accept(Product product) {
final GeoCoding geoCoding = product.getSceneGeoCoding();
return geoCoding != null && geoCoding.canGetGeoPos() && geoCoding.canGetPixelPos();
}
}
代码示例来源:origin: senbox-org/snap-desktop
private boolean canUseGeoCoordinates(Product product) {
final GeoCoding geoCoding = product.getSceneGeoCoding();
return geoCoding != null && geoCoding.canGetPixelPos() && geoCoding.canGetGeoPos();
}
代码示例来源:origin: senbox-org/snap-desktop
private static boolean intersectsWith(Product sourceProduct, Product targetProduct) {
final GeoCoding srcGC = sourceProduct.getSceneGeoCoding();
final GeoCoding targetGC = targetProduct.getSceneGeoCoding();
if (srcGC != null && srcGC.canGetGeoPos() && targetGC != null && targetGC.canGetGeoPos()) {
final GeneralPath[] sourcePath = ProductUtils.createGeoBoundaryPaths(sourceProduct);
final GeneralPath[] targetPath = ProductUtils.createGeoBoundaryPaths(targetProduct);
for (GeneralPath spath : sourcePath) {
Rectangle bounds = spath.getBounds();
for (GeneralPath tPath : targetPath) {
if (tPath.getBounds().intersects(bounds)) {
return true;
}
}
}
}
return false;
}
}
代码示例来源:origin: senbox-org/snap-desktop
private void setEnableState() {
ProductNode productNode = lookup.lookup(ProductNode.class);
boolean state = false;
if (productNode != null) {
Product product = productNode.getProduct();
if (product != null && !product.isMultiSize()) {
state = product.getSceneGeoCoding() != null &&
product.getSceneGeoCoding().canGetGeoPos() &&
product.getSceneGeoCoding().canGetPixelPos();
}
}
setEnabled(state);
}
代码示例来源:origin: senbox-org/snap-desktop
@Override
public boolean accept(Product collocationProduct) {
final Product referenceProduct = getReferenceProduct();
if (referenceProduct == collocationProduct ||
collocationProduct.getSceneGeoCoding() == null) {
return false;
}
if (referenceProduct == null) {
return true;
}
final GeoCoding geoCoding = collocationProduct.getSceneGeoCoding();
if (geoCoding.canGetGeoPos() && geoCoding.canGetPixelPos() && (geoCoding instanceof CrsGeoCoding)) {
final GeneralPath[] sourcePath = ProductUtils.createGeoBoundaryPaths(referenceProduct);
final GeneralPath[] collocationPath = ProductUtils.createGeoBoundaryPaths(collocationProduct);
for (GeneralPath path : sourcePath) {
Rectangle bounds = path.getBounds();
for (GeneralPath colPath : collocationPath) {
if (colPath.getBounds().intersects(bounds)) {
return true;
}
}
}
}
return false;
}
}
代码示例来源:origin: senbox-org/snap-desktop
if (geoCoding.canGetGeoPos()) {
final PixelPos pixelPos = new PixelPos(imagePosX, imagePosY);
geoCoding.getGeoPos(pixelPos, geoPos);
代码示例来源:origin: senbox-org/snap-desktop
if (thisGeoCoding != null && thatGeoCoding != null && thisGeoCoding.canGetGeoPos() && thatGeoCoding.canGetPixelPos()) {
final Viewport thisViewport = layerCanvas.getViewport();
final Viewport thatViewport = thatView.layerCanvas.getViewport();
代码示例来源:origin: senbox-org/s1tbx
if (sourceProducts[0].getSceneGeoCoding() != null && sourceProducts[0].getSceneGeoCoding().canGetGeoPos()) {
masterProduct = sourceProducts[0];
slaveProduct = sourceProducts[1];
} else if (sourceProducts[1].getSceneGeoCoding() != null && sourceProducts[1].getSceneGeoCoding().canGetGeoPos()) {
masterProduct = sourceProducts[1];
slaveProduct = sourceProducts[0];
代码示例来源:origin: senbox-org/snap-desktop
final boolean hasGeoCoding = geoCoding != null;
canGetPixelPos = hasGeoCoding && geoCoding.canGetPixelPos();
canGetGeoPos = hasGeoCoding && geoCoding.canGetGeoPos();
内容来源于网络,如有侵权,请联系作者删除!