public class GenericGeometryEncoder extends GeometryEncoder<Geometry>
| Constructor and Description |
|---|
GenericGeometryEncoder(Encoder encoder) |
GenericGeometryEncoder(Encoder encoder,
String gmlPrefix,
String gmlUri) |
GenericGeometryEncoder(Encoder encoder,
String gmlPrefix,
String gmlUri,
boolean encodeGmlId) |
| Modifier and Type | Method and Description |
|---|---|
void |
encode(Geometry geometry,
AttributesImpl atts,
GMLWriter handler,
String parentId)
Encodes a geometry value with a given gmlId (implementations might choose to use it to
generate gml:id attributes, depending on the GML version.
|
addGmlId, cloneWithGmlId, encodepublic GenericGeometryEncoder(Encoder encoder)
public GenericGeometryEncoder(Encoder encoder, String gmlPrefix, String gmlUri)
encoder - gmlPrefix - public void encode(Geometry geometry,
AttributesImpl atts,
GMLWriter handler,
String parentId)
throws Exception
GeometryEncoderGeometryEncoder.encode(Geometry, AttributesImpl, GMLWriter)encode in class GeometryEncoder<Geometry>geometry - The Geometry to be encodedatts - Its attributeshandler - The handler used to write XMLparentId - If not null, some implementation will use to as the gml:id (and to build ids for
the nested features)ExceptionCopyright © 1996–2019 Geotools. All rights reserved.