Package org.gvsig.gpe.lib.api.writer
Interface IGPEWriterHandlerImplementor
public interface IGPEWriterHandlerImplementor
This interface defines the writing process methods. To write
a new concrete format it is necessary to create a class that
implements this methods and creates the output file whereas
the consumer application is invoking these methods.
- Author:
- Jorge Piera LLodrá (jorge.piera@iver.es), Carlos Sánchez Periñán (sanchez_carper@gva.es)
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()It indicates that the writing process has finished.voidendBbox()It means that the current bounding box has finished to be written.voidIt means that the current element has finished to be written.voidIt means that the current feature has finished to be written.voidIt means that the current innerPolygon has finished to be written.voidendLayer()It means that the current layer has finished to be written.voidIt means that the current linearRing has finished to be written.voidIt means that the current lineString has finished to be written.voidIt means that the current multiGeometry has finished to be written.voidIt means that the current multiLineString has finished to be written.voidIt means that the current multiPoint has finished to be written.voidIt means that the current multiPolygon has finished to be written.voidendPoint()It means that the current point has finished to be written.voidIt means that the current polygon has finished to be written.getName()voidIt must be invoked before to start the reading process.voidsetErrorHandler(IGPEErrorHandler errorHandler) voidSets the outputstreamvoidstartBbox(String id, ICoordinateSequence coords, String srs) It is thrown by the consumer application to indicate that it has to write a bounding box.voidstartElement(String namespace, String name, Object value) It is thrown by the consumer application to indicate that it has to write a element.voidstartFeature(String id, String namespace, String name) It is thrown by the consumer application to indicate that it has to write a feature.voidstartInnerBoundary(String id, ICoordinateSequence coords, String srs) It is thrown by the consumer application to indicate that it has to write a innerPolygon.voidIt is thrown by the consumer application to indicate that it has to write a layer.voidstartLinearRing(String id, ICoordinateSequence coords, String srs) It is thrown by the consumer application to indicate that it has to write a linearRing.voidstartLineString(String id, ICoordinateSequence coords, String srs) It is thrown by the consumer application to indicate that it has to write a lineString.voidstartMultiGeometry(String id, String srs) It is thrown by the consumer application to indicate that it has to write a multiGeometry.voidstartMultiLineString(String id, String srs) It is thrown by the consumer application to indicate that it has to write a multiLineString.voidstartMultiPoint(String id, String srs) It is thrown by the consumer application to indicate that it has to write a multiPoint.voidstartMultiPolygon(String id, String srs) It is thrown by the consumer application to indicate that it has to write a multiPolygon.voidstartPoint(String id, ICoordinateSequence coords, String srs) It is thrown by the consumer application to indicate that it has to write a point.voidstartPolygon(String id, ICoordinateSequence coords, String srs) It is thrown by the consumer application to indicate that it has to write a polygon.
-
Method Details
-
getName
String getName()- Returns:
- the writer name
-
getDescription
String getDescription()- Returns:
- the writer description
-
setOutputStream
Sets the outputstream -
getFormat
String getFormat()- Returns:
- the supported format
-
getFileExtension
String getFileExtension()- Returns:
- the default file extension
-
getErrorHandler
IGPEErrorHandler getErrorHandler()- Returns:
- the error handler
-
setErrorHandler
- Parameters:
errorHandler- the errorHandler to set
-
initialize
void initialize()It must be invoked before to start the reading process. It is used just to indicate to the writer that the writing process is going to start. -
close
void close()It indicates that the writing process has finished. The writer can close the file. -
startLayer
It is thrown by the consumer application to indicate that it has to write a layer.- Parameters:
id- Layer identifiernamespace- Layer namespacename- Layer namedescription- Layer descriptionsrs- Layer spatial reference system
-
endLayer
void endLayer()It means that the current layer has finished to be written. -
startBbox
It is thrown by the consumer application to indicate that it has to write a bounding box.- Parameters:
id- Bounding box identifiercoords- A coordinates iteratorsrs- Spatial reference system
-
endBbox
void endBbox()It means that the current bounding box has finished to be written. -
startFeature
It is thrown by the consumer application to indicate that it has to write a feature.- Parameters:
id- Feature identifiernamespace- Feature namespacename- Feature name
-
endFeature
void endFeature()It means that the current feature has finished to be written. -
startElement
It is thrown by the consumer application to indicate that it has to write a element.- Parameters:
namespace- Element namespacename- Element namevalue- Element value
-
endElement
void endElement()It means that the current element has finished to be written. -
startPoint
It is thrown by the consumer application to indicate that it has to write a point.- Parameters:
id- Point identifiercoords- A coordinates iteratorsrs- Spatial reference system
-
endPoint
void endPoint()It means that the current point has finished to be written. -
startMultiPoint
It is thrown by the consumer application to indicate that it has to write a multiPoint.- Parameters:
id- Geometry identifiersrs- Spatial reference system
-
endMultiPoint
void endMultiPoint()It means that the current multiPoint has finished to be written. -
startLineString
It is thrown by the consumer application to indicate that it has to write a lineString.- Parameters:
id- LineString identifiercoords- A coordinates iteratorsrs- Spatial reference system
-
endLineString
void endLineString()It means that the current lineString has finished to be written. -
startMultiLineString
It is thrown by the consumer application to indicate that it has to write a multiLineString.- Parameters:
id- Geometry identifiersrs- Spatial reference system
-
endMultiLineString
void endMultiLineString()It means that the current multiLineString has finished to be written. -
startLinearRing
It is thrown by the consumer application to indicate that it has to write a linearRing.- Parameters:
id- LineString identifiercoords- A coordinates iteratorsrs- Spatial reference system
-
endLinearRing
void endLinearRing()It means that the current linearRing has finished to be written. -
startPolygon
It is thrown by the consumer application to indicate that it has to write a polygon.- Parameters:
id- LineString identifiercoords- A coordinates iteratorsrs- Spatial reference system
-
endPolygon
void endPolygon()It means that the current polygon has finished to be written. -
startMultiPolygon
It is thrown by the consumer application to indicate that it has to write a multiPolygon.- Parameters:
id- Geometry identifiersrs- Spatial reference system
-
endMultiPolygon
void endMultiPolygon()It means that the current multiPolygon has finished to be written. -
startMultiGeometry
It is thrown by the consumer application to indicate that it has to write a multiGeometry.- Parameters:
id- Geometry identifiersrs- Spatial reference system
-
endMultiGeometry
void endMultiGeometry()It means that the current multiGeometry has finished to be written. -
startInnerBoundary
It is thrown by the consumer application to indicate that it has to write a innerPolygon.- Parameters:
id- LineString identifiercoords- A coordinates iteratorsrs- Spatial reference system
-
endInnerBoundary
void endInnerBoundary()It means that the current innerPolygon has finished to be written.
-