📄 geometrytransformationresult.java
字号:
package com.esri.solutions.jitk.web.projection;
import com.esri.adf.web.data.geometry.WebGeometry;
/**
* Immutable ontainer indicating what transpired when a transformation operation
* was performed on ADF geometry instances. Wraps possibly-different underlying
* API calls into a uniform result-of-a-call concept. Used to help callers
* manage business logic in reaction to the plethora of possible projection-API
* behaviors.
*
* @author D. Freda
*
*/
public class GeometryTransformationResult {
/**
* So that the caller might know if multiple xforms were involved
*/
private boolean dubiousDueToMultipleTransformations;
/**
* So that the caller might know if no xforms were involved (i.e. they were
* needed but lacked)
*/
private boolean lackingTransformations;
/**
* The actual outputted geometry
*/
private WebGeometry transformedGeometry;
/**
* Sole CTOR
*
* @param transformedGeometry
* irrespective of its correctness ro not, the resulting ADF
* geometry instance from some caller-managed transformation
* process. May or may not possess the correct spatial
* reference...but it will contain something, perhaps null
* @param hasMultipleTransformations
* managed by the caller to discern whether or not the
* caller-managed transformation process detected the presence of
* multiple geo-to-geo transformations.
* @param hasNoTransformations
* managed by the caller to indicate the total lack of detectable
* transformations
*/
protected GeometryTransformationResult(
final WebGeometry transformedGeometry,
final boolean hasMultipleTransformations,
final boolean hasNoTransformations) {
this.transformedGeometry = transformedGeometry;
this.dubiousDueToMultipleTransformations = hasMultipleTransformations;
this.lackingTransformations = hasNoTransformations;
}
public WebGeometry getTransformedGeometry() {
return transformedGeometry;
}
public boolean isDubiousDueToMultipleTransformations() {
return dubiousDueToMultipleTransformations;
}
public boolean isLackingTransformations() {
return lackingTransformations;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -