org.deegree.gml.feature
Class GMLFeatureWriter
java.lang.Object
org.deegree.gml.feature.GMLFeatureWriter
public class GMLFeatureWriter
- extends java.lang.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:$
Constructor Summary |
GMLFeatureWriter(GMLVersion version,
javax.xml.stream.XMLStreamWriter writer,
CRS outputCRS,
CoordinateFormatter formatter,
java.lang.String referenceTemplate,
PropertyName[] requestedProps,
int traverseXlinkDepth,
int traverseXlinkExpiry,
XLinkPropertyName[] xlinkProps,
boolean exportSfGeometries,
boolean outputGeometries,
java.util.Map<java.lang.String,java.lang.String> prefixToNs,
AdditionalObjectHandler additionalObjectHandler)
|
GMLFeatureWriter(javax.xml.stream.XMLStreamWriter writer,
CRS outputCRS)
|
Method Summary |
void |
export(Feature feature)
|
void |
export(FeatureCollection fc,
javax.xml.namespace.QName name)
|
void |
export(FeatureCollection fc,
java.lang.String noNamespaceSchemaLocation,
java.util.Map<java.lang.String,java.lang.String> bindings)
TODO merge with other schema location possibilities |
boolean |
isExported(java.lang.String memberFid)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GMLFeatureWriter
public GMLFeatureWriter(javax.xml.stream.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,
javax.xml.stream.XMLStreamWriter writer,
CRS outputCRS,
CoordinateFormatter formatter,
java.lang.String referenceTemplate,
PropertyName[] requestedProps,
int traverseXlinkDepth,
int traverseXlinkExpiry,
XLinkPropertyName[] xlinkProps,
boolean exportSfGeometries,
boolean outputGeometries,
java.util.Map<java.lang.String,java.lang.String> prefixToNs,
AdditionalObjectHandler additionalObjectHandler)
- 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
- xlinkProps
- exportSfGeometries
- additionalObjectHandler
-
export
public void export(Feature feature)
throws javax.xml.stream.XMLStreamException,
UnknownCRSException,
TransformationException
- Throws:
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
export
public void export(FeatureCollection fc,
java.lang.String noNamespaceSchemaLocation,
java.util.Map<java.lang.String,java.lang.String> bindings)
throws javax.xml.stream.XMLStreamException,
UnknownCRSException,
TransformationException
- TODO merge with other schema location possibilities
- Parameters:
fc
- noNamespaceSchemaLocation
- may be nullbindings
- optional additional schema locations
- Throws:
javax.xml.stream.XMLStreamException
TransformationException
UnknownCRSException
export
public void export(FeatureCollection fc,
javax.xml.namespace.QName name)
throws javax.xml.stream.XMLStreamException,
UnknownCRSException,
TransformationException
- Parameters:
fc
- name
-
- Throws:
javax.xml.stream.XMLStreamException
UnknownCRSException
TransformationException
isExported
public boolean isExported(java.lang.String memberFid)
Copyright © 2011. All Rights Reserved.