|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.xml.transform.TransformerBase.TranslatorSupport
org.geotools.gml.producer.FeatureTransformer.FeatureTranslator
public static class FeatureTransformer.FeatureTranslator
Outputs gml without any fancy indents or newlines.
Field Summary | |
---|---|
protected GeometryTransformer.GeometryTranslator |
geometryTranslator
|
Fields inherited from class org.geotools.xml.transform.TransformerBase.TranslatorSupport |
---|
contentHandler, nsSupport, NULL_ATTS, schemaLocation |
Constructor Summary | |
---|---|
FeatureTransformer.FeatureTranslator(org.xml.sax.ContentHandler handler,
java.lang.String prefix,
java.lang.String ns,
FeatureTransformer.FeatureTypeNamespaces types,
TransformerBase.SchemaLocationSupport schemaLoc)
Constructor with handler. |
Method Summary | |
---|---|
protected GeometryTransformer.GeometryTranslator |
createGeometryTranslator(org.xml.sax.ContentHandler handler)
Method to be subclassed to return a custom geometry translator, mostly for gml3 geometry support. |
protected GeometryTransformer.GeometryTranslator |
createGeometryTranslator(org.xml.sax.ContentHandler handler,
int numDecimals)
|
protected GeometryTransformer.GeometryTranslator |
createGeometryTranslator(org.xml.sax.ContentHandler handler,
int numDecimals,
boolean useDummyZ)
|
protected GeometryTransformer.GeometryTranslator |
createGeometryTranslator(org.xml.sax.ContentHandler handler,
int numDecimals,
int dimension)
Set up a GeometryTranslator for working with content of the indicate dimension. |
void |
encode(java.lang.Object o)
Encode the object. |
protected org.xml.sax.Attributes |
encodeFeatureId(org.opengis.feature.simple.SimpleFeature f)
|
void |
endFeature(org.opengis.feature.simple.SimpleFeature f)
Sends sax for the ending of a feature. |
void |
endFeatureCollection()
|
void |
endFeatureCollection(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
Sends sax for the ending of a feature collection. |
FeatureTransformer.FeatureTypeNamespaces |
getFeatureTypeNamespaces()
|
void |
handleAttribute(org.opengis.feature.type.AttributeDescriptor descriptor,
java.lang.Object value)
handles sax for an attribute. |
void |
handleFeature(org.opengis.feature.simple.SimpleFeature f)
Handles sax for a feature. |
void |
handleFeatureCollection(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
Prints up the gml for a featurecollection. |
void |
handleFeatureIterator(FeatureIterator<org.opengis.feature.simple.SimpleFeature> iterator)
|
void |
handleFeatureReader(FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader)
|
void |
setLockId(java.lang.String lockId)
|
void |
startFeatureCollection()
|
void |
writeBounds(org.opengis.geometry.BoundingBox bounds)
writes the gml:boundedBy element to output based on
fc.getBounds() |
void |
writeNullBounds()
writes null bounds to the output |
Methods inherited from class org.geotools.xml.transform.TransformerBase.TranslatorSupport |
---|
abort, addNamespaceDeclarations, cdata, chars, createAttributes, element, element, elementSafe, end, getDefaultNamespace, getDefaultPrefix, getNamespaceSupport, getSchemaLocationSupport, start, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected GeometryTransformer.GeometryTranslator geometryTranslator
Constructor Detail |
---|
public FeatureTransformer.FeatureTranslator(org.xml.sax.ContentHandler handler, java.lang.String prefix, java.lang.String ns, FeatureTransformer.FeatureTypeNamespaces types, TransformerBase.SchemaLocationSupport schemaLoc)
handler
- the handler to use.prefix
- DOCUMENT ME!ns
- DOCUMENT ME!types
- DOCUMENT ME!schemaLoc
- DOCUMENT ME!Method Detail |
---|
protected GeometryTransformer.GeometryTranslator createGeometryTranslator(org.xml.sax.ContentHandler handler)
handler
-
protected GeometryTransformer.GeometryTranslator createGeometryTranslator(org.xml.sax.ContentHandler handler, int numDecimals)
protected GeometryTransformer.GeometryTranslator createGeometryTranslator(org.xml.sax.ContentHandler handler, int numDecimals, boolean useDummyZ)
handler
- numDecimals
- useDummyZ
-
protected GeometryTransformer.GeometryTranslator createGeometryTranslator(org.xml.sax.ContentHandler handler, int numDecimals, int dimension)
This method can be used by code explicitly wishing to output 2D ordinates.
handler
- numDecimals
- dimension
-
public void setLockId(java.lang.String lockId)
public FeatureTransformer.FeatureTypeNamespaces getFeatureTypeNamespaces()
public void encode(java.lang.Object o) throws java.lang.IllegalArgumentException
Translator
encode
in interface Translator
o
- The Object to encode.
java.lang.IllegalArgumentException
- if the Object is not encodeable.public void handleFeatureIterator(FeatureIterator<org.opengis.feature.simple.SimpleFeature> iterator) throws java.io.IOException
java.io.IOException
public void handleFeatureReader(FeatureReader<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> reader) throws java.io.IOException
java.io.IOException
public void startFeatureCollection()
public void endFeatureCollection()
public void handleFeatureCollection(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
handleFeatureCollection
in interface FeatureCollectionIteration.Handler
collection
- DOCUMENT ME!public void writeBounds(org.opengis.geometry.BoundingBox bounds)
gml:boundedBy
element to output based on
fc.getBounds()
bounds
-
java.lang.RuntimeException
- if it is thorwn while writing the element
or coordinatespublic void writeNullBounds()
java.lang.RuntimeException
- if it is thorwn while writing the element
or coordinatespublic void endFeatureCollection(FeatureCollection<org.opengis.feature.simple.SimpleFeatureType,org.opengis.feature.simple.SimpleFeature> collection)
endFeatureCollection
in interface FeatureCollectionIteration.Handler
collection
- DOCUMENT ME!public void endFeature(org.opengis.feature.simple.SimpleFeature f)
endFeature
in interface FeatureCollectionIteration.Handler
f
- DOCUMENT ME!
java.lang.RuntimeException
- DOCUMENT ME!public void handleAttribute(org.opengis.feature.type.AttributeDescriptor descriptor, java.lang.Object value)
handleAttribute
in interface FeatureCollectionIteration.Handler
descriptor
- DOCUMENT ME!value
- DOCUMENT ME!
java.lang.RuntimeException
- DOCUMENT ME!public void handleFeature(org.opengis.feature.simple.SimpleFeature f)
handleFeature
in interface FeatureCollectionIteration.Handler
f
- DOCUMENT ME!
java.lang.RuntimeException
- DOCUMENT ME!protected org.xml.sax.Attributes encodeFeatureId(org.opengis.feature.simple.SimpleFeature f)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |