Class MultiGeometryWriter

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

public class MultiGeometryWriter extends Object
It writes a MultyGeometry tag. Example:

 
 <MultiGeometry>
 <Point gid="P6776">
 <coord><X>50.0</X><Y>50.0</Y></coord>
 </Point>
 <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>
 <MultiGeometry>
 
 

Author:
Jorge Piera LLodrĂ¡ (jorge.piera@iver.es)
  • Constructor Details

    • MultiGeometryWriter

      public MultiGeometryWriter()
  • Method Details

    • start

      public void start(org.gvsig.xmlpull.lib.api.stream.IXmlStreamWriter writer, GPEKmlWriterHandlerImplementor handler, String id) throws IOException
      It writes the MultiGeometry init tag and its value.
      Parameters:
      writer - Writer to write the labels
      handler - The writer handler implementor
      id - Point id
      longitude - Longitude >= -180 and invalid input: '<'= 180
      latitude - Latitude >= -90 and invalid input: '<'= 90
      altitude - Meters above sea level
      Throws:
      IOException
    • end

      public void end(org.gvsig.xmlpull.lib.api.stream.IXmlStreamWriter writer, GPEKmlWriterHandlerImplementor handler) throws IOException
      It writes the MultiGeometry end tag
      Parameters:
      writer - Writer to write the labels
      handler - The writer handler implementor
      Throws:
      IOException