@Api(allMethods=true)
public interface DtoConverterService
| Modifier and Type | Method and Description |
|---|---|
LayerType |
toDto(Class<? extends com.vividsolutions.jts.geom.Geometry> geometryClass)
Convert a geometry class to a layer type.
|
org.geomajas.geometry.Bbox |
toDto(com.vividsolutions.jts.geom.Envelope envelope)
Convert JTS envelope into a bbox.
|
org.geomajas.geometry.Geometry |
toDto(com.vividsolutions.jts.geom.Geometry geometry)
Takes in a JTS geometry, and creates a new DTO geometry from it.
|
Feature |
toDto(InternalFeature feature)
Convert the server side feature to a DTO feature that can be sent to the client.
|
Feature |
toDto(InternalFeature feature,
int featureIncludes)
Convert the server side feature to a DTO feature that can be sent to the client.
|
VectorTile |
toDto(InternalTile tile)
Convert a server-side tile representations into a DTO tile.
|
VectorTile |
toDto(InternalTile tile,
String crs,
int featureIncludes)
Deprecated.
|
Attribute<?> |
toDto(Object object,
AbstractAttributeInfo info)
Converts a server-side attribute object into a DTO attribute.
|
Attribute<?> |
toDto(Object object,
AttributeInfo info)
Deprecated.
|
Object |
toInternal(Attribute<?> attribute)
Converts a DTO attribute into a generic attribute object.
|
com.vividsolutions.jts.geom.Envelope |
toInternal(org.geomajas.geometry.Bbox bbox)
Convert a bbox to a JTS envelope.
|
InternalFeature |
toInternal(Feature dto)
Convert a DTO feature to a server-side feature.
|
com.vividsolutions.jts.geom.Geometry |
toInternal(org.geomajas.geometry.Geometry geometry)
Takes in a DTO geometry, and converts it into a JTS geometry.
|
Class<? extends com.vividsolutions.jts.geom.Geometry> |
toInternal(LayerType layerType)
Convert a layer type to a geometry class.
|
Object toInternal(Attribute<?> attribute) throws GeomajasException
attribute - The DTO attribute.FeatureModel), we return an Object.GeomajasException - conversion failed@Deprecated Attribute<?> toDto(Object object, AttributeInfo info) throws GeomajasException
toDto(Object, org.geomajas.configuration.AbstractAttributeInfo)object - The attribute value.info - The attribute definition from the configuration.GeomajasException - conversion failedAttribute<?> toDto(Object object, AbstractAttributeInfo info) throws GeomajasException
object - The attribute value.info - The attribute definition from the configuration.GeomajasException - conversion failedFeature toDto(InternalFeature feature, int featureIncludes) throws GeomajasException
feature - The server-side feature representation.featureIncludes - Indicate which aspects of the should be included, see VectorLayerServiceGeomajasException - conversion failedFeature toDto(InternalFeature feature) throws GeomajasException
feature - The server-side feature representation.GeomajasException - conversion failedInternalFeature toInternal(Feature dto) throws GeomajasException
dto - The DTO feature that comes from the client.GeomajasException - conversion failedorg.geomajas.geometry.Geometry toDto(com.vividsolutions.jts.geom.Geometry geometry)
throws GeomajasException
geometry - The geometry to convert into a DTO geometry.GeomajasException - conversion failedcom.vividsolutions.jts.geom.Geometry toInternal(org.geomajas.geometry.Geometry geometry)
throws GeomajasException
geometry - The DTO geometry to convert into a JTS geometry.GeomajasException - conversion failed@Deprecated VectorTile toDto(InternalTile tile, String crs, int featureIncludes) throws GeomajasException
toDto(InternalTile)tile - The server-side representation of a tile.crs - crs code to include in the features (can be null)featureIncludes - Indicate which aspects of the should be included, see VectorLayerServiceGeomajasException - conversion failedVectorTile toDto(InternalTile tile) throws GeomajasException
tile - The server-side representation of a tile.GeomajasException - conversion failedcom.vividsolutions.jts.geom.Envelope toInternal(org.geomajas.geometry.Bbox bbox)
bbox - Geomajas bboxorg.geomajas.geometry.Bbox toDto(com.vividsolutions.jts.geom.Envelope envelope)
envelope - JTS envelopeClass<? extends com.vividsolutions.jts.geom.Geometry> toInternal(LayerType layerType)
layerType - layer typeCopyright © 2015 Geosparc. All Rights Reserved.