public static void write(OMPoint point,Link link,LinkProperties props) throws IOException {
  props.setProperty(LinkPoint.LPC_POINT_OVAL,point.isOval() ? "true" : "false");
switch (point.getRenderType()) {
case OMPoint.RENDERTYPE_LATLON:
    LinkPoint.write((float)point.getLat(),(float)point.getLon(),point.getRadius(),props,link.dos);
  break;
case OMPoint.RENDERTYPE_XY:
LinkPoint.write(point.getX(),point.getY(),point.getRadius(),props,link.dos);
break;
case OMPoint.RENDERTYPE_OFFSET:
LinkPoint.write((float)point.getLat(),(float)point.getLon(),point.getX(),point.getY(),point.getRadius(),props,link.dos);
break;
default :
Debug.error("LinkPoint.write: point rendertype unknown.");
}
}

public static void write ( OMPoint point , Link link , LinkProperties props ) throws IOException { props . setProperty ( LinkPoint . LPC_POINT_OVAL , point . isOval ( ) ? "true" : "false" ) ; switch ( point . getRenderType ( ) ) { case OMPoint . RENDERTYPE_LATLON : LinkPoint . write ( ( float ) point . getLat ( ) , ( float ) point . getLon ( ) , point . getRadius ( ) , props , link . dos ) ; break ; case OMPoint . RENDERTYPE_XY : LinkPoint . write ( point . getX ( ) , point . getY ( ) , point . getRadius ( ) , props , link . dos ) ; break ; case OMPoint . RENDERTYPE_OFFSET : LinkPoint . write ( ( float ) point . getLat ( ) , ( float ) point . getLon ( ) , point . getX ( ) , point . getY ( ) , point . getRadius ( ) , props , link . dos ) ; break ; default : Debug . error ( "LinkPoint.write: point rendertype unknown." ) ; } }
write an ompoint to the link .
