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, encode
public 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
GeometryEncoder
GeometryEncoder.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)Exception
Copyright © 1996–2019 Geotools. All rights reserved.