Class PolygonWriter

java.lang.Object
org.gvsig.gpe.prov.kml.writer.v2.geometries.PolygonWriter

public class PolygonWriter extends Object
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 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 labels
      handler - The writer handler implementor
      id - LineString id
      coords - 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 labels
      handler - The writer handler implementor
      Throws:
      IOException