📄 cswsearchtaskbean.java
字号:
if (basicExporter.hasGeometryData()) {
geom = new WebPolygon();
ring = new WebRing();
point = new WebPoint();
// lower left corner
point.setX(basicExporter.getMinX());
point.setY(basicExporter.getMinY());
ring.addPoint(point);
// upper left corner
point = new WebPoint();
point.setX(basicExporter.getMinX());
point.setY(basicExporter.getMaxY());
ring.addPoint(point);
// upper right corner
point = new WebPoint();
point.setX(basicExporter.getMaxX());
point.setY(basicExporter.getMaxY());
ring.addPoint(point);
//lower right corner
point = new WebPoint();
point.setX(basicExporter.getMaxX());
point.setY(basicExporter.getMinY());
ring.addPoint(point);
// close the polygon
point = new WebPoint();
point.setX(basicExporter.getMinX());
point.setY(basicExporter.getMinY());
ring.addPoint(point);
geom.addRing(ring);
cswResult.setWebGeometry(geom);
}
ResultNode resultNode = null;
resultNode = new ResultNode(cswResult, "getDisplayName",
"getDetails", actions, null);
desc = new CswResultDescriptor(CswSearchResult.class,
"getDisplayName", "getDetails", actions, null);
resultNode.setTaskResultDescriptor(desc);
rootNode.addChild(resultNode);
// clear the actions so there are no duplicates
actions.clear();
} catch (InstantiationException ex) {
_logger.warn(ex);
renderMessage(TextResources.getResourceString(
"task.ui.error.unexpectedErrorOperationAborted"));
} catch (IllegalAccessException ex) {
_logger.warn(ex);
renderMessage(TextResources.getResourceString(
"task.ui.error.unexpectedErrorOperationAborted"));
} catch (ClassNotFoundException ex) {
_logger.warn(ex);
renderMessage(TextResources.getResourceString(
"task.ui.error.unexpectedErrorOperationAborted"));
}
}
wResults.addResultNode(rootNode);
}
/**
* Gets the Agriculture data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getAgricultureDC() {
return m_agricultureDC;
}
/**
* Sets the Agriculture data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param agricultureDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setAgricultureDC(boolean agricultureDC) {
m_agricultureDC = agricultureDC;
}
/**
* Gets the Biology data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getBiologyDC() {
return m_biologyDC;
}
/**
* Sets the Biology data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param biologyDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setBiologyDC(boolean biologyDC) {
m_biologyDC = biologyDC;
}
/**
* Gets the Administrative data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getAdminDC() {
return m_adminDC;
}
/**
* Sets the Administrative data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param adminDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setAdminDC(boolean adminDC) {
m_adminDC = adminDC;
}
/**
* Gets the Atmospheric data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getAtmosphericDC() {
return m_atmosphericDC;
}
/**
* Sets the Atmospheric data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param atmosphericDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setAtmosphericDC(boolean atmosphericDC) {
m_atmosphericDC = atmosphericDC;
}
/**
* Gets the Business data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getBusinessDC() {
return m_businessDC;
}
/**
* Sets the Business data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param businessDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setBusinessDC(boolean businessDC) {
m_businessDC = businessDC;
}
/**
* Gets the Elevation data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getElevationDC() {
return m_elevationDC;
}
/**
* Sets the Elevation data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param elevationDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setElevationDC(boolean elevationDC) {
m_elevationDC = elevationDC;
}
/**
* Gets the Geological data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getGeologicalDC() {
return m_geologicalDC;
}
/**
* Sets the Geological data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param geologicalDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setGeologicalDC(boolean geologicalDC) {
m_geologicalDC = geologicalDC;
}
/**
* Gets the Human data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getHumanDC() {
return m_humanDC;
}
/**
* Sets the Human data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param humanDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setHumanDC(boolean humanDC) {
m_humanDC = humanDC;
}
/**
* Gets the Imagery data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getImageryDC() {
return m_imageryDC;
}
/**
* Sets the Imagery data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param imageryDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setImageryDC(boolean imageryDC) {
m_imageryDC = imageryDC;
}
/**
* Gets the Military data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getMilitaryDC() {
return m_militaryDC;
}
/**
* Sets the Military data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param militaryDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setMilitaryDC(boolean militaryDC) {
m_militaryDC = militaryDC;
}
/**
* Gets the Inland/Water data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getInlandWaterDC() {
return m_inlandWaterDC;
}
/**
* Sets the Inland/Water data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param inlandWaterDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setInlandWaterDC(boolean inlandWaterDC) {
m_inlandWaterDC = inlandWaterDC;
}
/**
* Gets the Locations data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getLocationsDC() {
return m_locationsDC;
}
/**
* Sets the Locations data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param locationsDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setLocationsDC(boolean locationsDC) {
m_locationsDC = locationsDC;
}
/**
* Gets the Oceans data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getOceansDC() {
return m_oceansDC;
}
/**
* Sets the Oceans data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param oceansDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setOceansDC(boolean oceansDC) {
m_oceansDC = oceansDC;
}
/**
* Gets the Cadastral data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getCadastralDC() {
return m_cadastralDC;
}
/**
* Sets the Cadastral data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @param cadastralDC True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public void setCadastralDC(boolean cadastralDC) {
m_cadastralDC = cadastralDC;
}
/**
* Gets the Cultural data category value. This is used
* in the advanced search options of the CS/W get records request.
*
* @return True if the client wants to see CS/W records marked as such,
* false otherwise.
*/
public boolean getCulturalDC() {
return m_culturalDC;
}
/**
* Sets the Cultural data category value. This is used
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -