Package org.gvsig.gpe.lib.api.parser
Interface IGPEContentHandlerInmGeom
- All Superinterfaces:
IGPEContentHandlerSFP0
This interface defines the "contract" between the consumer
application and libGPE. It has methods that will be invoke
by the parser every time that an event happens
- Author:
- Jorge Piera Llodr (jorge.piera@iver.es), Carlos Snchez Perin (sanchez_carper@gva.es)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddBboxToFeature(Object bbox, Object feature) This method adds a bounding box to a feature.voidaddBboxToLayer(Object bbox, Object layer) It adds a bounding box to one layer that has been previously created using the startLayer method.voidaddDescriptionToLayer(String description, Object layer) It adds the description to one layer that has been previously created using the startLayer method.voidaddElementToFeature(Object element, Object feature) This method adds an element to one feature that has been previously created using the startFeature methodvoidaddFeatureToLayer(Object feature, Object layer) This method adds a feature to one layer that has been previously created using the startLayer method.voidaddGeometryToFeature(Object geometry, Object feature) This method adds a geometry to a feature.voidaddGeometryToMultiGeometry(Object geometry, Object multiGeometry) It is thrown to add a geometry to one multiGeometry.voidaddInnerPolygonToPolygon(Object innerPolygon, Object Polygon) This method associates a innerPolygon with its polygonvoidaddLineStringToMultiLineString(Object lineString, Object multiLineString) It is thrown to add a lineString to one lineString.voidaddMetadataToFeature(Object metadata, Object feature) This method adds metadata to feature.voidaddMetadataToMetadata(Object metadata, Object parent) This method adds metadata to complex metadata.voidaddNameToFeature(String name, Object feature) This method adds a name to one layer that has been previously created using the startFeature method.voidaddNameToLayer(String name, Object layer) It adds a name to one layer that has been previously created using the startLayer method.voidaddParentElementToElement(Object parent, Object element) It is thrown to establish a relationship parent-child between two elements.voidaddParentLayerToLayer(Object parent, Object layer) It establish the relationship parent-child between two layers that have been previously created using the startLayer method.voidaddPointToMultiPoint(Object point, Object multiPoint) It is thrown to add a point to one multiPoint.voidaddPolygonToMultiPolygon(Object polygon, Object multiPolygon) It is thrown to add a polygon to one multiPolygon.voidaddSrsToLayer(String srs, Object Layer) It adds a spatial reference system to one layer that has been previously created using the startLayer method.voidaddTimeToFeature(Object time, Object feature) This method adds time to feature.voidThis method indicates that the parser thas finished to parse the bounding box.voidendElement(Object element) This method is thrown when the parser find the end of an element.voidendFeature(Object feature) This method is thrown when the parser has finished to parse a feature.voidendInnerPolygon(Object innerPolygon) It is thrown when the innerPolygon has been completely parsed.voidIt is thrown when a layer has been finished to parse.voidendLinearRing(Object linearRing) It is thrown when the linearRing has been completely parsed.voidendLineString(Object lineString) It is thrown when the lineString has been completely parsed.voidendMetadata(Object metadata) This method is thrown when the parser find the end of the metadata of an element.endMultiGeometry(Object multiGeometry) It is thrown when the multiGeometry has been completely parsedendMultiLineString(Object multiLineString) It is thrown when the multiLineString has been completely parsedendMultiPoint(Object multiPoint) It is thrown when the multiPoint has been completely parsedendMultiPolygon(Object multiPolygon) It is thrown when the multiPolygon has been completely parsedvoidIt is thrown when the point has been completely parsed.endPolygon(Object polygon) It is thrown when the polygon has been completely parsed.voidThis method is thrown when the parser find the end of and element time tagstartBbox(String id, ICoordinateIterator coords, String srs) This method is thrown when the parser find a new bounding box.startElement(String namespace, String name, Object value, IAttributesIterator attributes, Object parentElement) It is thrown when the parser has found a new elementstartFeature(String id, String namespace, String name, IAttributesIterator attributes, Object layer) It is thrown when the parser has found a new feature.startInnerPolygon(String id, ICoordinateIterator coords, String srs) This method indicates that the parser has found a InnerPolygon.startLayer(String id, String namespace, String name, String description, String srs, IAttributesIterator attributes, Object parentLayer, Object bBox) It is thrown every time that a new layer is detected.startLinearRing(String id, ICoordinateIterator coords, String srs) This method indicates that the parser has found a linearRing.startLineString(String id, ICoordinateIterator coords, String srs) This method indicates that the parser has found a lineString.startMetadata(String type, String data, IAttributesIterator attributes) It is thrown when the parser has found a new metadata tagstartMultiGeometry(String id, String srs) This method indicates that the parser has found a multiGeometry.startMultiLineString(String id, String srs) This method indicates that the parser has found a multiLineString.startMultiLineString(String id, String srs, int dimension) startMultiPoint(String id, String srs) This method indicates that the parser has found a multipoint.startMultiPoint(String id, String srs, int dimension) startMultiPolygon(String id, String srs) This method indicates that the parser has found a multiPolygon.startMultiPolygon(String id, String srs, int dimension) startPoint(String id, ICoordinateIterator coords, String srs) This method indicates that the parser has found a point.startPolygon(String id, ICoordinateIterator coords, String srs) This method indicates that the parser has found a polygon.It is thrown when the parser has found a new time tag tagMethods inherited from interface org.gvsig.gpe.lib.api.parser.IGPEContentHandlerSFP0
addCurveToMultiCurve, addSegmentToCurve, endCurve, endMultiCurve, startCurve, startCurve, startMultiCurve, startMultiCurve
-
Method Details
-
startBbox
This method is thrown when the parser find a new bounding box.- Parameters:
id- Bounding box identifiercoords- A coordinates iteratorsrs- Spatial reference system- Returns:
- The consumer application object that represents a bounding box
-
endBbox
This method indicates that the parser thas finished to parse the bounding box.- Parameters:
bbox- The consumer application object that represents a bounding box
-
startLayer
Object startLayer(String id, String namespace, String name, String description, String srs, IAttributesIterator attributes, Object parentLayer, Object bBox) It is thrown every time that a new layer is detected.- Parameters:
id- Layer identifiernamespace- XML namespacename- Layer namedescription- Layer descriptionsrs- Layer spatial reference systemattributes- Layer attributesparentLayer- Layer that contains itbBox- Layer bounding box- Returns:
- The consumer application object that represents a layer
-
endLayer
It is thrown when a layer has been finished to parse.- Parameters:
layer- The consumer application object that represents a layer
-
addNameToLayer
It adds a name to one layer that has been previously created using the startLayer method.- Parameters:
name- Layer namelayer- The consumer application object that represents a layer
-
addDescriptionToLayer
It adds the description to one layer that has been previously created using the startLayer method.- Parameters:
description- Layer descriptionlayer- The consumer application object that represents a layer
-
addSrsToLayer
It adds a spatial reference system to one layer that has been previously created using the startLayer method.- Parameters:
srs- Spatial reference systemlayer- The consumer application object that represents a layer
-
addParentLayerToLayer
It establish the relationship parent-child between two layers that have been previously created using the startLayer method.- Parameters:
parent- The consumer application object that represents the parent layerlayer- The consumer application object that represents the child layer
-
addBboxToLayer
It adds a bounding box to one layer that has been previously created using the startLayer method.- Parameters:
bbox- Layer bounding boxlayer- The consumer application object that represents a layer
-
startFeature
Object startFeature(String id, String namespace, String name, IAttributesIterator attributes, Object layer) It is thrown when the parser has found a new feature.- Parameters:
id- Feature identifiernamespace- XML namespacename- Feature nameattributes- Feature attributeslayer- Consumer application object that represents a layer- Returns:
- Consumer application object that represents a feature
-
endFeature
This method is thrown when the parser has finished to parse a feature.- Parameters:
feature- Consumer application object that represents a feature
-
addNameToFeature
This method adds a name to one layer that has been previously created using the startFeature method.- Parameters:
name- Feature namefeature- Consumer application object that represents a feature
-
addFeatureToLayer
This method adds a feature to one layer that has been previously created using the startLayer method.- Parameters:
feature- Consumer application object that represents a featurelayer- Consumer application object that represents a layer
-
startElement
Object startElement(String namespace, String name, Object value, IAttributesIterator attributes, Object parentElement) It is thrown when the parser has found a new element- Parameters:
namespace- XML namespacename- Element namevalue- Element valueattributes- Element attributesparentElement- The parent of this element (if exists)- Returns:
- Consumer application object that represents an element
-
endElement
This method is thrown when the parser find the end of an element.- Parameters:
element- Consumer application object that represents an element
-
addParentElementToElement
It is thrown to establish a relationship parent-child between two elements.- Parameters:
parent- Consumer application object that represents the parent elementelement- Consumer application object that represents the child element
-
addElementToFeature
This method adds an element to one feature that has been previously created using the startFeature method- Parameters:
element- Consumer application object that represents an elementfeature- Consumer application object that represents the feature
-
startPoint
This method indicates that the parser has found a point.- Parameters:
id- Point identifiercoords- A coordinates iteratorsrs- Spatial reference system- Returns:
- Consumer application object that represents a point
-
endPoint
It is thrown when the point has been completely parsed.- Parameters:
point- Consumer application object that represents a point
-
startLineString
This method indicates that the parser has found a lineString.- Parameters:
id- LineString identifiercoords- A coordinates iteratorsrs- Spatial reference system- Returns:
- Consumer application object that represents a lineString
-
endLineString
It is thrown when the lineString has been completely parsed.- Parameters:
lineString- Consumer application object that represents a lineString
-
startLinearRing
This method indicates that the parser has found a linearRing.- Parameters:
id- LinearRing identifiercoords- A coordinates iteratorsrs- Spatial reference system- Returns:
- Consumer application object that represents a linarRing
-
endLinearRing
It is thrown when the linearRing has been completely parsed.- Parameters:
linearRing- Consumer application object that represents a linearRing
-
startPolygon
This method indicates that the parser has found a polygon.- Parameters:
id- Polygon identifiercoords- A coordinates iteratorsrs- Spatial reference system- Returns:
- Consumer application object that represents a polygon
-
endPolygon
It is thrown when the polygon has been completely parsed.- Parameters:
polygon- Consumer application object that represents a polygon As a polygon can have holes, when instantiating an inmutable polygon is needed to know the outerBoundary and the holes, the instantiating takes place here
-
addInnerPolygonToPolygon
This method associates a innerPolygon with its polygon- Parameters:
innerPolygon- Consumer application object that represents a innerPolygonPolygon- Consumer application object that represents a polygon
-
startInnerPolygon
This method indicates that the parser has found a InnerPolygon.- Parameters:
id- InnerPolygon identifiercoords- A coordinates iteratorsrs- Spatial reference system- Returns:
- Consumer application object that represents a innerPolygon
-
endInnerPolygon
It is thrown when the innerPolygon has been completely parsed.- Parameters:
innerPolygon- Consumer application object that represents a innerPolygon
-
startMultiPoint
This method indicates that the parser has found a multipoint.- Parameters:
id- MultiPoint identifiersrs- Spatial reference system- Returns:
- Consumer application object that represents a multiPoint
-
startMultiPoint
-
endMultiPoint
It is thrown when the multiPoint has been completely parsed- Parameters:
multiPoint- Consumer application object that represents a multiPoint
-
addPointToMultiPoint
It is thrown to add a point to one multiPoint.- Parameters:
point- Consumer application object that represents a pointmultiPoint- Consumer application object that represents a multiPoint
-
startMultiLineString
This method indicates that the parser has found a multiLineString.- Parameters:
id- MultiLineString identifiersrs- Spatial reference system- Returns:
- Consumer application object that represents a multiLineString
-
startMultiLineString
-
endMultiLineString
It is thrown when the multiLineString has been completely parsed- Parameters:
multiLineString- Consumer application object that represents a multiLineString
-
addLineStringToMultiLineString
It is thrown to add a lineString to one lineString.- Parameters:
lineString- Consumer application object that represents a lineStringmultiLineString- Consumer application object that represents a multiLineString
-
startMultiPolygon
This method indicates that the parser has found a multiPolygon.- Parameters:
id- MultiPolygon identifiersrs- Spatial reference system- Returns:
- Consumer application object that represents a multiPolygon
-
startMultiPolygon
-
endMultiPolygon
It is thrown when the multiPolygon has been completely parsed- Parameters:
multiPolygon- Consumer application object that represents a multiPolygon
-
addPolygonToMultiPolygon
It is thrown to add a polygon to one multiPolygon.- Parameters:
polygon- Consumer application object that represents a polygonmultiPolygon- Consumer application object that represents a multiPolygon
-
startMultiGeometry
This method indicates that the parser has found a multiGeometry.- Parameters:
id- MultiGeometry identifiersrs- Spatial reference system- Returns:
- Consumer application object that represents a multiGeometry
-
endMultiGeometry
It is thrown when the multiGeometry has been completely parsed- Parameters:
multiGeometry- Consumer application object that represents a multiGeometry
-
addGeometryToMultiGeometry
It is thrown to add a geometry to one multiGeometry.- Parameters:
geometry- Consumer application object that represents a geometrymultiGeometry- Consumer application object that represents a multiGeometry
-
addBboxToFeature
This method adds a bounding box to a feature.- Parameters:
bbox- Consumer application object that represents a bounding boxfeature- Consumer application object that represents a feature
-
addGeometryToFeature
This method adds a geometry to a feature.- Parameters:
geometry- Consumer application object that represents a geometryfeature- Consumer application object that represents a feature
-
startMetadata
It is thrown when the parser has found a new metadata tag- Parameters:
type- String with the type of metadata, if is a description or any elsedata- String with the value of the data.attributes- Object to pass the Atributtes- Returns:
- Consumer application object that represents metadata
-
addMetadataToFeature
This method adds metadata to feature.- Parameters:
metadata- Consumer application object that represents metadatafeature- Consumer application object that represents a feature
-
addMetadataToMetadata
This method adds metadata to complex metadata.- Parameters:
metadata- Consumer application object that represents metadataparent- Consumer application object that represents the complex metadata
-
endMetadata
This method is thrown when the parser find the end of the metadata of an element.- Parameters:
metadata- Consumer application object that represents metadata
-
endTime
This method is thrown when the parser find the end of and element time tag- Parameters:
time- Consumer application object that represents time
-
startTime
Object startTime(String name, String description, String type, String time, Object previous, Object next) It is thrown when the parser has found a new time tag tag- Parameters:
type- String with the type of time, if is a description or any elsedata- String with the value of the data.- Returns:
- Consumer application object that represents time
-
startTime
-
addTimeToFeature
This method adds time to feature.- Parameters:
time- Consumer application object that represents timefeature- Consumer application object that represents a feature
-