@Override public void writeKMLSpecifics(Writer writer){
  try {
    writer.write("<color>" + ColorStyle.colorAsKMLString(mColor) + "</color>\n");
    writer.write("<Icon><href>" + StringEscapeUtils.escapeXml10(mIconHref) + "</href></Icon>\n");
    writer.write("<LatLonBox>");
    GeoPoint pNW=mCoordinates.get(0);
    GeoPoint pSE=mCoordinates.get(1);
    writer.write("<north>" + pNW.getLatitude() + "</north>");
    writer.write("<south>" + pSE.getLatitude() + "</south>");
    writer.write("<east>" + pSE.getLongitude() + "</east>");
    writer.write("<west>" + pNW.getLongitude() + "</west>");
    writer.write("<rotation>" + mRotation + "</rotation>");
    writer.write("</LatLonBox>\n");
  }
 catch (  IOException e) {
    e.printStackTrace();
  }
}

@ Override public void writeKMLSpecifics ( Writer writer ) { try { writer . write ( "<color>" + ColorStyle . colorAsKMLString ( mColor ) + "</color>\n" ) ; writer . write ( "<Icon><href>" + StringEscapeUtils . escapeXml10 ( mIconHref ) + "</href></Icon>\n" ) ; writer . write ( "<LatLonBox>" ) ; GeoPoint pNW = mCoordinates . get ( 0 ) ; GeoPoint pSE = mCoordinates . get ( 1 ) ; writer . write ( "<north>" + pNW . getLatitude ( ) + "</north>" ) ; writer . write ( "<south>" + pSE . getLatitude ( ) + "</south>" ) ; writer . write ( "<east>" + pSE . getLongitude ( ) + "</east>" ) ; writer . write ( "<west>" + pNW . getLongitude ( ) + "</west>" ) ; writer . write ( "<rotation>" + mRotation + "</rotation>" ) ; writer . write ( "</LatLonBox>\n" ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } }
write elements specific to groundoverlay in kml format
