com.supermap.services.wps
Class CalculateProfile
- java.lang.Object
-
- com.supermap.services.wps.CalculateProfile
-
public class CalculateProfile extends java.lang.ObjectGet DEM profile
-
-
Field Summary
Fields Modifier and Type Field and Description static ResourceManagerWPS_RESOURCEwps resource manager
-
Constructor Summary
Constructors Constructor and Description CalculateProfile()
-
Method Summary
Methods Modifier and Type Method and Description ProcessResultexecuteGML(SpatialAnalyst spatialAnalystImpl, Execute execute)Get DEM profile, return GML format descriptionProfileResultexecuteJSON(SpatialAnalyst spatialAnalystImpl, Execute execute)Get DEM profile, return JSON format descriptionbooleanexecutePNG(SpatialAnalyst spatialAnalystImpl, Execute execute, java.lang.String name)Get DEM profile, return png imagejava.lang.StringgetCalculateDataSet()Get datasetintgetImageHeight()Get image heightintgetImageWidth()Get image widthGeometrygetLine()Get the line to cut the profilejava.lang.StringgetOutputFormat()Get image formatjava.lang.DoublegetResampleTolerance()Get tolerancevoidsetAnalystParameter(Execute execute)Set parametersvoidsetCalculateDataSet(java.lang.String calculateDataSet)Sets the datasetvoidsetImageHeight(int imageHeight)Get image heightvoidsetImageWidth(int imageWidth)Set image widthvoidsetLine(Geometry line)Set the line to cut the profilevoidsetOutputFormat(java.lang.String outputFormat)Set image formatvoidsetResampleTolerance(java.lang.Double resampleTolerance)Set tolerance
-
-
-
Method Detail
-
getImageWidth
public int getImageWidth()
Get image width
- Returns:
- Since:
- 6.1.3
-
setImageWidth
public void setImageWidth(int imageWidth)
Set image width
- Parameters:
imageWidth-- Since:
- 6.1.3
-
getImageHeight
public int getImageHeight()
Get image height
- Returns:
- Since:
- 6.1.3
-
setImageHeight
public void setImageHeight(int imageHeight)
Get image height
- Parameters:
imageHeight-- Since:
- 6.1.3
-
getOutputFormat
public java.lang.String getOutputFormat()
Get image format
- Returns:
- Since:
- 6.1.3
-
setOutputFormat
public void setOutputFormat(java.lang.String outputFormat)
Set image format
- Parameters:
outputFormat-- Since:
- 6.1.3
-
getLine
public Geometry getLine()
Get the line to cut the profile
- Returns:
- Since:
- 6.1.3
-
setLine
public void setLine(Geometry line)
Set the line to cut the profile
- Parameters:
line-- Since:
- 6.1.3
-
getCalculateDataSet
public java.lang.String getCalculateDataSet()
Get dataset
- Returns:
- Since:
- 6.1.3
-
setCalculateDataSet
public void setCalculateDataSet(java.lang.String calculateDataSet)
Sets the dataset
- Parameters:
calculateDataSet-- Since:
- 6.1.3
-
getResampleTolerance
public java.lang.Double getResampleTolerance()
Get tolerance
- Returns:
- Since:
- 6.1.3
-
setResampleTolerance
public void setResampleTolerance(java.lang.Double resampleTolerance)
Set tolerance
- Parameters:
resampleTolerance-- Since:
- 6.1.3
-
setAnalystParameter
public void setAnalystParameter(Execute execute) throws OGCExceptionSet parameters- Parameters:
execute-- Throws:
OGCException
-
executeGML
public ProcessResult executeGML(SpatialAnalyst spatialAnalystImpl, Execute execute) throws OGCException
Get DEM profile, return GML format description- Parameters:
spatialAnalystImpl- spatial analyst service componentexecute- execution parameters- Returns:
- ProcessResult result
- Throws:
java.io.IOExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationExceptionOGCException
-
executeJSON
public ProfileResult executeJSON(SpatialAnalyst spatialAnalystImpl, Execute execute) throws OGCException
Get DEM profile, return JSON format description- Parameters:
spatialAnalystImpl- spatial analyst service componentexecute- execution parameters- Returns:
- ProcessResult result
- Throws:
java.io.IOExceptionorg.xml.sax.SAXExceptionjavax.xml.parsers.ParserConfigurationExceptionOGCException
-
executePNG
public boolean executePNG(SpatialAnalyst spatialAnalystImpl, Execute execute, java.lang.String name) throws OGCException
Get DEM profile, return png image- Parameters:
spatialAnalystImpl-execute-name-- Returns:
- Throws:
OGCException
-
-