org.deegree.gml.feature
Class GMLFeatureWriter
java.lang.Object
org.deegree.gml.feature.GMLFeatureWriter
public class GMLFeatureWriter
- extends Object
Stream-based writer for GML-encoded features and feature collections.
XLink handling
This implementation is aware of xlinks (local as well as remote) and allows to set the
traverseXlinkDepth
parameter, which controls the number of feature levels that are exported inline.
- Version:
- $Revision:$, $Date:$
- Author:
- Markus Schneider , Andrei Ionita, last edited by: $Author:$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GMLFeatureWriter
public GMLFeatureWriter(XMLStreamWriter writer,
CRS outputCRS)
- Parameters:
writer
- outputCRS
- crs used for exported geometries, may be null
(in that case, the crs of the geometries is
used)
GMLFeatureWriter
public GMLFeatureWriter(GMLVersion version,
XMLStreamWriter writer,
CRS outputCRS,
CoordinateFormatter formatter,
String referenceTemplate,
PropertyName[] requestedProps,
int traverseXlinkDepth,
int traverseXlinkExpiry,
boolean exportSfGeometries)
- Parameters:
version
- GML version of the output, must not be null
writer
- outputCRS
- crs used for exported geometries, may be null
(in this case, the original crs of the
geometries is used)formatter
- formatter to use for exporting coordinates, e.g. to limit the number of decimal places, may be
null
(use 5 decimal places)referenceTemplate
- URI template used to create references to local objects, e.g.
http://localhost:8080/d3_wfs_lab/services?SERVICE=WFS&REQUEST=GetGmlObject&VERSION=1.1.0&TRAVERSEXLINKDEPTH=1&GMLOBJECTID={}
, the substring {}
is replaced by the object idrequestedProps
- properties to be exported, may be null
(export all properties)traverseXlinkDepth
- traverseXlinkExpiry
- exportSfGeometries
-
export
public void export(Feature feature)
throws XMLStreamException,
UnknownCRSException,
TransformationException
- Throws:
XMLStreamException
UnknownCRSException
TransformationException
export
public void export(FeatureCollection col,
String noNamespaceSchemaLocation)
throws XMLStreamException,
UnknownCRSException,
TransformationException
- TODO merge with other schema location possibilities
- Parameters:
col
- noNamespaceSchemaLocation
- may be null
- Throws:
XMLStreamException
TransformationException
UnknownCRSException
export
public void export(FeatureCollection fc,
QName name)
throws XMLStreamException,
UnknownCRSException,
TransformationException
- Parameters:
fc
- name
-
- Throws:
XMLStreamException
UnknownCRSException
TransformationException
export
protected void export(Property<?> property,
int inlineLevels)
throws XMLStreamException,
UnknownCRSException,
TransformationException
- Parameters:
property
- inlineLevels
-
- Throws:
XMLStreamException
UnknownCRSException
TransformationException
isExported
public boolean isExported(String memberFid)
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org]]>