public class WFSGPEContentHandler extends GPEContentHandler
Constructor and Description |
---|
WFSGPEContentHandler(String searchField) |
Modifier and Type | Method and Description |
---|---|
void |
addElementToFeature(Object element,
Object feature)
This method adds an element to one feature that has been
previously created using the startFeature method
|
void |
addGeometryToFeature(Object geometry,
Object feature)
This method adds a geometry to a feature.
|
void |
addGeometryToMultiGeometry(Object geometry,
Object multigeometry)
It is thrown to add a geometry to one multiGeometry.
|
void |
addLineStringToMultiLineString(Object lineString,
Object multiLineString)
It is thrown to add a lineString to one lineString.
|
void |
addPointToMultiPoint(Object point,
Object multiPoint)
It is thrown to add a point to one multiPoint.
|
void |
addPolygonToMultiPolygon(Object polygon,
Object multiPolygon)
It is thrown to add a polygon to one multiPolygon.
|
ArrayList |
getFeatures() |
HashMap |
getFeatureSet() |
Object |
startElement(String name,
Object value,
String xsElementName,
Object parentElement) |
Object |
startElement(String namespace,
String name,
Object value,
IAttributesIterator attributesIterator,
Object parentElement)
It is thrown when the parser has found a new element
|
Object |
startFeature(String id,
String namespace,
String name,
IAttributesIterator attributes,
Object layer)
It is thrown when the parser has found a new feature.
|
Object |
startFeature(String id,
String name,
String xsElementName,
Object layer) |
Object |
startLayer(String id,
String namespace,
String name,
String description,
String srs,
IAttributesIterator iterator,
Object parentLayer,
Object box)
It is thrown every time that a new layer is detected.
|
Object |
startLineString(String id,
double[] x,
double[] y,
double[] z,
String srs) |
Object |
startLineString(String id,
ICoordinateIterator coords,
String srs)
This method indicates that the parser has found a lineString.
|
Object |
startMultiCurve(String arg0,
String arg1,
int arg2) |
Object |
startMultiLineString(String id,
String srs)
This method indicates that the parser has found a multiLineString.
|
Object |
startMultiLineString(String arg0,
String arg1,
int arg2) |
Object |
startMultiPoint(String id,
String srs)
This method indicates that the parser has found a multipoint.
|
Object |
startMultiPoint(String arg0,
String arg1,
int arg2) |
Object |
startMultiPolygon(String id,
String srs)
This method indicates that the parser has found a multiPolygon.
|
Object |
startMultiPolygon(String arg0,
String arg1,
int arg2) |
Object |
startPoint(String id,
double x,
double y,
double z,
String srs) |
Object |
startPoint(String id,
ICoordinateIterator coords,
String srs)
This method indicates that the parser has found a point.
|
Object |
startPolygon(String id,
double[] x,
double[] y,
double[] z,
String srs) |
Object |
startPolygon(String id,
ICoordinateIterator coords,
String srs)
This method indicates that the parser has found a polygon.
|
addBboxToFeature, addBboxToLayer, addCurveToMultiCurve, addDescriptionToLayer, addFeatureToLayer, addInnerPolygonToPolygon, addMetadataToFeature, addMetadataToMetadata, addNameToFeature, addNameToLayer, addParentElementToElement, addParentLayerToLayer, addSegmentToCurve, addSrsToLayer, addTimeToFeature, endBbox, endCurve, endElement, endFeature, endInnerPolygon, endLayer, endLinearRing, endLineString, endMetadata, endMultiCurve, endMultiGeometry, endMultiLineString, endMultiPoint, endMultiPolygon, endPoint, endPolygon, endTime, getErrorHandler, setErrorHandler, startBbox, startCurve, startCurve, startInnerPolygon, startLinearRing, startMetadata, startMultiCurve, startMultiGeometry, startTime, startTime
public WFSGPEContentHandler(String searchField)
public Object startLayer(String id, String namespace, String name, String description, String srs, IAttributesIterator iterator, Object parentLayer, Object box)
IGPEContentHandler
startLayer
in interface IGPEContentHandler
startLayer
in class GPEContentHandler
id
- Layer identifiernamespace
- XML namespacename
- Layer namedescription
- Layer descriptionsrs
- Layer spatial reference systemiterator
- Layer attributesparentLayer
- Layer that contains itbox
- Layer bounding boxpublic void addElementToFeature(Object element, Object feature)
IGPEContentHandler
addElementToFeature
in interface IGPEContentHandler
addElementToFeature
in class GPEContentHandler
element
- Consumer application object that represents an elementfeature
- Consumer application object that represents the featurepublic void addGeometryToFeature(Object geometry, Object feature)
IGPEContentHandler
addGeometryToFeature
in interface IGPEContentHandler
addGeometryToFeature
in class GPEContentHandler
geometry
- Consumer application object that represents a geometryfeature
- Consumer application object that represents a featurepublic Object startElement(String name, Object value, String xsElementName, Object parentElement)
public Object startElement(String namespace, String name, Object value, IAttributesIterator attributesIterator, Object parentElement)
IGPEContentHandler
startElement
in interface IGPEContentHandler
startElement
in class GPEContentHandler
namespace
- XML namespacename
- Element namevalue
- Element valueattributesIterator
- Element attributesparentElement
- The parent of this element (if exists)public Object startFeature(String id, String namespace, String name, IAttributesIterator attributes, Object layer)
IGPEContentHandler
startFeature
in interface IGPEContentHandler
startFeature
in class GPEContentHandler
id
- Feature identifiernamespace
- XML namespacename
- Feature nameattributes
- Feature attributeslayer
- Consumer application object that represents a layerpublic Object startPoint(String id, ICoordinateIterator coords, String srs)
IGPEContentHandler
startPoint
in interface IGPEContentHandler
startPoint
in class GPEContentHandler
id
- Point identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic Object startLineString(String id, double[] x, double[] y, double[] z, String srs)
public Object startLineString(String id, ICoordinateIterator coords, String srs)
IGPEContentHandler
startLineString
in interface IGPEContentHandler
startLineString
in class GPEContentHandler
id
- LineString identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic Object startPolygon(String id, ICoordinateIterator coords, String srs)
IGPEContentHandler
startPolygon
in interface IGPEContentHandler
startPolygon
in class GPEContentHandler
id
- Polygon identifiercoords
- A coordinates iteratorsrs
- Spatial reference systempublic Object startMultiLineString(String id, String srs)
IGPEContentHandler
startMultiLineString
in interface IGPEContentHandler
startMultiLineString
in class GPEContentHandler
id
- MultiLineString identifiersrs
- Spatial reference systempublic Object startMultiPoint(String id, String srs)
IGPEContentHandler
startMultiPoint
in interface IGPEContentHandler
startMultiPoint
in class GPEContentHandler
id
- MultiPoint identifiersrs
- Spatial reference systempublic Object startMultiPolygon(String id, String srs)
IGPEContentHandler
startMultiPolygon
in interface IGPEContentHandler
startMultiPolygon
in class GPEContentHandler
id
- MultiPolygon identifiersrs
- Spatial reference systempublic void addLineStringToMultiLineString(Object lineString, Object multiLineString)
IGPEContentHandler
addLineStringToMultiLineString
in interface IGPEContentHandler
addLineStringToMultiLineString
in class GPEContentHandler
lineString
- Consumer application object that represents a lineStringmultiLineString
- Consumer application object that represents a multiLineStringpublic void addPointToMultiPoint(Object point, Object multiPoint)
IGPEContentHandler
addPointToMultiPoint
in interface IGPEContentHandler
addPointToMultiPoint
in class GPEContentHandler
point
- Consumer application object that represents a pointmultiPoint
- Consumer application object that represents a multiPointpublic void addPolygonToMultiPolygon(Object polygon, Object multiPolygon)
IGPEContentHandler
addPolygonToMultiPolygon
in interface IGPEContentHandler
addPolygonToMultiPolygon
in class GPEContentHandler
polygon
- Consumer application object that represents a polygonmultiPolygon
- Consumer application object that represents a multiPolygonpublic void addGeometryToMultiGeometry(Object geometry, Object multigeometry)
IGPEContentHandler
addGeometryToMultiGeometry
in interface IGPEContentHandler
addGeometryToMultiGeometry
in class GPEContentHandler
geometry
- Consumer application object that represents a geometrymultigeometry
- Consumer application object that represents a multiGeometrypublic HashMap getFeatureSet()
public ArrayList getFeatures()