com.supermap.services.wps

Class CalculateProfile

  • java.lang.Object
    • com.supermap.services.wps.CalculateProfile


  • public class CalculateProfile
    extends java.lang.Object
    
    Get DEM profile
    • Field Detail

      • WPS_RESOURCE

        public static final ResourceManager WPS_RESOURCE
        

        wps resource manager

    • Constructor Detail

      • CalculateProfile

        public CalculateProfile()
        
    • 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 OGCException
        
        Set 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 component
        execute - execution parameters
        Returns:
        ProcessResult result
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
        javax.xml.parsers.ParserConfigurationException
        OGCException
      • executeJSON

        public ProfileResult executeJSON(SpatialAnalyst spatialAnalystImpl,
                                Execute execute)
                                  throws OGCException
        
        Get DEM profile, return JSON format description
        Parameters:
        spatialAnalystImpl - spatial analyst service component
        execute - execution parameters
        Returns:
        ProcessResult result
        Throws:
        java.io.IOException
        org.xml.sax.SAXException
        javax.xml.parsers.ParserConfigurationException
        OGCException
      • 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