com.supermap.services.wps

Class GMLBase

  • java.lang.Object
    • com.supermap.services.wps.GMLBase
  • Direct Known Subclasses:
    GML212, GML321


    public abstract class GMLBase
    extends java.lang.Object
    

    GML base class

    Since:
    6.1.3
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      JAXBTools jaxbTools
      JAXB serialization tool class
      static java.lang.String JSONSUFFIX
      json suffix
      static java.lang.String PNGSUFFIX
      png suffix
      static java.lang.String XMLSUFFIX
      xml suffix
    • Constructor Summary

      Constructors 
      Constructor and Description
      GMLBase() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      protected abstract java.lang.String generateGML(java.lang.String name, boolean succeed, java.util.List<Geometry> geometrys, boolean save, java.lang.String outputFormat)
      Generate GML
      protected java.lang.String generateJSON(java.lang.Object obj, java.lang.String name, boolean save)
      Generate JSON according to the object
      Geometry getEnvelope(Geometry geometry)
      Gets the enclosing rectangle of the collection object
      int getEpsgCode()
      Get epsgCode
      JsonEncoder getJsonEncoder()
      Get json encoder
      java.lang.String getSRSS()
      Get srs
      void setEpsgCode(int epsgCode)
      Set epsgCode
      boolean setMaxPoints(Point2D[] maxPoints, boolean isFirst, Geometry geometryPoints)
      Set the maximum point
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • XMLSUFFIX

        public static final java.lang.String XMLSUFFIX
        

        xml suffix

      • JSONSUFFIX

        public static final java.lang.String JSONSUFFIX
        

        json suffix

      • PNGSUFFIX

        public static final java.lang.String PNGSUFFIX
        

        png suffix

      • jaxbTools

        public JAXBTools jaxbTools
        

        JAXB serialization tool class

    • Constructor Detail

      • GMLBase

        public GMLBase()
        
    • Method Detail

      • getEpsgCode

        public int getEpsgCode()
        

        Get epsgCode

        Returns:
      • setEpsgCode

        public void setEpsgCode(int epsgCode)
        

        Set epsgCode

        Parameters:
        epsgCode -
      • getJsonEncoder

        public JsonEncoder getJsonEncoder()
        

        Get json encoder

        Returns:
      • getSRSS

        public java.lang.String getSRSS()
        

        Get srs

        Returns:
      • getEnvelope

        public Geometry getEnvelope(Geometry geometry)
        

        Gets the enclosing rectangle of the collection object

        Parameters:
        geometry -
        Returns:
      • setMaxPoints

        public boolean setMaxPoints(Point2D[] maxPoints,
                           boolean isFirst,
                           Geometry geometryPoints)
        
        Set the maximum point
        Parameters:
        maxPoints - the maximum point set
        isFirst - whether the first or not
        geometry - the set point
        Returns:
      • generateGML

        protected abstract java.lang.String generateGML(java.lang.String name,
                                   boolean succeed,
                                   java.util.List<Geometry> geometrys,
                                   boolean save,
                                   java.lang.String outputFormat)
                                                 throws javax.xml.bind.JAXBException,
                                                        java.io.IOException
        

        Generate GML

        Parameters:
        executeResponse - Execute response
        geometrySpatialAnalystResult - Results of geometric object spatial analysis
        Throws:
        javax.xml.bind.JAXBException
        java.io.IOException
      • generateJSON

        protected java.lang.String generateJSON(java.lang.Object obj,
                                    java.lang.String name,
                                    boolean save)
                                         throws java.io.IOException
        
        Generate JSON according to the object
        Parameters:
        obj - the object to pre-generate JSON
        name - the file name to save
        save - whether to save
        Returns:
        JSON string
        Throws:
        java.io.IOException