public void export(){
  OMGraphicList list=getGraphicList();
  if (list == null) {
    logger.warning("no graphic list to export!");
    return;
  }
  export(list,null,true);
}

public void export ( ) { OMGraphicList list = getGraphicList ( ) ; if ( list == null ) { logger . warning ( "no graphic list to export!" ) ; return ; } export ( list , null , true ) ; }
separates the graphics from the omgraphiclist into polygon , polyline and point lists , then passes the desired shape lists to their respective export functions to be added to an esrilayer of the same type and prepared for export . omgraphics that are on sublists within the top - level omgraphiclist will be simply written to the appropriate list at the top level of that list . they will be handled as multi - part geometries . < p > separating the graphics into the three types is necessary due to shape file specification limitations which will only allow shape files to be of one type . < p > for omgraphiclists that are actually esrigraphiclists , this export method will be redirected to a different method that will handle sub - omgraphiclists as multi - part geometries . < p > if you want to write out multi - part geometries and have a regular omgraphiclist , you have to convert them to esrigraphiclists first ( and omgraphics to esrigraphics ) , which forces you to group shapes into like types ( points , polylines and polygons ) .
