public class JSGeometry extends Object
| Constructor and Description |
|---|
JSGeometry(it.prato.comune.utilita.logging.interfaces.LogInterface logger)
Costruttore della classe JSGeometry.
|
JSGeometry(String JSGeometry,
it.prato.comune.utilita.logging.interfaces.LogInterface logger)
Costruttore della classe JSGeometry.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getAdditionalFields() |
Map<String,Object> |
getAttributes() |
String |
getBoundingbox() |
int |
getCodTPN() |
String |
getDescription() |
List<String> |
getDescriptionSuggest() |
String |
getGeometry() |
String |
getGetFeatureInfoLink() |
String |
getKey() |
String |
getSourceBBOX() |
Integer |
getSourceHeight() |
String |
getSourceHTTP() |
String |
getSourceLayer() |
String |
getSourceStyle() |
Integer |
getSourceWidth() |
Integer |
getSourceX() |
Integer |
getSourceY() |
String |
getSRID() |
static OggettoTerritorio |
jsGeometryToOggettoTerritorio(LayerTerritorio layer,
JSGeometry jsG,
it.prato.comune.utilita.logging.interfaces.LogInterface logger)
Converte un oggetto JSGeometry nel corrispondente OggettoTerritorio.
|
static OggettoTerritorio |
jsGeometryToOggettoTerritorio(SITLayersManager terr,
String JSGeom,
it.prato.comune.utilita.logging.interfaces.LogInterface logger)
Converte un oggetto JSGeometry nel corrispondente OggettoTerritorio.
|
static net.sf.json.JSONObject |
oggettoTerritorioToJSGeometry(OggettoTerritorio ogg,
it.prato.comune.utilita.logging.interfaces.LogInterface logger) |
static net.sf.json.JSONObject |
oggettoTerritorioToJSGeometry(OggettoTerritorio ogg,
String toCRS,
it.prato.comune.utilita.logging.interfaces.LogInterface logger)
Converte un OggettoTerritorio passato come argomento in un JSGeometry (JSONObject).
|
static net.sf.json.JSONObject |
oggettoTerritorioToJSGeometryArray(List<? extends OggettoTerritorio> oggetti,
it.prato.comune.utilita.logging.interfaces.LogInterface logger)
Non supporta per retrocompatibilità la presenza di attributi nel valore ritornato
|
static net.sf.json.JSONObject |
oggettoTerritorioToJSGeometryArray(List<? extends OggettoTerritorio> oggetti,
String toCRS,
it.prato.comune.utilita.logging.interfaces.LogInterface logger)
Converte una lista di OggettoTerritorio in un array di JSGeometry (JSONArray).
|
void |
setCodTPN(int codTPN) |
void |
setDescription(String description) |
void |
setDescriptionSuggest(List<String> descriptionSuggest) |
void |
setGeometry(String geometry) |
void |
setGetFeatureInfoLink(String getFeatureInfoLink) |
void |
setKey(String key) |
void |
setSourceBBOX(String sourceBBOX) |
void |
setSourceHeight(Integer sourceHeight) |
void |
setSourceHTTP(String sourceHTTP) |
void |
setSourceLayer(String sourceLayer) |
void |
setSourceStyle(String sourceStyle) |
void |
setSourceWidth(Integer sourceWidth) |
void |
setSourceX(Integer sourceX) |
void |
setSourceY(Integer sourceY) |
void |
setSRID(String srid) |
static JSGeometry |
toJSGeometry(IGetFeatureInfoObject oggTer,
String toCRS,
it.prato.comune.utilita.logging.interfaces.LogInterface logger,
boolean withGeometry)
Converte IGetFeatureInfoObject passato come argomento in un oggetto JSGeometry.
|
static JSGeometry |
toJSGeometry(IGetFeatureInfoObject oggTer,
String toCRS,
it.prato.comune.utilita.logging.interfaces.LogInterface logger,
boolean withGeometry,
boolean withAttributes)
Converte IGetFeatureInfoObject passato come argomento in un oggetto JSGeometry.
|
static JSGeometry |
toJSGeometry(OggettoTerritorio oggTer,
it.prato.comune.utilita.logging.interfaces.LogInterface logger) |
static JSGeometry |
toJSGeometry(OggettoTerritorio oggTer,
String toCRS,
it.prato.comune.utilita.logging.interfaces.LogInterface logger) |
static JSGeometry |
toJSGeometry(OggettoTerritorio oggTer,
String toCRS,
it.prato.comune.utilita.logging.interfaces.LogInterface logger,
boolean withGeometry)
Converte l'OggettoTerritorio passato come argomento il un oggeto JSGeometry.
|
static JSGeometry |
toJSGeometry(OggettoTerritorio oggTer,
String toCRS,
it.prato.comune.utilita.logging.interfaces.LogInterface logger,
boolean withGeometry,
boolean withAttributes)
Converte l'OggettoTerritorio passato come argomento il un oggeto JSGeometry.
|
static List<JSGeometry> |
toJSGeometryArrayList(List<? extends OggettoTerritorio> oggTerCollection,
it.prato.comune.utilita.logging.interfaces.LogInterface logger) |
static List<JSGeometry> |
toJSGeometryList(List<? extends OggettoTerritorio> oggTerCollection,
String toCRS,
it.prato.comune.utilita.logging.interfaces.LogInterface logger,
boolean withGeometry)
Converte una lista di OggettoTerritorio in una lista di JSGeometry.
|
static List<JSGeometry> |
toJSGeometryList1(List<IGetFeatureInfoObject> getFeatureInfoObjectCollection,
String toCRS,
it.prato.comune.utilita.logging.interfaces.LogInterface logger,
boolean withGeometry)
Converte una lista di OggettoTerritorio in una lista di JSGeometry.
|
static List<JSGeometry> |
toJSGeometryList1(List<IGetFeatureInfoObject> getFeatureInfoObjectCollection,
String toCRS,
it.prato.comune.utilita.logging.interfaces.LogInterface logger,
boolean withGeometry,
boolean withAttributes)
Converte una lista di OggettoTerritorio in una lista di JSGeometry.
|
protected static com.vividsolutions.jts.geom.Geometry |
WKTToGeometry(String WKTGeom,
it.prato.comune.utilita.logging.interfaces.LogInterface logger)
Converte una Geometria da WKT a com.vividsolutions.jts.geom.Geometry.
|
public JSGeometry(it.prato.comune.utilita.logging.interfaces.LogInterface logger)
logger - public JSGeometry(String JSGeometry, it.prato.comune.utilita.logging.interfaces.LogInterface logger)
JSGeometry - logger - protected static com.vividsolutions.jts.geom.Geometry WKTToGeometry(String WKTGeom, it.prato.comune.utilita.logging.interfaces.LogInterface logger)
WKTGeom - logger - public static OggettoTerritorio jsGeometryToOggettoTerritorio(LayerTerritorio layer, JSGeometry jsG, it.prato.comune.utilita.logging.interfaces.LogInterface logger)
layer - jsG - logger - public static OggettoTerritorio jsGeometryToOggettoTerritorio(SITLayersManager terr, String JSGeom, it.prato.comune.utilita.logging.interfaces.LogInterface logger)
terr - JSGeom - logger - public static net.sf.json.JSONObject oggettoTerritorioToJSGeometry(OggettoTerritorio ogg, it.prato.comune.utilita.logging.interfaces.LogInterface logger) throws SITException
ogg - logger - SITExceptionoggettoTerritorioToJSGeometry(OggettoTerritorio ogg, String toCRS, LogInterface logger)public static net.sf.json.JSONObject oggettoTerritorioToJSGeometry(OggettoTerritorio ogg, String toCRS, it.prato.comune.utilita.logging.interfaces.LogInterface logger) throws SITException
ogg - toCRS - logger - SITExceptionpublic static net.sf.json.JSONObject oggettoTerritorioToJSGeometryArray(List<? extends OggettoTerritorio> oggetti, it.prato.comune.utilita.logging.interfaces.LogInterface logger) throws SITException
oggetti - logger - SITExceptionoggettoTerritorioToJSGeometryArray(List, String, LogInterface)public static net.sf.json.JSONObject oggettoTerritorioToJSGeometryArray(List<? extends OggettoTerritorio> oggetti, String toCRS, it.prato.comune.utilita.logging.interfaces.LogInterface logger) throws SITException
oggetti - toCRS - logger - SITExceptionpublic String getBoundingbox()
public static JSGeometry toJSGeometry(OggettoTerritorio oggTer, it.prato.comune.utilita.logging.interfaces.LogInterface logger) throws SITException
oggTer - logger - SITExceptiontoJSGeometry(OggettoTerritorio oggTer, String toCRS, LogInterface logger)public static JSGeometry toJSGeometry(OggettoTerritorio oggTer, String toCRS, it.prato.comune.utilita.logging.interfaces.LogInterface logger) throws SITException
oggTer - toCRS - logger - SITExceptiontoJSGeometry(OggettoTerritorio oggTer, String toCRS, LogInterface logger, boolean withGeometry)public static JSGeometry toJSGeometry(IGetFeatureInfoObject oggTer, String toCRS, it.prato.comune.utilita.logging.interfaces.LogInterface logger, boolean withGeometry) throws SITException
oggTer - oggetto da convertiretoCRS - sistema di riferimento nel quale convertire la geometria (se null non viene effettuata alcuna conversione)logger - withGeometry - flag che stabilisce se nel JSGeometry risultante deve essere valorizzata anche la geometriaSITExceptionpublic static JSGeometry toJSGeometry(IGetFeatureInfoObject oggTer, String toCRS, it.prato.comune.utilita.logging.interfaces.LogInterface logger, boolean withGeometry, boolean withAttributes) throws SITException
oggTer - oggetto da convertiretoCRS - sistema di riferimento nel quale convertire la geometria (se null non viene effettuata alcuna conversione)logger - withGeometry - flag che stabilisce se nel JSGeometry risultante deve essere valorizzata anche la geometriawithAttributes - flag che stabilisce se nel JSGeometry risultante devono essere valorizzati anche gli attributi.
Nell'elenco degli attributi ##FID## sarà sostituito da __FID__ per problemi di compatibilità con javascriptSITExceptionpublic static JSGeometry toJSGeometry(OggettoTerritorio oggTer, String toCRS, it.prato.comune.utilita.logging.interfaces.LogInterface logger, boolean withGeometry) throws SITException
oggTer - oggetto da convertiretoCRS - sistema di riferimento nel quale convertire la geometria (se null non viene effettuata alcuna conversione)logger - withGeometry - flag che stabilisce se nel JSGeometry risultante deve essere valorizzata anche la geometriaSITExceptionpublic static JSGeometry toJSGeometry(OggettoTerritorio oggTer, String toCRS, it.prato.comune.utilita.logging.interfaces.LogInterface logger, boolean withGeometry, boolean withAttributes) throws SITException
oggTer - oggetto da convertiretoCRS - sistema di riferimento nel quale convertire la geometria (se null non viene effettuata alcuna conversione)logger - withGeometry - flag che stabilisce se nel JSGeometry risultante deve essere valorizzata anche la geometriawithAttributes - flag che stabilisce se nel JSGeometry risultante devono essere valorizzati anche gli attributi.
Nell'elenco degli attributi ##FID## sarà sostituito da __FID__ per problemi di compatibilità con javascriptSITExceptionpublic static List<JSGeometry> toJSGeometryArrayList(List<? extends OggettoTerritorio> oggTerCollection, it.prato.comune.utilita.logging.interfaces.LogInterface logger) throws SITException
oggTerCollection - logger - SITExceptiontoJSGeometryList(List, String, LogInterface, boolean)public static List<JSGeometry> toJSGeometryList(List<? extends OggettoTerritorio> oggTerCollection, String toCRS, it.prato.comune.utilita.logging.interfaces.LogInterface logger, boolean withGeometry) throws SITException
oggTerCollection - toCRS - logger - withGeometry - SITExceptionpublic static List<JSGeometry> toJSGeometryList1(List<IGetFeatureInfoObject> getFeatureInfoObjectCollection, String toCRS, it.prato.comune.utilita.logging.interfaces.LogInterface logger, boolean withGeometry) throws SITException
getFeatureInfoObjectCollection - toCRS - logger - withGeometry - SITExceptionpublic static List<JSGeometry> toJSGeometryList1(List<IGetFeatureInfoObject> getFeatureInfoObjectCollection, String toCRS, it.prato.comune.utilita.logging.interfaces.LogInterface logger, boolean withGeometry, boolean withAttributes) throws SITException
getFeatureInfoObjectCollection - toCRS - logger - withGeometry - withAttributes - SITExceptionpublic int getCodTPN()
public void setCodTPN(int codTPN)
codTPN - public String getKey()
public void setKey(String key)
key - public String getGeometry()
public void setGeometry(String geometry)
geometry - public String getDescription()
public void setDescription(String description)
description - public String getSRID()
public void setSRID(String srid)
srid - public void setDescriptionSuggest(List<String> descriptionSuggest)
descriptionSuggest - public String getGetFeatureInfoLink()
public void setGetFeatureInfoLink(String getFeatureInfoLink)
getFeatureInfoLink - public String getSourceHTTP()
public void setSourceHTTP(String sourceHTTP)
sourceHTTP - the sourceHTTP to setpublic String getSourceLayer()
public void setSourceLayer(String sourceLayer)
sourceLayer - the sourceLayer to setpublic String getSourceBBOX()
public void setSourceBBOX(String sourceBBOX)
sourceBBOX - the sourceBBOX to setpublic String getSourceStyle()
public void setSourceStyle(String sourceStyle)
sourceStyle - the sourceStyle to setpublic Integer getSourceWidth()
public void setSourceWidth(Integer sourceWidth)
sourceWidth - the sourceWidth to setpublic Integer getSourceHeight()
public void setSourceHeight(Integer sourceHeight)
sourceHeight - the sourceHeight to setpublic Integer getSourceX()
public void setSourceX(Integer sourceX)
sourceX - the sourceX to setpublic Integer getSourceY()
public void setSourceY(Integer sourceY)
sourceY - the sourceY to setCopyright © 2017 Comune di Prato. All rights reserved.