com.supermap.services.wps
Class GMLBase
- java.lang.Object
-
- com.supermap.services.wps.GMLBase
-
-
Field Summary
Fields Modifier and Type Field and Description JAXBToolsjaxbToolsJAXB serialization tool classstatic java.lang.StringJSONSUFFIXjson suffixstatic java.lang.StringPNGSUFFIXpng suffixstatic java.lang.StringXMLSUFFIXxml suffix
-
Constructor Summary
Constructors Constructor and Description GMLBase()
-
Method Summary
Methods Modifier and Type Method and Description protected abstract java.lang.StringgenerateGML(java.lang.String name, boolean succeed, java.util.List<Geometry> geometrys, boolean save, java.lang.String outputFormat)Generate GMLprotected java.lang.StringgenerateJSON(java.lang.Object obj, java.lang.String name, boolean save)Generate JSON according to the objectGeometrygetEnvelope(Geometry geometry)Gets the enclosing rectangle of the collection objectintgetEpsgCode()Get epsgCodeJsonEncodergetJsonEncoder()Get json encoderjava.lang.StringgetSRSS()Get srsvoidsetEpsgCode(int epsgCode)Set epsgCodebooleansetMaxPoints(Point2D[] maxPoints, boolean isFirst, Geometry geometryPoints)Set the maximum point
-
-
-
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
-
-
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 setisFirst- whether the first or notgeometry- 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.IOExceptionGenerate GML
- Parameters:
executeResponse- Execute responsegeometrySpatialAnalystResult- Results of geometric object spatial analysis- Throws:
javax.xml.bind.JAXBExceptionjava.io.IOException
-
generateJSON
protected java.lang.String generateJSON(java.lang.Object obj, java.lang.String name, boolean save) throws java.io.IOExceptionGenerate JSON according to the object- Parameters:
obj- the object to pre-generate JSONname- the file name to savesave- whether to save- Returns:
- JSON string
- Throws:
java.io.IOException
-
-