Class PolygonWriter
java.lang.Object
org.gvsig.gpe.prov.kml.writer.v2.geometries.PolygonWriter
It writes a Polygon tag. Example:
<Polygon gid="_877789">
<outerBoundaryIs>
<LinearRing>
<coordinates>0.0,0.0 100.0,0.0 50.0,100.0 0.0,0.0</coordinates>
</LinearRing>
</outerBoundaryIs>
</Polygon>
- Author:
- Jorge Piera LLodrĂ¡ (jorge.piera@iver.es)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend(org.gvsig.xmlpull.lib.api.stream.IXmlStreamWriter writer, GPEKmlWriterHandlerImplementor handler) It writes the Polygon end tagvoidstart(org.gvsig.xmlpull.lib.api.stream.IXmlStreamWriter writer, GPEKmlWriterHandlerImplementor handler, String id, ICoordinateSequence coords) It writes the Polygon kml init tag
-
Constructor Details
-
PolygonWriter
public PolygonWriter()
-
-
Method Details
-
start
public void start(org.gvsig.xmlpull.lib.api.stream.IXmlStreamWriter writer, GPEKmlWriterHandlerImplementor handler, String id, ICoordinateSequence coords) throws IOException It writes the Polygon kml init tag- Parameters:
writer- Writer to write the labelshandler- The writer handler implementorid- LineString idcoords- A coordinates iterator.- Throws:
IOException
-
end
public void end(org.gvsig.xmlpull.lib.api.stream.IXmlStreamWriter writer, GPEKmlWriterHandlerImplementor handler) throws IOException It writes the Polygon end tag- Parameters:
writer- Writer to write the labelshandler- The writer handler implementor- Throws:
IOException
-