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 and Description |
---|
GMLBase() |
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
|
public static final java.lang.String XMLSUFFIX
xml suffix
public static final java.lang.String JSONSUFFIX
json suffix
public static final java.lang.String PNGSUFFIX
png suffix
public JAXBTools jaxbTools
JAXB serialization tool class
public int getEpsgCode()
Get epsgCode
public void setEpsgCode(int epsgCode)
Set epsgCode
epsgCode
-public JsonEncoder getJsonEncoder()
Get json encoder
public java.lang.String getSRSS()
Get srs
public Geometry getEnvelope(Geometry geometry)
Gets the enclosing rectangle of the collection object
geometry
-public boolean setMaxPoints(Point2D[] maxPoints, boolean isFirst, Geometry geometryPoints)
maxPoints
- the maximum point setisFirst
- whether the first or notgeometry
- the set pointprotected 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
executeResponse
- Execute responsegeometrySpatialAnalystResult
- Results of geometric object spatial analysisjavax.xml.bind.JAXBException
java.io.IOException
protected java.lang.String generateJSON(java.lang.Object obj, java.lang.String name, boolean save) throws java.io.IOException
obj
- the object to pre-generate JSONname
- the file name to savesave
- whether to savejava.io.IOException