poly.setAppObject(omRect.getAppObject());
poly.setAttributes(omRect.getAttributes());
    public static OMPoly convert(OMRect omRect) {        float[] rectPoints = new float[10];        //get the northwest corner        rectPoints[0] = (omRect.getNorthLat());        rectPoints[1] = (omRect.getWestLon());        //get the southwest corner        rectPoints[2] = (omRect.getSouthLat());        rectPoints[3] = (omRect.getWestLon());        //get the southeast corner        rectPoints[4] = (omRect.getSouthLat());        rectPoints[5] = (omRect.getEastLon());        //get the northeast corner        rectPoints[6] = (omRect.getNorthLat());        rectPoints[7] = (omRect.getEastLon());        //get the northwest corner again to close the polygon        rectPoints[8] = (omRect.getNorthLat());        rectPoints[9] = (omRect.getWestLon());        //using the OMRect data create an OMPoly        OMPoly poly = new OMPoly(rectPoints, OMGraphic.DECIMAL_DEGREES, omRect.getLineType());        poly.setAppObject(omRect.getAppObject());        DrawingAttributes da = new DrawingAttributes();        da.setFrom(omRect);        da.setTo(poly);        return poly;    }